Sunday, August 11, 2013

Re: Error: ImportError: No module named south

Thank you, but that is already done. I did it when I first installed django.. so I am really confused


2013/8/11 Avraham Serour <tovmeod@gmail.com>
the page here recommends installing the binaries, try sudo apt-get install python-psycopg2


On Sun, Aug 11, 2013 at 6:13 PM, <alekto.antarctica@gmail.com> wrote:
This is what I am gettin when trying to install psycopg2, still the same errors...

(django_project)alekto@kalahari:~/Web/prosjekt/django_project$ pip install psycopg2
Downloading/unpacking psycopg2
  Downloading psycopg2-2.5.1.tar.gz (684Kb): 684Kb downloaded
  Running setup.py egg_info for package psycopg2
    
    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.
    
    Complete output from command python setup.py egg_info:
    running egg_info

creating pip-egg-info/psycopg2.egg-info

writing pip-egg-info/psycopg2.egg-info/PKG-INFO

writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt

writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt

writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'

warning: manifest_maker: standard file '-c' not found



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.



----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/alekto/.virtualenv/django_project/build/psycopg2
Storing complete log in /home/alekto/.pip/pip.log
(django_project)alekto@kalahari:~/Web/prosjekt/django_project$ python manage.py syncdb
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 453, in execute_from_command_line
    utility.execute()
  File "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 272, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 77, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/south/management/commands/__init__.py", line 12, in <module>
    from south.hacks import hacks
  File "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/south/hacks/__init__.py", line 8, in <module>
    from south.hacks.django_1_0 import Hacks
  File "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/south/hacks/django_1_0.py", line 7, in <module>
    from django.db.backends.creation import BaseDatabaseCreation
  File "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/db/__init__.py", line 40, in <module>
    backend = load_backend(connection.settings_dict['ENGINE'])
  File "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/db/__init__.py", line 34, in __getattr__
    return getattr(connections[DEFAULT_DB_ALIAS], item)
  File "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/db/utils.py", line 93, in __getitem__
    backend = load_backend(db['ENGINE'])
  File "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/db/utils.py", line 27, in load_backend
    return import_module('.base', backend_name)
  File "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 14, in <module>
    from django.db.backends.postgresql_psycopg2.creation import DatabaseCreation
  File "/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
(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$ 

--
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.
 
 

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/-4DtF8rmZGc/unsubscribe.
To unsubscribe from this group and all its topics, 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.
 
 

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