Hello, I am one of the current psycopg maintainers.

This problem was addressed in release 2.4.2. In previous releases, if
the mx include files were found (by setup.py) the mx support was
compiled and mx.DateTime was unconditionally imported at psycopg2 import
time. This creates the error reported here (and in
http://psycopg.lighthouseapp.com/projects/62710/tickets/53) if the
module is not actually available. The error has been reported only
recently (probably trigger by the use of virtualenv with "pure
environments").

The issue was fixed in psycopg 2.4.2, where the import is no more
unconditional even if the mx support is built at compile time. I suggest
to upgrade the package to the most recent version.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/811115

Title:
  [oneiric] ImportError: can't import mx.DateTime module

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/psycopg2/+bug/811115/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to