[SciPy-User] tests on python3

Charles R Harris charlesr.harris@gmail....
Fri Oct 22 21:22:34 CDT 2010


On Fri, Oct 22, 2010 at 12:56 PM, Neal Becker <ndbecker2@gmail.com> wrote:

> 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
>
>
Maybe you need the python3K version of nose. It hasn't been released, you
need to download it from it's repository,
http://python-nose.googlecode.com/svn/branches/py3k

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20101022/e0521276/attachment.html 


More information about the SciPy-User mailing list