hplgit / scitools

Additional scientific computing functionality in Python - extensions to NumPy/SciPy++
http://hplgit.github.io/scitools/doc/web/index.html
Other
64 stars 30 forks source link

problems when installing with easy_install #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. easy_install scitools
2.
3.

What is the expected output? What do you see instead?
$ easy_install simpleitk
Searching for simpleitk
Best match: SimpleITK 0.4.0
Processing SimpleITK-0.4.0-py2.7-linux-x86_64.egg
SimpleITK 0.4.0 is already the active version in easy-install.pth

Using 
/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/SimpleITK-0.4.0-py2.7-l
inux-x86_64.egg
Processing dependencies for simpleitk
Finished processing dependencies for simpleitk
[yangfei@lab023 Version_5.1.8_Out]$ easy_install wrapitk
Searching for wrapitk
Reading http://pypi.python.org/simple/wrapitk/
Couldn't find index page for 'wrapitk' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for wrapitk
error: Could not find suitable distribution for Requirement.parse('wrapitk')
[yangfei@lab023 Version_5.1.8_Out]$ easy_install scitools
Searching for scitools
Reading http://pypi.python.org/simple/scitools/
Reading http://scitools.googlecode.com
Best match: scitools 0.8
Downloading https://scitools.googlecode.com/files/scitools-0.8.tar.gz
Processing scitools-0.8.tar.gz
Running scitools-0.8/setup.py -q bdist_egg --dist-dir 
/tmp/easy_install-E9j_jd/scitools-0.8/egg-dist-tmp-bFTaHh
default scitools.easyviz backend becomes matplotlib
(could be set by the --easyviz_backend option to setup.py)

Traceback (most recent call last):
  File "/soft/python-epd/7.2/bin/easy_install", line 10, in <module>
    sys.exit(main())
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1883, in main
    with_ei_usage(lambda:
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1864, in with_ei_usage
    return f()
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1887, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 349, in run
    self.easy_install(spec, not self.no_deps)
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 589, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 619, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 809, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1086, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1075, in run_setup
    run_setup(setup_script, args)
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/sandbox.py", line 30, in run_setup
    lambda: execfile(
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/sandbox.py", line 72, in run
    return func()
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/sandbox.py", line 32, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'}
  File "setup.py", line 76, in <module>
    raise ValueError('did not find HDF5 headers')
  File "lib/scitools/__init__.py", line 78, in <module>

  File "lib/scitools/std.py", line 26, in <module>
  File "lib/scitools/easyviz/__init__.py", line 2734, in <module>

  File "<string>", line 1, in <module>
  File "lib/scitools/easyviz/matplotlib_.py", line 35, in <module>
  File "lib/scitools/misc.py", line 42, in test_if_module_exists
UnboundLocalError: local variable 'message' referenced before assignment

What version of the product are you using? On what operating system?
centos

Please provide any additional information below.

Original issue reported on code.google.com by fei.y...@gmail.com on 7 Jun 2012 at 4:02

GoogleCodeExporter commented 9 years ago
Thanks for the report. This has now been fixed in the hg repository. See also 
attached patch.

Original comment by johannes...@gmail.com on 7 Jun 2012 at 6:47

Attachments: