spectralpython / spectral

Python module for hyperspectral image processing
MIT License
573 stars 139 forks source link

install error #12

Closed Luk0r closed 10 years ago

Luk0r commented 10 years ago

I have the following error when installing using pip (on manjaro linux (archbased)).

Downloading/unpacking spectral
  Downloading spectral-0.15.0.tar.gz (145kB): 145kB downloaded
  Running setup.py (path:/tmp/pip_build_root/spectral/setup.py) egg_info for package spectral
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip_build_root/spectral/setup.py", line 8, in <module>
        import spectral
      File "/tmp/pip_build_root/spectral/spectral/__init__.py", line 44, in <module>
        from spectral import (open_image, load_training_sets, save_training_sets,
    ImportError: cannot import name 'open_image'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip_build_root/spectral/setup.py", line 8, in <module>

    import spectral

  File "/tmp/pip_build_root/spectral/spectral/__init__.py", line 44, in <module>

    from spectral import (open_image, load_training_sets, save_training_sets,

ImportError: cannot import name 'open_image'
tboggs commented 10 years ago

Were you attempting to install the module for python3? The spectral module currently only works under python 2.6 and 2.7.

Luk0r commented 10 years ago

Yes, I was trying to install under python3. Ok, bad luck :(

tboggs commented 10 years ago

spectral is developed for python2 so this isn't really a bug but I will leave it open as an implied enhancement request (i.e., make spectral work for python3).

Most of the conversion to python3 should be fairly straightforward, with the exceptions of the view_cube and view_nd functions, both of which depend on wxPython (which does not have a python3 version).

tboggs commented 10 years ago

I'm going to close this issue and mark it as a duplicate of enhancement #14, which details the migration to python3.