Hi, I can imagine that this is low-priority, but I have just been enjoying pytox for automated virtualenv testing: http://codespeak.net/tox/index.html which revealed that numpy download-build-install via easy_install (distribute) fails with the appended traceback ending in "ValueError: 'build/py3k/numpy' is not a directory". easy_install for pythons 2.5 - 2.7 work fine. Best, Matthew RefactoringTool: /tmp/easy_install-xr2px3/numpy-1.5.1/build/py3k/numpy/compat/py3k.py Running from numpy source directory.Converting to Python3 via 2to3... Traceback (most recent call last): File "../bin/easy_install", line 9, in <module> load_entry_point('distribute==0.6.14', 'console_scripts', 'easy_install')() File "/home/mb312/dev_trees/nibabel/.tox/py32/lib/python3.2/site-packages/distribute-0.6.14-py3.2.egg/setuptools/command/easy_install.py", line 1855, in main with_ei_usage(lambda: File "/home/mb312/dev_trees/nibabel/.tox/py32/lib/python3.2/site-packages/distribute-0.6.14-py3.2.egg/setuptools/command/easy_install.py", line 1836, in with_ei_usage return f() File "/home/mb312/dev_trees/nibabel/.tox/py32/lib/python3.2/site-packages/distribute-0.6.14-py3.2.egg/setuptools/command/easy_install.py", line 1859, in <lambda> distclass=DistributionWithoutHelpCommands, **kw File "/usr/lib/python3.2/distutils/core.py", line 149, in setup dist.run_commands() File "/usr/lib/python3.2/distutils/dist.py", line 919, in run_commands self.run_command(cmd) File "/usr/lib/python3.2/distutils/dist.py", line 938, in run_command cmd_obj.run() File "/home/mb312/dev_trees/nibabel/.tox/py32/lib/python3.2/site-packages/distribute-0.6.14-py3.2.egg/setuptools/command/easy_install.py", line 342, in run self.easy_install(spec, not self.no_deps) File "/home/mb312/dev_trees/nibabel/.tox/py32/lib/python3.2/site-packages/distribute-0.6.14-py3.2.egg/setuptools/command/easy_install.py", line 582, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/home/mb312/dev_trees/nibabel/.tox/py32/lib/python3.2/site-packages/distribute-0.6.14-py3.2.egg/setuptools/command/easy_install.py", line 612, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/home/mb312/dev_trees/nibabel/.tox/py32/lib/python3.2/site-packages/distribute-0.6.14-py3.2.egg/setuptools/command/easy_install.py", line 802, in install_eggs return self.build_and_install(setup_script, setup_base) File "/home/mb312/dev_trees/nibabel/.tox/py32/lib/python3.2/site-packages/distribute-0.6.14-py3.2.egg/setuptools/command/easy_install.py", line 1079, in build_and_install self.run_setup(setup_script, setup_base, args) File "/home/mb312/dev_trees/nibabel/.tox/py32/lib/python3.2/site-packages/distribute-0.6.14-py3.2.egg/setuptools/command/easy_install.py", line 1068, in run_setup run_setup(setup_script, args) File "/home/mb312/dev_trees/nibabel/.tox/py32/lib/python3.2/site-packages/distribute-0.6.14-py3.2.egg/setuptools/sandbox.py", line 30, in run_setup lambda: exec(compile(open( File "/home/mb312/dev_trees/nibabel/.tox/py32/lib/python3.2/site-packages/distribute-0.6.14-py3.2.egg/setuptools/sandbox.py", line 71, in run return func() File "/home/mb312/dev_trees/nibabel/.tox/py32/lib/python3.2/site-packages/distribute-0.6.14-py3.2.egg/setuptools/sandbox.py", line 33, in <lambda> {'__file__':setup_script, '__name__':'__main__'}) File "setup.py", line 211, in <module> File "setup.py", line 204, in setup_package File "/tmp/easy_install-xr2px3/numpy-1.5.1/build/py3k/numpy/distutils/core.py", line 152, in setup File "setup.py", line 151, in configuration File "/tmp/easy_install-xr2px3/numpy-1.5.1/build/py3k/numpy/distutils/misc_util.py", line 972, in add_subpackage File "/tmp/easy_install-xr2px3/numpy-1.5.1/build/py3k/numpy/distutils/misc_util.py", line 941, in get_subpackage File "/tmp/easy_install-xr2px3/numpy-1.5.1/build/py3k/numpy/distutils/misc_util.py", line 878, in _get_configuration_from_setup_py File "numpy/setup.py", line 5, in configuration File "/tmp/easy_install-xr2px3/numpy-1.5.1/build/py3k/numpy/distutils/misc_util.py", line 713, in __init__ ValueError: 'build/py3k/numpy' is not a directory
On Wed, May 4, 2011 at 6:53 PM, Matthew Brett <matthew.brett@gmail.com>wrote:
Hi,
I can imagine that this is low-priority, but I have just been enjoying pytox for automated virtualenv testing:
http://codespeak.net/tox/index.html
which revealed that numpy download-build-install via easy_install (distribute) fails with the appended traceback ending in "ValueError: 'build/py3k/numpy' is not a directory".
I think it would be good to just say "wontfix" immediately, rather than just leaving a ticket open and not do anything (like we did with http://projects.scipy.org/numpy/ticket/860). It seems tox can also use pip (which works with py3k now), does that work for you? Ralf
easy_install for pythons 2.5 - 2.7 work fine.
Best,
Matthew
Hi, On Wed, May 4, 2011 at 1:23 PM, Ralf Gommers <ralf.gommers@googlemail.com> wrote:
On Wed, May 4, 2011 at 6:53 PM, Matthew Brett <matthew.brett@gmail.com> wrote:
Hi,
I can imagine that this is low-priority, but I have just been enjoying pytox for automated virtualenv testing:
http://codespeak.net/tox/index.html
which revealed that numpy download-build-install via easy_install (distribute) fails with the appended traceback ending in "ValueError: 'build/py3k/numpy' is not a directory".
I think it would be good to just say "wontfix" immediately, rather than just leaving a ticket open and not do anything (like we did with http://projects.scipy.org/numpy/ticket/860).
Ouch - yes - I see what you mean.
It seems tox can also use pip (which works with py3k now), does that work for you?
I think current tox 0.9 uses virtualenv5 for python3.2 and has to use distribute, I believe. Current tip of pytox appears to use virtualenv 1.6.1 for python 3.2, and does use pip, but generates the same error in the end. I've appended the result of a fresh python3.2 virtualenv and a "pip install numpy". Sorry - I know these are not fun problems, See you, Matthew RefactoringTool: /home/mb312/.virtualenvs/bare-32/build/numpy/build/py3k/numpy/core/defchararray.py Running from numpy source directory.Traceback (most recent call last): File "<string>", line 14, in <module> File "/home/mb312/.virtualenvs/bare-32/build/numpy/setup.py", line 211, in <module> setup_package() File "/home/mb312/.virtualenvs/bare-32/build/numpy/setup.py", line 204, in setup_package configuration=configuration ) File "/home/mb312/.virtualenvs/bare-32/build/numpy/build/py3k/numpy/distutils/core.py", line 152, in setup config = configuration() File "/home/mb312/.virtualenvs/bare-32/build/numpy/setup.py", line 151, in configuration config.add_subpackage('numpy') File "/home/mb312/.virtualenvs/bare-32/build/numpy/build/py3k/numpy/distutils/misc_util.py", line 972, in add_subpackage caller_level = 2) File "/home/mb312/.virtualenvs/bare-32/build/numpy/build/py3k/numpy/distutils/misc_util.py", line 941, in get_subpackage caller_level = caller_level + 1) File "/home/mb312/.virtualenvs/bare-32/build/numpy/build/py3k/numpy/distutils/misc_util.py", line 878, in _get_configuration_from_setup_py config = setup_module.configuration(*args) File "numpy/setup.py", line 5, in configuration config = Configuration('numpy',parent_package,top_path) File "/home/mb312/.virtualenvs/bare-32/build/numpy/build/py3k/numpy/distutils/misc_util.py", line 713, in __init__ raise ValueError("%r is not a directory" % (package_path,)) ValueError: 'build/py3k/numpy' is not a directory
On Wed, May 4, 2011 at 8:51 PM, Matthew Brett <matthew.brett@gmail.com>wrote:
Hi,
On Wed, May 4, 2011 at 1:23 PM, Ralf Gommers <ralf.gommers@googlemail.com> wrote:
On Wed, May 4, 2011 at 6:53 PM, Matthew Brett <matthew.brett@gmail.com> wrote:
Hi,
I can imagine that this is low-priority, but I have just been enjoying pytox for automated virtualenv testing:
http://codespeak.net/tox/index.html
which revealed that numpy download-build-install via easy_install (distribute) fails with the appended traceback ending in "ValueError: 'build/py3k/numpy' is not a directory".
I think it would be good to just say "wontfix" immediately, rather than
just
leaving a ticket open and not do anything (like we did with http://projects.scipy.org/numpy/ticket/860).
Ouch - yes - I see what you mean.
It seems tox can also use pip (which works with py3k now), does that work for you?
I think current tox 0.9 uses virtualenv5 for python3.2 and has to use distribute, I believe. Current tip of pytox appears to use virtualenv 1.6.1 for python 3.2, and does use pip, but generates the same error in the end.
I've appended the result of a fresh python3.2 virtualenv and a "pip install numpy".
Sorry - I know these are not fun problems,
Not too much fun indeed. Helped me become better friends with pdb though. I opened http://projects.scipy.org/numpy/ticket/1857 and explained the issue as far as I understand it. Summary: 1. There's a bug in Configuration.__init__ where dirname(abspath(nonexistingfile)) gives curdir. 1. The bug in (1) happens to work out well in combination with the os.chdir call in the main setup.py. 1. Once we correct for this so that the bug from (1) does not affect install under pip + virtualenv, we run into another issue due to both numpy.distutils and pip messing with __file__ in ugly and incompatible ways. Even if the "python setup.py egg_info" command in pip can be fixed, there may well be more issues to run into. I don't think I'm going to spend more time on this. If someone wants a challenge and can wrap his brain around things like: caller_file = eval('__file__', frame.f_globals, frame.f_locals) have fun! Cheers, Ralf
participants (2)
-
Matthew Brett
-
Ralf Gommers