spectralpython / spectral

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

ImportError: No module named oldnumeric #17

Closed JohnLunzer closed 10 years ago

JohnLunzer commented 10 years ago

I use an Anaconda install and after upgrading to numpy 1.9.0 my install of spectral 1.5.0 throws an error on import. See below. Also this note would explain it :) http://docs.scipy.org/doc/numpy-dev/reference/routines.oldnumeric.html

File "C:/python/calculate.py", line 15, in import spectral

File "C:\Anaconda\lib\site-packages\spectralinit.py", line 48, in from graphics import *

File "C:\Anaconda\lib\site-packages\spectral\graphicsinit.py", line 35, in from colorscale import ColorScale

File "C:\Anaconda\lib\site-packages\spectral\graphics\colorscale.py", line 139, in default_color_scale = create_default_color_scale()

File "C:\Anaconda\lib\site-packages\spectral\graphics\colorscale.py", line 128, in create_default_color_scale from numpy.oldnumeric import array

ImportError: No module named oldnumeric

tboggs commented 10 years ago

Hi John,

This is a duplicate of issue #13 , which has already been fixed. I am hoping to publish version 0.16.0 within the next week or so, which will include this fix. If you would like the fix sooner, you could either download and install the current development version (click the "Download ZIP" button on the github project page) or fetch and install it with pip like this

pip install -U https://github.com/spectralpython/spectral.git