[SciPy-dev] [MAJOR BUG] latest numpy leads to scikits fail [was: installing openopt]
dmitrey
dmitrey.kroshko@scipy....
Mon Sep 22 06:10:11 CDT 2008
Robert Kern wrote:
> On Sun, Sep 21, 2008 at 14:02, dmitrey <dmitrey.kroshko@scipy.org> wrote:
>
>> Hi all,
>> after updating numpy I have troubles with openopt
>> ImportError: No module named openopt
>>
>> and seems like it is related to timeseries as well: I have similar bug:
>>
>> ~/scikits/timeseries/scikits/timeseries/tests# python test_dates.py
>> Traceback (most recent call last):
>> File "test_dates.py", line 21, in <module>
>> import scikits.timeseries as ts
>> ImportError: No module named timeseries
>>
>
> In fact, I have fixed a bug related to the combination of setuptools
> and numpy.distutils when using "python setup.py install". Please
> remove all scikits and reinstall them. If you are still having
> problems, please tell me exactly what commands you are using to
> install.
>
I have another one bug that should be mentioned:
if I modify any source file and then run "python setup.py install" once
again I have error:
........
(lots of "byte-compiling")
........
byte-compiling
build/bdist.linux-x86_64/egg/scikits/openopt/tests/nlsp1.py to nlsp1.pyc
byte-compiling build/bdist.linux-x86_64/egg/scikits/__init__.py to
__init__.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying scikits.openopt.egg-info/PKG-INFO ->
build/bdist.linux-x86_64/egg/EGG-INFO
copying scikits.openopt.egg-info/SOURCES.txt ->
build/bdist.linux-x86_64/egg/EGG-INFO
copying scikits.openopt.egg-info/dependency_links.txt ->
build/bdist.linux-x86_64/egg/EGG-INFO
copying scikits.openopt.egg-info/namespace_packages.txt ->
build/bdist.linux-x86_64/egg/EGG-INFO
copying scikits.openopt.egg-info/requires.txt ->
build/bdist.linux-x86_64/egg/EGG-INFO
copying scikits.openopt.egg-info/top_level.txt ->
build/bdist.linux-x86_64/egg/EGG-INFO
copying scikits.openopt.egg-info/zip-safe ->
build/bdist.linux-x86_64/egg/EGG-INFO
creating 'dist/scikits.openopt-0.19.dev-py2.5.egg' and adding
'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing scikits.openopt-0.19.dev-py2.5.egg
Removing /usr/lib/python2.5/site-packages/scikits.openopt-0.19.dev-py2.5.egg
Copying scikits.openopt-0.19.dev-py2.5.egg to
/usr/lib/python2.5/site-packages
scikits.openopt 0.19.dev is already the active version in easy-install.pth
Installed
/usr/lib/python2.5/site-packages/scikits.openopt-0.19.dev-py2.5.egg
Processing dependencies for scikits.openopt==0.19.dev
Traceback (most recent call last):
File "setup.py", line 96, in <module>
'Topic :: Scientific/Engineering']
File "/usr/lib/python2.5/site-packages/numpy/distutils/core.py", line
184, in setup
return old_setup(**new_attr)
File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File
"/usr/lib/python2.5/site-packages/numpy/distutils/command/install.py",
line 51, in run
r = self.setuptools_run()
File
"/usr/lib/python2.5/site-packages/numpy/distutils/command/install.py",
line 45, in setuptools_run
self.do_egg_install()
File "/usr/lib/python2.5/site-packages/setuptools/command/install.py",
line 104, in do_egg_install
cmd.run()
File
"/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py",
line 211, in run
self.easy_install(spec, not self.no_deps)
File
"/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py",
line 427, in easy_install
return self.install_item(None, spec, tmpdir, deps, True)
File
"/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py",
line 478, in install_item
self.process_distribution(spec, dist, deps)
File
"/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py",
line 519, in process_distribution
[requirement], self.local_index, self.easy_install
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 529, in
resolve
requirements.extend(dist.requires(req.extras)[::-1])
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 2107,
in requires
dm = self._dep_map
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 2099,
in _dep_map
for extra,reqs in split_sections(self._get_metadata(name)):
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 2518,
in split_sections
for line in yield_lines(s):
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1813,
in yield_lines
for ss in strs:
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 2121,
in _get_metadata
for line in self.get_metadata_lines(name):
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1140,
in get_metadata_lines
return yield_lines(self.get_metadata(name))
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1137,
in get_metadata
return self._get(self._fn(self.egg_info,name))
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1195,
in _get
return self.loader.get_data(path)
zipimport.ZipImportError: bad local file header in
/usr/lib/python2.5/site-packages/scikits.openopt-0.19.dev-py2.5.egg
So currently each time I have modified openopt source code I have to use
"rm /usr/lib/python2.5/site-packages/*openopt*"
D.
More information about the Scipy-dev
mailing list