Any help appreciate,
Soltys
I doubt that it uses the "correct python", because then you wouldn't
have the problems you have.
I don't use pychecker, but pylint. And there, the system-wide command
uses the system's python - which of course doesn't know anything about
virtualenv.
There are two solutions to this problem:
- install py(lint|checker) into your virtualenv.
- write a wrapper-script that invokes py(lint|checker) with an adapted
PYTHONPATH environtment variable, based on the venv's sys.path. I do
that for my epylint-wrapper for emacs. Works flawlessly.
Diez
See the OP's original assertion:
>> I installed pychecker using python setup.py install
>> from virtualenv. I looked at pychecker script - it uses correct python.
Isn't that "installing into his virtualenv"?
regards
Steve
> - write a wrapper-script that invokes py(lint|checker) with an adapted
> PYTHONPATH environtment variable, based on the venv's sys.path. I do
> that for my epylint-wrapper for emacs. Works flawlessly.
>
>
> Diez
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS: http://holdenweb.eventbrite.com/
You are right, it reads like that. I should have read it better.
All I can say is that even a system-wide pylint with my recipe above
gives me no troubles.
Diez