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

8th
Jan 2017
Arpit Nandwani
@arpitn30
Jan 08 2017 03:59
Is there a way in python to know which files and functions were called while visiting a specific url of the website?
Niranjan Rajendran
@niranjan94
Jan 08 2017 04:00
@arpitn30 which issue are you working on
?
Maybe I could guide you...
Arpit Nandwani
@arpitn30
Jan 08 2017 04:08
I'm working on the 404 redirect error issue. I looked at the code and the error handler seems to be written correctly
So i figured some other function might have a bug in it and redirecting the page before it can be passed to error handler
But I couldn't figure out how to zero in on the bug
Niranjan Rajendran
@niranjan94
Jan 08 2017 04:10
The culprit is the app/views/public/pages.py file
Arpit Nandwani
@arpitn30
Jan 08 2017 04:21
Oh, thanks 😄
I'll check it out
Parag Jain
@PARAG00991
Jan 08 2017 09:36
Downloading python_dateutil-2.6.0-py2.py3-none-any.whl (194kB): 194kB downloaded
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/local/lib/python2.7/dist-packages (from icalendar<4,>=3.11->-r requirements/common.txt (line 12))
Cleaning up...
Exception:
Traceback (most recent call last):                                                              
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main                 
    status = self.run(options, args)                                                            
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 278, in run             
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)  
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1091, in prepare_files               
    req_to_install.check_if_exists()                                                            
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 811, in check_if_exists              
    self.satisfied_by = pkg_resources.get_distribution(self.req)                                
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 553, in get_distribution                                                                                        
    dist = get_provider(dist)                                                                   
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 427, in get_provider                                                                                            
    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]                        
IndexError: list index out of range                                                             

Storing debug log for failure in /root/.pip/pip.log
I'm getting this exception in the end while building the server using command sudo -H pip install -r requirements.txt
Need help
P.S. If I ignore this one and try to run server thereafter, my server seems to run fine. Would this exception going to create any problem to me in future?
pipix51
@pipix51
Jan 08 2017 09:41
@PARAG00991 Try $ sudo python-m pip install--upgrade-- force setuptools
And then $ sudo python-m pip install--upgrade-- force pip
Its probably a problen with those two modules, I'm not sure of the consequences though
There should still not be any problems
Parag Jain
@PARAG00991
Jan 08 2017 09:54
@pipix51 I did what you said and rerun the command to install all the requirements, but getting a different error log this time ending with -
 #include <Python.h>
                        ^
    compilation terminated.
    error: command 'i686-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-PNVR0p/scrypt/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-5UzL5Z-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-PNVR0p/scrypt/
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
Parag Jain
@PARAG00991
Jan 08 2017 10:05
Moreover, could anyone tell me why I'm not getting all the options in the footer of the page like 'connect with us options', 'different locations' etc. after building the server locally whereas I can see them on the deployed app on heroku?
pipix51
@pipix51
Jan 08 2017 10:08
@PARAG00991 you could try and update your python version
If the Python version is below 2.7.9 this problem may pop up
Parag Jain
@PARAG00991
Jan 08 2017 10:42
@pipix51 But I already have python 2.7.12 installed
Mario Behling
@mariobehling
Jan 08 2017 10:43
@PARAG00991 The footer options need to be configured by an admin in the admin sections in "settings".
Parag Jain
@PARAG00991
Jan 08 2017 10:47
@mariobehling Thanks a lot :smile:
Satwik Kansal
@satwikkansal
Jan 08 2017 12:31
@PARAG00991 Try creating a virtual enviornment using virtualenv and then install the dependencies from requirements.txt
Parag Jain
@PARAG00991
Jan 08 2017 13:00
@satwikkansal ok, I'll give it a try.
Satwik Kansal
@satwikkansal
Jan 08 2017 13:03
Just a suggestion, can we have some already created events, session, sponsors,etc in the development version of orga-server so that the newcomers and developers can save time spent in creating events and use them straightaway.
I mean when the new developers set up and run the project, they already have some proper event,session,etc data to play with and test apis
I don't know if such feature already exists in orga-server
Saptak Sengupta
@SaptakS
Jan 08 2017 13:06
there are already jsons that you can import from open-event repo
But it is always suggested to create your own events and play around with it because that way you will be able to both identify and understand issues better
Himanshi-Khandelwal
@Himanshi-Khandelwal
Jan 08 2017 18:56
Hello all , I am new here , a bit of guidance would be appreciated on how I can proceed
Satwik Kansal
@satwikkansal
Jan 08 2017 18:57
Hi @Himanshi-Khandelwal , welcome :) Checkout our instruction on our Github repository to set up the project
Himanshi-Khandelwal
@Himanshi-Khandelwal
Jan 08 2017 18:58
ok I'll first install it
Satwik Kansal
@satwikkansal
Jan 08 2017 18:59
And then find issues at github to wrok on or feel free to create one if you find any!
Himanshi-Khandelwal
@Himanshi-Khandelwal
Jan 08 2017 19:00
thanks !!
Gigo.
@MostafaaGayar_twitter
Jan 08 2017 20:09
Hello, I have 2 quick questions concerning the event scraper task.
  1. In the event-collect repo: https://github.com/fossasia/event-collect There are two forms of .json files. 1 JSON file that has everything combined, and the other form, is a directory that has separate JSON files. Which one is required for the task?
  1. Some info that are in the open-event JSON structure, are not provided by the event listing website I'm scraping. Is it OK if they are left empty?
Mario Behling
@mariobehling
Jan 08 2017 20:47
@MostafaaGayar_twitter Yes, if it is not provided by the website, please leave it empty.
We need separate files.