Error Loading Psycopg Module
Contents |
here for a quick overview of the site Help Center Detailed answers to django error loading psycopg module any questions you might have Meta Discuss the workings and
Error Loading Psycopg2 Module S E
policies of this site About Us Learn more about Stack Overflow the company Business Learn more
Error Loading Psycopg2 Module Dlopen
about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community
Error Loading Psycopg2 Module Dll Load Failed
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 installed using improperlyconfigured error loading psycopg2 module 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
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 error loading psycopg2 module: no module named psycopg2 About Us Learn more about Stack Overflow the company Business Learn more django.core.exceptions.improperlyconfigured: error loading psycopg2 module: no module named psycopg2 about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss django.core.exceptions.improperlyconfigured: error loading psycopg2 module: 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 a minute: Sign up Django runserver error http://stackoverflow.com/questions/1383126/django-python-beginner-error-when-executing-python-manage-py-syncdb-psycopg2 (psycopg2) up vote 1 down vote favorite I'm trying to do this: python3.3 manage.py runserver In my Django project folder. I get this error message: File "/usr/local/lib/python3.3/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 25, in
here for a quick overview of the site Help Center Detailed answers to any http://stackoverflow.com/questions/27841794/error-running-python-3-4-with-postgresql-psycopg2-and-django questions you might have Meta Discuss the workings and policies of http://stackoverflow.com/questions/12728004/error-no-module-named-psycopg2-extensions 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 Overflow Community Stack Overflow error loading is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error running Python 3.4 with PostgreSQL (psycopg2) and Django up vote 1 down vote favorite So if I start Python 2.7's shell with python, and run import psycopg2, I don't receive error loading psycopg any errors. However, if I try to run import psycopg2 in Python 3.4's shell, I get: ImportError: No module named 'psycopg2'. On the other hand, importing django works fine on both shells (after using pip3 to install it). Secondly, if I run python3 manage.py runserver, I get an error (see below), whereas I don't if I use just python. I think this is because of the first problem I described but I'm not sure (sorry if this is a stupid question, I'm really new to Django - trying to get through the tutorial). File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 23, in < module > import psycopg2 as Database ImportError: No module named 'psycopg2' During handling of the above exception, another exception occurred: Traceback(most recent call last): File "manage.py", line 10, in < module > execute_from_command_line(sys.argv) File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line utility.execute() File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/django/core/management/__init__.py", line 354, in execute django.setup() File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/django/__init__.py", line 21, in setup apps.populate(settings.INSTALLED_APPS) File "/Library/Frameworks/Python.framework/Versions/3.4/lib/pyt
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 more about hiring developers or 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 a minute: Sign up Error: No module named psycopg2.extensions up vote 38 down vote favorite 15 I am trying to set up a PostgreSQL database for my django project, which I believe I have done now thanks to the replies to my last question Problems setting up a postgreSQL database for a django project. I am now trying to run the command 'python manage.py runserver' in Terminal to get my localhost up but when I run the command, I see this response... Error: No module named psycopg2.extensions I'm not sure what this means - I have tried to download psycopg2 but can't seem to find a way to download psycopg2 using homebrew. I have tried easy_install, pip install and sudo but all return errors like this... Downloading http://www.psycopg.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.5.tar.gz Processing psycopg2-2.4.5.tar.gz Writing /tmp/easy_install-l7Qi62/psycopg2-2.4.5/setup.cfg Running psycopg2-2.4.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-l7Qi62/psycopg2-2.4.5/egg-dist-tmp-PBP5Ds no previously-included directories found matching 'doc/src/_build' unable to execute gcc-4.0: No such file or directory error: Setup script exited with error: command 'gcc-4.0' failed with exit status 1 Any help on how to fix this would be very much appreciated! Thanks Jess (Sorry if this is a really simple problem to solve - this is my first django project) python django postgresql psycopg2 share|improve this question asked Oct 4 '12 at 13:08 Jess 3443614 You don't have a compiler installed, and you need one to build the psycopg2 package. If you can provide details about your operating system, people here can probably help you with that. –Ian Clelland Oct 4 '12 at 15:37 @IanClelland Thanks Ian. I'm on Mac OS X 10.6.8. I have homebrew installed if that helps. –Jess Oct 5 '12 at 16:04 add a comment| 10 Answers 10 active olde