Alexandr1157 / scitools

Automatically exported from code.google.com/p/scitools
Other
0 stars 0 forks source link

scitools.std broken with numpy 1.9 #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
NumPy 1.9 (released August 2014, I think) removes oldnumeric backwards 
compatibility. This causes a crash in numpyutils.py e.g. when doing from 
scitools.std import *.

Python 2.7.9 on OSX 10.10.1. py27-scitools installed via MacPorts.

Python 2.7.9 (default, Dec 13 2014, 15:13:49) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from scitools.std import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scitools/std.py", line 26, in <module>
    from scitools.easyviz import *
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scitools/easyviz/__init__.py", line 3431, in <module>
    exec(cmd)
  File "<string>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scitools/easyviz/matplotlib_.py", line 29, in <module>
    from common import *
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scitools/easyviz/common.py", line 5, in <module>
    from scitools.numpytools import arrmin, arrmax, NumPyArray
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scitools/numpytools.py", line 261, in <module>
    (e, __name__))
ImportError: No module named oldnumeric.mlab
numpy import failed!
see doc of scitools.numpytools module for how to choose Numeric instead

Original issue reported on code.google.com by marvon...@gmail.com on 20 Jan 2015 at 1:44

GoogleCodeExporter commented 8 years ago
Was this tested with the latest commit in the scitools repository?

Original comment by h...@simula.no on 20 Jan 2015 at 2:22

GoogleCodeExporter commented 8 years ago
The py27-scitools package from MacPorts was used. It looks like this is using 
the 0.9.0 release:

https://trac.macports.org/browser/trunk/dports/python/py-scitools/Portfile

Original comment by johannes...@gmail.com on 20 Jan 2015 at 2:30

GoogleCodeExporter commented 8 years ago
I just used MacPorts to install it, so don’t know for sure which revision it 
is. I wouldn’t be surprised if it is not the newest though.

What I can find immediately is that is is version 0.9.0 (which is the newest 
one as far as I can tell), but I will do some digging to find the exact 
revision.
—
Martin

Original comment by marvon...@gmail.com on 20 Jan 2015 at 2:36

GoogleCodeExporter commented 8 years ago
Try

hg clone https://hpl%40simula.no@code.google.com/p/scitools/ 
cd scitools
sudo python setup.py install

Then you get the latest version. We recently did some adjustments for numpy 1.9.

Original comment by h...@simula.no on 20 Jan 2015 at 2:45

GoogleCodeExporter commented 8 years ago
I haven’t found out exactly which patch I got from MacPorts, but I don’t 
seem to have any of the patchsets added in 2014, so I guess the version on 
MacPorts is quite old.

Anyways it worked without issues to make the install from the repo as suggested 
on the webpage.

I’ll notify the MacPorts maintainer about the outdated package.
—
Martin

Original comment by marvon...@gmail.com on 21 Jan 2015 at 9:59

GoogleCodeExporter commented 8 years ago
This seems to be working with the latest version from the source repository. 
Marking this as fixed. 

Original comment by johannes...@gmail.com on 24 Feb 2015 at 12:04

GoogleCodeExporter commented 8 years ago
Hi!, I am using Anaconda and Scitools and I am having that problem:

ImportError: No module named oldnumeric.mlab
numpy import failed!
see doc of scitools.numpytools module for how to choose Numeric instead.

I know that anaconda includes Scitools but I also downloaded it from here: 
https://code.google.com/p/scitools/wiki/Installation

I don't know what to do, I downloaded Scitools fro Windows from here:

https://code.google.com/p/scitools/wiki/Installation

Any help? thanks

Original comment by fernando...@gmail.com on 22 Jul 2015 at 12:26

GoogleCodeExporter commented 8 years ago
First of all, scitools has moved to github, so everything here at googlecode 
means old code and outdated information. The problem you refer should be fixed 
in the most recent version at github.

Original comment by h...@simula.no on 22 Jul 2015 at 2:55