[Python-modules-team] Bug#691251: python3.3 compatibility (No such file or directory: '/home/yoh/python-env/python3.3/bin/easy_install')

Jakub Wilk jwilk at debian.org
Tue Oct 23 18:48:22 UTC 2012


* Yaroslav Halchenko <yoh at debian.org>, 2012-10-23, 11:27:
>>please note that python3.3 comes with its own pyvenv-3.3
>how could I forget about those great news...
>
>1. btw - could you share info on what 'm' is after in
>
>/usr/include/x86_64-linux-gnu/python3.3m
>
>?

It stands for "with pyMalloc".
See: http://www.python.org/dev/peps/pep-3149/#proposal

>2. any hints on how to make nose work with 3.3 now? ;)
>
>so I did
>
>pyvenv-3.3 --system-site-packages $HOME/python-env/python3.3
>
>but then testing "using" installed nose doesn't work although it is
>available:
>
>(git)novo:~exppsy/mpi4py[master]git
>$> PYTHONPATH=/home/yoh/deb/gits/pkg-exppsy/mpi4py/install/lib/python3.3/site-packages/mpi4py $HOME/python-env/python3.3/bin/python3.3 /usr/bin/nosetests mpi4py
>Traceback (most recent call last):
>  File "/usr/bin/nosetests", line 5, in <module>
>    from pkg_resources import load_entry_point
>  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2708, in <module>
>    working_set.require(__requires__)
>  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 686, in require
>    needed = self.resolve(parse_requirements(requirements))
>  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 584, in resolve
>    raise DistributionNotFound(req)
>pkg_resources.DistributionNotFound: nose==1.1.2

This smells like #681759.

>$> PYTHONPATH=/home/yoh/deb/gits/pkg-exppsy/mpi4py/install/lib/python3.3/site-packages/mpi4py $HOME/python-env/python3.3/bin/python3.3 -c 'import nose; print(nose.__version__)'
>1.1.2
>
>
>nor I succeeded to install in that virtualenv current nose
>(release_1.2.1-16-gb9b6bca) which seems to not care to 2to3 before
>installation:
>
>$> $HOME/python-env/python3.3/bin/python3.3 setup.py install
>/usr/lib/python3.3/distutils/dist.py:257: UserWarning: Unknown distribution option: 'test_suite'
>  warnings.warn(msg)
>/usr/lib/python3.3/distutils/dist.py:257: UserWarning: Unknown distribution option: 'zip_safe'
>  warnings.warn(msg)
>/usr/lib/python3.3/distutils/dist.py:257: UserWarning: Unknown distribution option: 'entry_points'
>  warnings.warn(msg)
>/usr/lib/python3.3/distutils/dist.py:257: UserWarning: Unknown distribution option: 'use_2to3'
>  warnings.warn(msg)
>running install
>running build
>running build_py
>running install_lib
>byte-compiling /home/yoh/python-env/python3.3/local/lib/python3.3/dist-packages/nose/config.py to config.cpython-33.pyc
>  File "/home/yoh/python-env/python3.3/local/lib/python3.3/dist-packages/nose/config.py", line 66
>    except ConfigParser.Error, exc:
>                             ^
>SyntaxError: invalid syntax
>...

Ditto.

-- 
Jakub Wilk



More information about the Python-modules-team mailing list