[SciPy-User] tests on python3

Neal Becker ndbecker2 at gmail.com
Fri Oct 22 14:56:34 EDT 2010


python3
import scipy

 scipy.test()
Running unit tests for scipy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python3.1/site-packages/numpy/testing/nosetester.py", 
line 318, in test
    self._show_system_info()
  File "/usr/lib64/python3.1/site-packages/numpy/testing/nosetester.py", 
line 187, in _show_system_info
    nose = import_nose()
  File "/usr/lib64/python3.1/site-packages/numpy/testing/nosetester.py", 
line 69, in import_nose
    raise ImportError(msg)
ImportError: Need nose >= 0.10.0 for tests - see 
http://somethingaboutorange.com/mrl/projects/nose

OK, let's try that
>>> 
sudo easy_install-3.1 --upgrade nose
install_dir /usr/lib/python3.1/site-packages/
Searching for nose
Reading http://pypi.python.org/simple/nose/
Reading http://somethingaboutorange.com/mrl/projects/nose/
Best match: nose 0.11.4
Downloading 
http://somethingaboutorange.com/mrl/projects/nose/nose-0.11.4.tar.gz
Processing nose-0.11.4.tar.gz
Running nose-0.11.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-
AifmAS/nose-0.11.4/egg-dist-tmp-SwMTG_
no previously-included directories found matching 'doc/.build'
  File "build/bdist.linux-x86_64/egg/nose/inspector.py", line 40
    except tokenize.TokenError, e:
                              ^
SyntaxError: invalid syntax

  File "build/bdist.linux-x86_64/egg/nose/twistedtools.py", line 164
    raise exc_type, exc_value, tb
                  ^
... lots more SyntaxErrors




More information about the SciPy-User mailing list