Error Loading Psycopg2 Module No Module Named _psycopg
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn django.core.exceptions.improperlyconfigured error loading psycopg2 module no module named psycopg2 more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags importerror no module named psycopg2 Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like importerror no module named psycopg2 windows you, helping each other. Join them; it only takes a minute: Sign up django.core.exceptions.ImproperlyConfigured: Error loading psycopg module: No module named psycopg up vote 14 down vote favorite 2 Presently, I'm attempting to configure Django for use on importerror no module named psycopg2 mac a project, and am encountering a persistent error when I try to run python manage.py syncdb. File "/x/x/x/x/x/x/base.py", line 23, in ? raise ImproperlyConfigured("Error loading psycopg module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading psycopg module: No module named psycopg The other discussions of a similar problem that I have found both here and on other sites ended up being solved by the user downloading and installing psycopg, but unless I'm missing something critical, I've done that
Django.core.exceptions.improperlyconfigured: Error Loading Psycopg2 Module:
several times. I downloaded the tarball, unpacked it on my server, ran python setup.py build and python setup.py install with a --prefix directing it to my existing Python Path...I can go and navigate to the folder and see the various psycopg files, but for whatever reason, when I try to get my new project to sync up with the database, it cannot find psycopg and, as a result, won't talk to the db. Notes: hostmonster.com account, have tried multiple release versions of psycopg2. python django module psycopg2 django-manage.py share|improve this question asked Nov 23 '11 at 5:49 user968270 93129 This issue has been solved. After installing a current version of Python, the whole process went very smoothly and quickly for me. Thank you, s. zakharov for your assistance. –user968270 Nov 23 '11 at 7:39 add a comment| 4 Answers 4 active oldest votes up vote 11 down vote I had the error as well; although psycopg2 was installed on my system using apt-get, my virtualenv couldn't find it: >>> import psycopg2 Traceback (most recent call last): File "
here for a
Django Error Loading Psycopg2 Module: No Module Named 'psycopg2'
quick overview of the site Help Center Detailed install psycopg2 on windows answers to any questions you might have Meta Discuss the workings and virtualenv psycopg2 policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or http://stackoverflow.com/questions/8237842/django-core-exceptions-improperlyconfigured-error-loading-psycopg-module-no-mo posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes http://stackoverflow.com/questions/29879409/error-loading-psycopg2-module-with-virtualenv-and-mod-wsgi a minute: Sign up Error loading psycopg2 module with virtualenv and mod_wsgi up vote 0 down vote favorite I’m configuring a Django 1.7 project in a Ubuntu server (v14.04) with Apache, mod_wsgi, Virtualenv and Postgres. After all configurations I have a Internal error, with this log: django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: /home/ubuntu/VirtualEnvs/env1/lib/python2.7/site-packages/psycopg2/_psycopg.so: undefined symbol: _Py_ZeroStruct Traceback log error: mod_wsgi (pid=13365): Target WSGI script '/var/www/html/domain.com/projectname/wsgi.py' cannot be loaded as Python module. mod_wsgi (pid=13365): Exception occurred processing WSGI script '/var/www/html/domain.com/projectname/wsgi.py'. Traceback (most recent call last): File "/home/ubuntu/VirtualEnvs/env1/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 23, in
here for a quick overview of the site Help Center Detailed answers http://stackoverflow.com/questions/1383126/django-python-beginner-error-when-executing-python-manage-py-syncdb-psycopg2 to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack no module Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Django/Python Beginner: Error when executing python manage.py syncdb - psycopg2 not found up vote 21 down vote favorite 7 I have Pythong2.6, psycopg2 and pgAdmin3 no module named installed using Macports. My settings.py is: DATABASE_ENGINE = 'postgresql_psycopg2' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. DATABASE_NAME = 'mysite' # Or path to database file if using sqlite3. DATABASE_USER = 'postgres' # Not used with sqlite3. DATABASE_PASSWORD = '' # Not used with sqlite3. DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. The error I get when I run python manage.py syncdb is: Traceback (most recent call last): File "manage.py", line 11, in