Sunday, August 11, 2013

Re: Error: ImportError: No module named south

On Sun, 11 Aug 2013 08:13:49 -0700 (PDT), alekto.antarctica@gmail.com
declaimed the following:

> Error: You need to install postgresql-server-dev-X.Y for building a
>server-side extension or libpq-dev for building a client-side application.
>

Seems self-explanatory -- you need the development headers installed in
order to build psycopg2

>(django_project)alekto@kalahari:~/Web/prosjekt/django_project$ *python
>manage.py syncdb*

>"/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/creation.py",
>line 1, in <module>
> import psycopg2.extensions
>ImportError: No module named psycopg2.extensions

As expected if the install failed

>(django_project)alekto@kalahari:~/Web/prosjekt/django_project$ *sudo python
>manage.py syncdb*
>[sudo] password for alekto:
>*ImportError: No module named south*
>(django_project)alekto@kalahari:~/Web/prosjekt/django_project$

Does sudo run inside the virtual environment, or did it create a new
process that doesn't have access?

Try comparing the results of using

... python -vv ...

to see what locations are being searched for the modules.

{Note: I do not have psycopg2 or south on my machine}

>>> import south
# trying south.pyd
# trying south.py
# trying south.pyw
# trying south.pyc
# trying C:\Python_x64\Python27\DLLs\south.pyd
# trying C:\Python_x64\Python27\DLLs\south.py
# trying C:\Python_x64\Python27\DLLs\south.pyw
# trying C:\Python_x64\Python27\DLLs\south.pyc
# trying C:\Python_x64\Python27\lib\south.pyd
# trying C:\Python_x64\Python27\lib\south.py
# trying C:\Python_x64\Python27\lib\south.pyw
# trying C:\Python_x64\Python27\lib\south.pyc
# trying C:\Python_x64\Python27\lib\lib-tk\south.pyd
# trying C:\Python_x64\Python27\lib\lib-tk\south.py
# trying C:\Python_x64\Python27\lib\lib-tk\south.pyw
# trying C:\Python_x64\Python27\lib\lib-tk\south.pyc
# trying C:\Python_x64\Python27\south.pyd
# trying C:\Python_x64\Python27\south.py
# trying C:\Python_x64\Python27\south.pyw
# trying C:\Python_x64\Python27\south.pyc
# trying C:\Python_x64\Python27\lib\site-packages\south.pyd
# trying C:\Python_x64\Python27\lib\site-packages\south.py
# trying C:\Python_x64\Python27\lib\site-packages\south.pyw
# trying C:\Python_x64\Python27\lib\site-packages\south.pyc
# trying C:\Python_x64\Python27\lib\site-packages\win32\south.pyd
# trying C:\Python_x64\Python27\lib\site-packages\win32\south.py
# trying C:\Python_x64\Python27\lib\site-packages\win32\south.pyw
# trying C:\Python_x64\Python27\lib\site-packages\win32\south.pyc
# trying C:\Python_x64\Python27\lib\site-packages\win32\lib\south.pyd
# trying C:\Python_x64\Python27\lib\site-packages\win32\lib\south.py
# trying C:\Python_x64\Python27\lib\site-packages\win32\lib\south.pyw
# trying C:\Python_x64\Python27\lib\site-packages\win32\lib\south.pyc
# trying C:\Python_x64\Python27\lib\site-packages\Pythonwin\south.pyd
# trying C:\Python_x64\Python27\lib\site-packages\Pythonwin\south.py
# trying C:\Python_x64\Python27\lib\site-packages\Pythonwin\south.pyw
# trying C:\Python_x64\Python27\lib\site-packages\Pythonwin\south.pyc
# trying
C:\Python_x64\Python27\lib\site-packages\wx-2.8-msw-unicode\south.pyd
# trying
C:\Python_x64\Python27\lib\site-packages\wx-2.8-msw-unicode\south.py
# trying
C:\Python_x64\Python27\lib\site-packages\wx-2.8-msw-unicode\south.pyw
# trying
C:\Python_x64\Python27\lib\site-packages\wx-2.8-msw-unicode\south.pyc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named south
>>>



--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment