Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » ImportError: No module named stdimage in Django 1.0.3 under Fedora 11 [RSS Feed]

#1 Aug. 30, 2009 23:08:09

Z.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

ImportError: No module named stdimage in Django 1.0.3 under Fedora 11


I am facing problem with this error: *ImportError: No module named stdimage*
while i tries to run the command:

*python manage.py runserver
*
this is ahttp://www.fixmystreet.com/server. The server runs ok... as you
can see the server starting messages:

*# python manage.py runserver
local_settings.py not set; using default settings
local_settings.py not set; using default settings
local_settings.py not set; using default settings
local_settings.py not set; using default settings
Validating models...
0 errors found

Django version 1.0.3, using settings 'fixmystreet.settings'
Development server is running athttp://127.0.0.1:8000/Quit the server with CONTROL-C.
*
But, when i goes to run my server athttp://127.0.0.1:8080/then .. this
errors comes...

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 stdimage*

I googled for it, but didn`t find too much effective answers.
--
Best,
Zico

--~--~---------~--~----~------------~-------~--~----~
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 athttp://groups.google.com/group/django-users?hl=en-~----------~----~----~----~------~----~------~--~---

Offline

#2 Aug. 31, 2009 15:48:35

Karen T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

ImportError: No module named stdimage in Django 1.0.3 under Fedora 11


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 checkouthttp://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 athttp://groups.google.com/group/django-users?hl=en-~----------~----~----~----~------~----~------~--~---

Offline

#3 Aug. 16, 2017 17:58:07

sanhvctum
Registered: 2017-07-20
Posts: 2
Reputation: +  0  -
Profile   Send e-mail  

ImportError: No module named stdimage in Django 1.0.3 under Fedora 11

This post is being moderated

Offline

#4 Oct. 7, 2017 10:49:42

Ancictum
Registered: 2017-05-19
Posts: 7
Reputation: +  0  -
Profile   Send e-mail  

ImportError: No module named stdimage in Django 1.0.3 under Fedora 11

This post is being moderated

Offline

#5 Nov. 10, 2017 21:10:46

jfnhdstum
Registered: 2017-11-07
Posts: 2
Reputation: +  0  -
Profile   Send e-mail  

ImportError: No module named stdimage in Django 1.0.3 under Fedora 11

This post is being moderated

Offline

  • Root
  • » Django
  • » ImportError: No module named stdimage in Django 1.0.3 under Fedora 11 [RSS Feed]

Board footer

Moderator control

Enjoy the 24th of November
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support