[IPython-dev] test_pr for 3.x picking up 2.x paths

Fernando Perez fperez.net at gmail.com
Sun Jun 3 16:17:52 EDT 2012

On Sun, Jun 3, 2012 at 6:29 AM, Thomas Kluyver <takowl at gmail.com> wrote:
> No flash of inspiration, sorry. I haven't seen that myself. If you
> check /home/fperez/.ipy_pr_tests/venv-python3.2/bin/iptest3 , does it
> have the correct shebang (should be pointing to a python executable in
> the same folder)?

It does, and it's indeed a python3 binary. At least now I see the
culprit.  If I wipe out PYTHONPATH and start that python, here's the
sys.path it sees:

>>> pprint(sys.path)

That '/usr/lib/pymodules/python2.7' in the middle is what's messing
things up.  I wonder what in this Ubuntu box is setting that
variable...  It's not anything in my personal environment, b/c that's
all just PYTHONPATH.  It's as if a system-wide config file is getting
picked up somewhere...



More information about the IPython-dev mailing list