Error Loading Psycopg2 Module No Module Named Psycopg2
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 django-core-exceptions-improperlyconfigured error loading psycopg2 module no module named psycopg2 site About Us Learn more about Stack Overflow the company Business Learn more importerror no module named psycopg2 windows about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss
Importerror No Module Named Psycopg2 Mac
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
Error Loading Psycopg2 Module: No Module Named Psycopg2 Mac
(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
Start 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
No Module Named Psycopg2 Centos
the company Business Learn more about hiring developers or posting ads with us Server no module named psycopg2 ubuntu Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. install psycopg2 on windows Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top psycopg2 not found by django http://stackoverflow.com/questions/21516847/django-runserver-error-psycopg2 after installing in virtualenv up vote 5 down vote favorite 1 I want to use postgresql with django so did the following: sudo apt-get install libpq-dev python-dev sudo apt-get update workon myenv sudo pip install psycopg2 And after configuring my settings.py correctly, I run ./manage.py syncdb But an exception gets thrown: django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named psycopg2 The database configuration: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'mydb', 'USER': http://serverfault.com/questions/619879/psycopg2-not-found-by-django-after-installing-in-virtualenv 'postgres', 'PASSWORD': 'password1234', 'HOST': 'localhost', 'PORT': '', } } postgresql django virtualenv share|improve this question edited Aug 14 '14 at 16:01 xofer 2,679518 asked Aug 12 '14 at 15:27 Joren 2816 Check permissions in the venv -- you installed w/ sudo. –xofer Aug 12 '14 at 15:39 Also can you confirm that you installed psycopg2 (and not psycpg2) with pip. –xofer Aug 12 '14 at 15:43 @xofer I did install psycopg2 –Joren Aug 12 '14 at 15:45 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote accepted Installing with sudo (sudo pip install ...) causes the installed files to be owned by root, and Django (run without sudo) cannot read them. You can sudo pip uninstall psycopg2 and then install without sudo. (If that doesn't work, try sudo chown -R $USER ~/.virtualenvs/myvenv first (assumes that's your virtualenv path). share|improve this answer answered Aug 14 '14 at 13:50 xofer 2,679518 2 you are my savior –Suoinguon Dec 16 '14 at 19:16 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 y
Sign in Pricing Blog Support Search GitHub https://github.com/django-oscar/django-oscar/issues/1523 This repository Watch 216 Star 2,181 Fork 879 django-oscar/django-oscar Code Issues 208 Pull requests 73 Projects 0 Wiki Pulse Graphs New https://groups.google.com/d/topic/modwsgi/UCgZG9amvv0 issue django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named 'psycopg2._psycopg' #1523 Closed alfared opened this Issue Oct 16, 2014 · 1 no module 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 a issue. When i building the demo site (oscar) $ make demo (oscar) $ no module named 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
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen