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