Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install error #12

Closed
Luk0r opened this issue Jul 7, 2014 · 4 comments
Closed

install error #12

Luk0r opened this issue Jul 7, 2014 · 4 comments

Comments

@Luk0r
Copy link

Luk0r commented Jul 7, 2014

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
Copy link
Member

tboggs commented Jul 7, 2014

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

@Luk0r
Copy link
Author

Luk0r commented Jul 8, 2014

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

@tboggs tboggs added this to the python3 milestone Jul 8, 2014
@tboggs
Copy link
Member

tboggs commented Jul 8, 2014

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
Copy link
Member

tboggs commented Jul 10, 2014

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

@tboggs tboggs closed this as completed Jul 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants