Issue by kmdouglass
Tuesday Mar 10, 2015 at 16:18 GMT
Originally opened as https://github.com/mperrin/poppy/issues/80
Hi all,
I've just setup a clean virtualenv named myEnv in which I attempted to install poppy from pip3. Here are the current versions of packages I setup in the virtualenv using the Python 3.4.1 interpreter. I'm using Debian Wheezy.
(myEnv)douglass:~$ pip freeze
astropy==1.0.1
certifi==14.5.14
d2to1==0.2.11
docutils==0.12
ipython==3.0.0
Jinja2==2.7.3
jsonschema==2.4.0
MarkupSafe==0.23
matplotlib==1.4.3
mistune==0.5.1
nose==1.3.4
numpy==1.9.2
numpydoc==0.5
psutil==2.2.1
ptyprocess==0.4
pyfits==3.3
Pygments==2.0.2
pyparsing==2.0.3
pysynphot==0.9.6
python-dateutil==2.4.1
pytz==2014.10
pyzmq==14.5.0
requests==2.5.3
scipy==0.15.1
six==1.9.0
Sphinx==1.2.3
stsci.distutils==0.3.7
terminado==0.5
tornado==4.1
And the output from the install attempt:
(myEnv)douglass:~$ pip3 install poppy
Collecting poppy
Using cached poppy-0.3.4.tar.gz
/home/douglass/.virtualenvs/myEnv/lib/python3.4/site-packages/pkg_resources/__init__.py:190: RuntimeWarning: You have iterated over the result of pkg_resources.parse_version. This is a legacy behav
ior which is inconsistent with the new version class introduced in setuptools 8.0. In most cases, conversion to a tuple is unnecessary. For comparison of versions, sort the Version instances directly. If you h
ave another use case requiring the tuple, please file a bug with the setuptools project describing that need.
stacklevel=1,
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/tmp/pip-build-8io8bu2m/poppy/setup.py", line 71, in <module>
cmdclassd = register_commands(PACKAGENAME, VERSION, RELEASE)
File "/tmp/pip-build-8io8bu2m/poppy/.eggs/astropy_helpers-0.4.8-py3.4.egg/astropy_helpers/setup_helpers.py", line 409, in register_commands
'build_ext': generate_build_ext_command(package, release),
File "/tmp/pip-build-8io8bu2m/poppy/.eggs/astropy_helpers-0.4.8-py3.4.egg/astropy_helpers/setup_helpers.py", line 470, in generate_build_ext_command
uses_cython = should_build_with_cython(packagename, release)
File "/tmp/pip-build-8io8bu2m/poppy/.eggs/astropy_helpers-0.4.8-py3.4.egg/astropy_helpers/setup_helpers.py", line 1205, in should_build_with_cython
fromlist=['release', 'cython_version'])
File "/tmp/pip-build-8io8bu2m/poppy/poppy/__init__.py", line 78, in <module>
from . import poppy_core
Complete output from command python setup.py egg_info:
/home/douglass/.virtualenvs/myEnv/lib/python3.4/site-packages/pkg_resources/__init__.py:190: RuntimeWarning: You have iterated over the result of pkg_resources.parse_version. This is a legacy behav
ior which is inconsistent with the new version class introduced in setuptools 8.0. In most cases, conversion to a tuple is unnecessary. For comparison of versions, sort the Version instances directly. If you h
ave another use case requiring the tuple, please file a bug with the setuptools project describing that need.
stacklevel=1,
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/tmp/pip-build-8io8bu2m/poppy/setup.py", line 71, in <module>
cmdclassd = register_commands(PACKAGENAME, VERSION, RELEASE)
File "/tmp/pip-build-8io8bu2m/poppy/.eggs/astropy_helpers-0.4.8-py3.4.egg/astropy_helpers/setup_helpers.py", line 409, in register_commands
'build_ext': generate_build_ext_command(package, release),
File "/tmp/pip-build-8io8bu2m/poppy/.eggs/astropy_helpers-0.4.8-py3.4.egg/astropy_helpers/setup_helpers.py", line 470, in generate_build_ext_command
uses_cython = should_build_with_cython(packagename, release)
File "/tmp/pip-build-8io8bu2m/poppy/.eggs/astropy_helpers-0.4.8-py3.4.egg/astropy_helpers/setup_helpers.py", line 1205, in should_build_with_cython
fromlist=['release', 'cython_version'])
File "/tmp/pip-build-8io8bu2m/poppy/poppy/__init__.py", line 78, in <module>
from . import poppy_core
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-8io8bu2m/poppy
Any idea how I can install poppy using Python3, or am I stuck with Python2? I also ran into a similar error when trying to install PyFFTW, but this is probably a secondary issue.
Thanks!