These are chat archives for fossasia/open-event-server

13th
Mar 2017
Amol Mejari
@mejariamol
Mar 13 2017 06:11
@CosmicCoder96 please recheck #3358. I have uploaded some ordered screenshots.
Afroz Ahamad
@enigmaeth
Mar 13 2017 06:34
@mariobehling The scraper at https://github.com/fossasia/event-collect returns the data in JSON from eventbrite. We have to export this data as an event in Open-Event Database, right?
Mario Behling
@mariobehling
Mar 13 2017 06:40
@enigmaeth We need a set of JSON that is exactly like that of the Open Event Server API.
Afroz Ahamad
@enigmaeth
Mar 13 2017 06:54
Some fields have to be changed in the event-collect scraper. :+1:
Pradeep CE
@cepradeep
Mar 13 2017 10:49
I'm getting random 404s when trying to view the schedule of an event on open-event-dev.herokuapp.com. Is something broken?
Mario Behling
@mariobehling
Mar 13 2017 11:28
@SaptakS Any chance we could get a simple download of attendees of an event? fossasia/open-event-orga-server#3246 It would help @hpdang a lot
Himanshi-Khandelwal
@Himanshi-Khandelwal
Mar 13 2017 17:17
I deleted my forked repo and reforked it again , while doing pip install -r requirements.txt
setuptools must be installed to install from a source distribution
Storing debug log for failure in /home/himanshi/.pip/pip.log
and while doing python manage.py runserver
ImportError: No module named markupsafe
did many things to import markupsafe
Sumedh Nimkarde
@lunaticmonk
Mar 13 2017 17:18
setup tools installed?
Himanshi-Khandelwal
@Himanshi-Khandelwal
Mar 13 2017 17:18
which one ? I think Idid
Sumedh Nimkarde
@lunaticmonk
Mar 13 2017 17:20
@Himanshi-Khandelwal paste the screenshot of your error here
I didn't got this problem earlier
Himanshi-Khandelwal
@Himanshi-Khandelwal
Mar 13 2017 17:33
when I did pip install markupsafe
Downloading/unpacking markupsafe
Downloading MarkupSafe-1.0.tar.gz
Cleaning up...
setuptools must be installed to install from a source distribution
Storing debug log for failure in /home/himanshi/.pip/pip.log
Afroz Ahamad
@enigmaeth
Mar 13 2017 22:10
While using the Open-Event API, I have generated the access token but there seems to be an issue when sending it as header. For some reason, the response of the post request is the HTML content of Open-Event Login Page. I don't think that this should be the response. Also no data is inserted into the database.
( The response returns with status code 200, header is sent as non-(JSON-encoded) 'data', using python requests, the API used in POST /events) .
Am I missing something on the API?
Niranjan Rajendran
@niranjan94
Mar 13 2017 22:14
@enigmaeth Could you be more clear in what you were trying to do ?
Also, be sure to check the API docs at https://eventyay.com/api/v1/
Afroz Ahamad
@enigmaeth
Mar 13 2017 22:19
The event collect scraper returns json files. I am trying to use the API to create an event in Open-Event database.
I am following this : https://eventyay.com/api/v1/
Niranjan Rajendran
@niranjan94
Mar 13 2017 22:22

For importing, we actually have an API (that is not documented in the docs. Will be added)
/api/v1/events/import/json

To which you'll POST a zip containing the json files. Key for the zip file should be file

That is the preferred way of importing an event ...
compatible sample zip files can be obtained at https://github.com/fossasia/open-event/tree/master/sample
Afroz Ahamad
@enigmaeth
Mar 13 2017 22:27
Oh. I see. Didn't know import API existed. Though I tried importing event by uploading a zip through the GUI.
@niranjan94 The scraper at https://github.com/fossasia/event-collect currently returns all the json files at the root of the zip correctly. I tried scraping some events on event-brite but no images/media files are scraped. I have opened an issue here : fossasia/event-collect#15 .
We need to work on this first.
Also, documenting the import API will be great.
Niranjan Rajendran
@niranjan94
Mar 13 2017 22:31

Also, documenting the import API will be great.

Yes. That will be done.

Afroz Ahamad
@enigmaeth
Mar 13 2017 22:31
:smile: :+1: