problem with py27-scitools @0.9.0_0

petr.2006 petr.2006 at centrum.cz
Sun Nov 9 02:53:58 PST 2014


Hello,
I am testing python scitools module. I have: 

petbook:~ pet$ port installed py27-numpy py27-scitools 
The following ports are currently installed:
  py27-numpy @1.9.1_0 (active)
  py27-scitools @0.9.0_0 (active)

I tried to import scitools.std:

petbook:~ pet$ python
Python 2.7.8 (default, Oct 15 2014, 21:27:43) 
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import scitools.std
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
>>> 

I tried to look into scitools.numpytools module documentation and I got:

petbook:~ pet$ pydoc scitools.numpytools
problem in scitools.numpytools - <type 'exceptions.ImportError'>: No module named oldnumeric.mlab
numpy import failed!
see doc of scitools.numpytools module for how to choose Numeric instead

Surprisingly  some oldnumeric is there:

petbook:~ pet$ python
Python 2.7.8 (default, Oct 15 2014, 21:27:43) 
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from numpy import oldnumeric

Any hint?
Thank you,
Petr



More information about the macports-users mailing list