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 psycopg2Downloading/unpacking psycopg2Downloading psycopg2-2.5.1.tar.gz (684Kb): 684Kb downloadedRunning setup.py egg_info for package psycopg2Error: 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_infocreating pip-egg-info/psycopg2.egg-infowriting pip-egg-info/psycopg2.egg-info/PKG-INFOwriting top-level names to pip-egg-info/psycopg2.egg-info/top_level.txtwriting dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txtwriting manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'warning: manifest_maker: standard file '-c' not foundError: 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/psycopg2Storing complete log in /home/alekto/.pip/pip.log(django_project)alekto@kalahari:~/Web/prosjekt/django_project$ python manage.py syncdbTraceback (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_lineutility.execute()File "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in executeself.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_commandklass = 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_classmodule = 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 hacksFile "/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 HacksFile "/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 BaseDatabaseCreationFile "/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_backendreturn 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 DatabaseCreationFile "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/creation.py", line 1, in <module>import psycopg2.extensionsImportError: 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