Michael Renzmann wrote: > ... > # source TRAC-0.10/bin/activate > (TRAC-0.10)# python -c "import psycopg2" > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File > "/usr/local/pythonenv/TRAC-0.10/lib/python2.5/site-packages/psycopg2/__init__.py", > line 60, in <module> > from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID > ImportError: can't import mx.DateTime module > (TRAC-0.10)# deactivate > # >
Too bad the psycopg2 package has been built with mx.dateTime support, as that's not strictly necessary. You can probably rebuild the psycopg2 package from source, and if you don't have the mx stuff installed, it will build cleanly without. > === cut === > > Hmm, ok. So I've tried: > === cut === > # pip install -E TRAC-0.10 egenix-mx-base > ... > > error: option --single-version-externally-managed not recognized > [...] > Alternatively, you can install egenix-mx-base and, why not, psycopg2 as well in the normal installation, then let virtualenv copy over those packages by /not/ specifying the --no-site-packages flag when creating the virtualenv (if you already have things in your site-packages of the base you don't want in your virtualenv, cleaning-up your virtualenv site-packages manually is not a big deal). -- Christian _______________________________________________ th-users mailing list [email protected] https://lists.trac-hacks.org/mailman/listinfo/th-users
