Django Error Loading Psycopg2 Module No Module Named Psycopg2
Contents |
here for a quick overview of the site django.core.exceptions.improperlyconfigured: error loading psycopg2 module: no module named psycopg2 Help Center Detailed answers to any questions you might have importerror no module named psycopg2 Meta Discuss the workings and policies of this site About Us Learn more about importerror no module named psycopg2 windows Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges
Importerror No Module Named Psycopg2 Mac
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 Django/Python Beginner: Error when executing python manage.py syncdb - psycopg2 not found up django importerror no module named setuptools vote 21 down vote favorite 7 I have Pythong2.6, psycopg2 and pgAdmin3 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
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 importerror no module named settings more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags
Django Importerror No Module Named Creation
Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you,
Django Importerror No Module Named Urls
helping each other. Join them; it only takes a minute: Sign up Error: No module named psycopg2.extensions up vote 37 down vote favorite 14 I am trying to set up a PostgreSQL database for my django project, which http://stackoverflow.com/questions/1383126/django-python-beginner-error-when-executing-python-manage-py-syncdb-psycopg2 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 http://stackoverflow.com/questions/12728004/error-no-module-named-psycopg2-extensions 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 3393614 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 oldest votes up vote 96 down vote The first thing to do is to install the dependencies. sudo apt-get build-dep python-psycopg2 After that go inside your virtualenv and use pip install psycopg2 These two commands should solve the problem. share|improve this answer edited Jan 13 '13 at 22:48 AD7six 34.6k7558
Sign in Pricing Blog Support http://djangopackages.readthedocs.io/en/latest/troubleshooting.html Search GitHub This repository Watch 11 Star 193 Fork 54 justinvh/gitpaste Code Issues 15 Pull requests 3 Projects 0 Pulse Graphs New issue No module named no module psycopg2 #36 Open vohof opened this Issue Nov 19, 2013 · 1 comment Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 2 participants vohof commented Nov no module named 19, 2013 Hi, i'm trying gitpaste on heroku and I'm getting the following error: 2013-11-19T10:19:04.189815+00:00 heroku[web.1]: Starting process with command `cd saic && sh runserver.sh` 2013-11-19T10:19:04.421528+00:00 heroku[web.1]: Process exited with status 1 2013-11-19T10:19:05.518991+00:00 app[web.1]: Traceback (most recent call last): 2013-11-19T10:19:05.518991+00:00 app[web.1]: File "manage.py", line 18, in
not found Other problems FAQ Settings Testing Instructions Management Commands PyPI Issues Team Contributing Repo Handlers Webservice APIv3 Lessons Learned PostgreSQL setup instructions for new contributors Django Packages Docs » Troubleshooting Edit on GitHub Troubleshooting¶ How come no module named abc?¶ If you're getting something like "ImportError: No module named abc", you probably don't have all the required packages installed. Try: pip install -r requirements/project.txt No module named psycopg2¶ If you're getting something like "ImproperlyConfigured: Error loading psycopg2 module: No module named psycopg2" while accessing the website, you need to install the psycopg2 module. It has recently been added to requirements/project.txt (the line that says "psycopg2==2.4"). Try: pip install -r requirements/project.txt If you're getting an error like "Error: pg_config executable not found." while installing the module, you need the PostgreSQL development package. On Ubuntu, do: sudo apt-get install libpq-dev I can't get it to work in buildout!¶ We don't support buildout. See the faq. bz2 not found¶ Install the appropriate systemwide package. For example, on Ubuntu do: sudo apt-get install libbz2-dev If this doesn't work, please let us know (create an issue at http://github.com/opencomparison/opencomparison/issues) fatal error: ‘libmemcached/memcached.h' file not found¶ if you are getting something like ./_pylibmcmodule.h:42:10: fatal error: ‘libmemcached/memcached.h' file not found. Then you need to install libmemcached: brew install libmemcached Other problems¶ Don't give up! Submit problems to http://github.com/opencomparison/opencomparison/issues. And don't forget: Be polite! We are all volunteers. Spend the time to learn Github markup Next Previous © Copyright 2010-2016, Audrey Roy Greenfeld, Daniel Roy Greenfeld and contributors. Revision c04c4d58. Built with Sphinx using a theme provided by Read the Docs. Read the Docs v: latest Versions latest Downloads pdf htmlzip epub On Read the Docs Project Home Builds Free document hosting provided by Read the Docs.