On Mon, Aug 31, 2009 at 2:13 AM, Zico <mailz...@gmail.com> wrote: > > > On Mon, Aug 31, 2009 at 7:04 AM, Karen Tracey <kmtra...@gmail.com> wrote: > >> File "/usr/lib/python2.6/site-packages/django/core/urlresolvers.py", line >> 214, in _resolve_special >>> >>> >>> >>> >>> >>> >>> callback = getattr(self.urlconf_module, 'handler%s' % view_type) >>> >>> File "/usr/lib/python2.6/site-packages/django/core/urlresolvers.py", line >>> 205, in _get_urlconf_module >>> self._urlconf_module = __import__(self.urlconf_name, {}, {}, ['']) >>> >>> >>> >>> >>> >>> >>> File "/opt/fixmystreet/../fixmystreet/urls.py", line 5, in <module> >>> from mainapp.feeds import LatestReports, LatestReportsByCity, >>> LatestReportsByWard, LatestUpdatesByReport >>> >>> File "/opt/fixmystreet/../fixmystreet/mainapp/feeds.py", line 4, in >>> <module> >>> >>> >>> >>> >>> >>> >>> from mainapp.models import Report, ReportUpdate, City, Ward >>> >>> File "/opt/fixmystreet/mainapp/models.py", line 16, in <module> >>> from contrib.stdimage import StdImageField* >>> >>> ImportError: No module named stdimag* >>> >>> >> You don't appear to have installed the stdimage project in a contrib >> directory on your python path as described here: >> >> http://wiki.github.com/visiblegovernment/django-fixmystreet/installation >> >> under "2. Check Out Project Dependencies". >> >> > Thanks Karen for your reply. Actually, i did it. I followed this: > > Download using subversion to any directory included in PYTHON_PATH (for > example /usr/lib/python2.5/site-package) > > svn checkout http://django-stdimage.googlecode.com/svn/trunk/ stdimage > > > > I have downloaded the "stdimage" with this svn in my > /usr/lib/python2.5/site-package but, nothing changed!!!! I cannot > understand what is my problem!!!! > > You seem to have been following the doc for downloading/installing stdimage, which says to put it somewhere in a directory included in your PYTHONPATH. By putting it directly in site-packages you can do imports of the form "from stdimage import StdImageField".
However, that isn't what fixmystreet does, and that isn't what the doc I pointed to for installing the fixmystreet dependencies, recommended. The fixmystreet package, for some reason, has opted to assume all of its dependencies are installed in a 'contrib' package found somewhere on your PYTHONPATH. I don't know why they've done this (it seems like a bad idea to me), but their import for stdimage, from the traceback, is: from contrib.stdimage import StdImageField. If you've placed stdimage directly in site-packages this will not work. Karen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---