Hi.
>> I'm a noob when it comes to virtualenv. t-h.o runs on Apache2 with
>> mod_wsgi. If someone could point me to a good tutorial for such a setup,
>> that would be great.
> modwsgi site has everything you need. [...]
Thanks. I have started building a virtualenv for Trac 0.10 as a first
step, but got stuck.
The following is done on Debian Lenny. This is what I have done so far:
=== cut ===
# mkdir /usr/local/pythonenv
# cd /usr/local/pythonenv
# virtualenv --no-site-packages BASEDIR
# virtualenv --no-site-packages TRAC-0.10
# apt-get build-dep python-psycopg2
# pip install -E TRAC-0.10 psycopg2
=== cut ===
This worked fine up to this point. But then:
=== cut ===
# 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
#
=== cut ===
Hmm, ok. So I've tried:
=== cut ===
# pip install -E TRAC-0.10 egenix-mx-base
[...]
Running setup.py install for egenix-mx-base
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: option --single-version-externally-managed not recognized
[...]
=== cut ===
There is a blog post [1] which deals with a similar issue and suggests
that it may help to tweak egenix-mx-base's setup.py, but to be honest I'm
not very keen on such things. Any other ideas?
Bye, Mike
[1] http://xdissent.com/blog/2009/mar/15/utidylib-fix/
_______________________________________________
th-users mailing list
[email protected]
https://lists.trac-hacks.org/mailman/listinfo/th-users