Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170912 - dev-python/django w/ USE=postgres needs =dev-python/psycopg-1*
Summary: dev-python/django w/ USE=postgres needs =dev-python/psycopg-1*
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-14 17:37 UTC by Rick van Hattem
Modified: 2007-03-14 21:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rick van Hattem 2007-03-14 17:37:12 UTC
I was just recently installing django on one of my computers and I noticed that django has "postgres? ( dev-python/psycopg )" in it, while the postgres flag actually depends on dev-python/psycopg-1*


Reproducible: Always

Steps to Reproduce:
1. install django with the postgres useflag
2. try to use it and you'll get an error

Actual Results:  
Traceback (most recent call last):
  File "./manage.py", line 11, in ?
    execute_manager(settings)
  File "/usr/lib/python2.4/site-packages/django/core/management.py", line 1319, in execute_manager
    execute_from_command_line(action_mapping, argv)
  File "/usr/lib/python2.4/site-packages/django/core/management.py", line 1243, in execute_from_command_line
    action_mapping[action]()
  File "/usr/lib/python2.4/site-packages/django/core/management.py", line 426, in syncdb
    from django.db import connection, transaction, models, get_creation_module
  File "/usr/lib/python2.4/site-packages/django/db/__init__.py", line 11, in ?
    backend = __import__('django.db.backends.%s.base' % settings.DATABASE_ENGINE, '', '', [''])
  File "/usr/lib/python2.4/site-packages/django/db/backends/postgresql/base.py", line 12, in ?
    raise ImproperlyConfigured, "Error loading psycopg module: %s" % e
django.core.exceptions.ImproperlyConfigured: Error loading psycopg module: No module named psycopg

Expected Results:  
A working django application
Comment 1 Tiziano Müller (RETIRED) gentoo-dev 2007-03-14 21:17:09 UTC
Please read this:
http://www.mail-archive.com/django-users@googlegroups.com/msg14308.html
Comment 2 Rick van Hattem 2007-03-14 21:41:29 UTC
I stand corrected.

However, perhaps it would be a good idea to tell the users that they have to use the 'postgresql_psycopg2' driver with psycopg2? (as django doesn't show the option by itself)