#wikiteam 2012-11-11,Sun

↑back Search

Time Nickname Message
16:33 🔗 Nemo_bis hi emijrp
16:33 🔗 Nemo_bis alard: ping
16:35 🔗 alard Hi.
16:38 🔗 Nemo_bis Hi
16:39 🔗 Nemo_bis alard: i'm trying to run http://graffiti.cs.brown.edu/svn/graffiti/src/webcrawler/search.py
16:39 🔗 Nemo_bis and all I know about django is what I read in the README http://graffiti.cs.brown.edu/svn/graffiti/README
16:40 🔗 Nemo_bis so of course I get ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.
16:41 🔗 Nemo_bis I've read around how things should look like but... what am I supposed to do for just make that python script run with all its dependencies? ^^'
16:42 🔗 alard Have you tried pip?
16:42 🔗 alard Perhaps if you install the Django package that way it might work.
16:43 🔗 alard Or download Django and set the DJANGO_SETTINGS_MODULE variable?
16:43 🔗 Nemo_bis I downloaded django as package first
16:44 🔗 Nemo_bis then I followed http://graffiti.cs.brown.edu/svn/graffiti/README
16:44 🔗 Nemo_bis Error: Can't find the file 'settings.py' in the directory containing './manage.py'. It appears you've customized things.
16:44 🔗 Nemo_bis but I get:
16:44 🔗 Nemo_bis You'll have to run django-admin.py, passing it your settings module.
16:44 🔗 Nemo_bis (If the file settings.py does indeed exist, it's causing an ImportError somehow.)
16:45 🔗 Nemo_bis or, when moving to the dir where manage.py is located:
16:45 🔗 Nemo_bis Error: Could not import settings 'settings' (Is it on sys.path?): No module named setting
16:47 🔗 alard And have you modified the PYTHONPATH variable?
16:48 🔗 Nemo_bis alard: yes
16:50 🔗 alard And the Django files are in ~/Programs/ ?
16:52 🔗 Nemo_bis I used another dir name and changed it everywhere, there's the django dir in it
16:52 🔗 alard I'm getting the error ImportError: No module named django.core.management
16:53 🔗 alard Oh, I used the wrong path, I now get the settings.py message.
16:54 🔗 Nemo_bis I now used ~/Programs and it's the same
16:54 🔗 alard Maybe you should copy and edit settings.py-sample?
16:54 🔗 Nemo_bis maybe
16:54 🔗 Nemo_bis I thought it was manage.py's job to create it
16:58 🔗 Nemo_bis ok, created it
16:59 🔗 Nemo_bis File "/home/federico/Programs/graffiti/src/tracker/graffiti/models.py", line 51, in StorageBase
16:59 🔗 Nemo_bis and I get something like
16:59 🔗 Nemo_bis operations = models.XMLField(schema_path=None,blank=True)
16:59 🔗 Nemo_bis AttributeError: 'module' object has no attribute 'XMLField'
17:01 🔗 alard I think your Django version is too new: https://github.com/chb/smart_server/issues/6
17:09 🔗 Nemo_bis thanks
17:09 🔗 Nemo_bis indeed that script is 4 years old
17:09 🔗 Nemo_bis let's try pip
17:14 🔗 Nemo_bis sigh DistributionNotFound: No distributions matching the version for django==1.1
17:15 🔗 Nemo_bis trying 1.2
17:20 🔗 Nemo_bis now also pip install MySQL-python
20:37 🔗 Nemo_bis no, didn't work; yum install MySQL-python
20:41 🔗 Nemo_bis now ImportError: cannot import name HTTPConnection
20:44 🔗 Nemo_bis ah, need to replace httplib2 with httplib

irclogger-viewer