Error Loading Psycopg Module Django
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 django core exceptions improperlyconfigured error loading psycopg2 module no module named psycopg2 About Us Learn more about Stack Overflow the company Business Learn more about python psycopg hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join psycopg python 3 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 a minute: Sign up django.core.exceptions.ImproperlyConfigured: Error loading psycopg module:
Error Loading Psycopg2 Module S E
No module named psycopg up vote 14 down vote favorite 2 Presently, I'm attempting to configure Django for use on 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 error loading psycopg2 module dlopen 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 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
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 error loading psycopg2 module dll load failed Us Learn more about Stack Overflow the company Business Learn more about hiring
No Module Named Psycopg2 Django
developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the
Error Loading Psycopg2 Module: No Module Named Psycopg2 Mac
Stack 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 Psycopg missing module in Django http://stackoverflow.com/questions/8237842/django-core-exceptions-improperlyconfigured-error-loading-psycopg-module-no-mo up vote 2 down vote favorite I have pip installed psycopg2, but when I try to runserver or syncdb in my Django project, it raises an error saying there is "no module named _psycopg". EDIT: the "syncdb" command now raises: django.core.exceptions.ImproperlyConfigured: ImportError django.contrib.admin: No module named _psycopg Thanks for your help python django pip psycopg2 psycopg share|improve this question edited Feb 8 '13 at 17:44 asked http://stackoverflow.com/questions/14758024/psycopg-missing-module-in-django Feb 7 '13 at 18:10 Mathieu K. 5012 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote Make sure that you've enabled psycopg2 and not psycopg in the settings.py file: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', And not: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg', share|improve this answer answered Feb 7 '13 at 18:12 isedev 9,79411942 1 I use dj_database but yeah it uses psycopg2 in its schemes: SCHEMES = { 'postgres': 'django.db.backends.postgresql_psycopg2', 'postgresql': 'django.db.backends.postgresql_psycopg2', 'postgis': 'django.contrib.gis.db.backends.postgis', 'mysql': 'django.db.backends.mysql', 'mysql2': 'django.db.backends.mysql', 'sqlite': 'django.db.backends.sqlite3' } –Mathieu K. Feb 7 '13 at 18:32 add a comment| up vote 1 down vote accepted This was solved by performing a clean reinstall of django. There was apparently some dependecies missing that the recursive pip install did not seem to be able to solve. share|improve this answer answered Mar 11 '13 at 11:22 Mathieu K. 5012 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you
Sign in Pricing https://github.com/django-oscar/django-oscar/issues/1523 Blog Support Search GitHub This repository Watch 216 Star 2,181 Fork 879 django-oscar/django-oscar Code Issues 208 Pull requests http://askbot.org/en/question/7691/no-module-named-psycopg2/ 73 Projects 0 Wiki Pulse Graphs New issue django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named 'psycopg2._psycopg' #1523 error loading Closed alfared opened this Issue Oct 16, 2014 · 1 comment Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 3 participants alfared commented Oct 16, 2014 Hello. I had such error loading psycopg a issue. When i building the demo site (oscar) $ make demo (oscar) $ sites/demo/manage.py runserver I retrieved next exceptions Happy hacking! ================================================================================== # Install additional requirements pip install -r requirements_demo.txt bla bla bla # Create database # Breaks on Travis because of https://github.com/django-extensions/django-extensions/issues/489 if [ -z "" ]; then sites/demo/manage.py reset_db --router=default --noinput; fi Traceback (most recent call last): File "/opt/django-oscar/oscar/lib/python3.4/site-packages/Django-1.7-py3.4.egg/django/db/backends/postgresql_psycopg2/base.py", line 23, in
No module named psycopg2 psycopg2 initialization asked 2012-05-22 21:14:32 -0500 Pepe 71 ●7 ●3 ●14 I'm still having problems initializing askbot on Windows. Look what I got whenever I ran python manage.py syncdb: (ENV) C:\Users\Francisko\ENV\Whatzz>python manage.py syncdb Traceback (most recent call last): File "manage.py", line 11, in