[Numpy-discussion] Numpy and Python3

Katharina Ingwer.Wurzel@gmx....
Sat Dec 11 12:53:30 CST 2010


Hi,
yes my build is in /usr/local/lib/python3.1/site-packages/numpy-1.5.1.
Is't wrong?

/ Ingwer

Am Samstag, den 11.12.2010, 08:05 -0700 schrieb Charles R Harris:
> 
> 
> On Sat, Dec 11, 2010 at 5:41 AM, Katharina <Ingwer.Wurzel@gmx.net>
> wrote:
>         Hi,
>         I install Python3.1, but I get the same Error:
>         --------------------------------------------------------------------------------------------------------
>         sudo python3 setup.py build --fcompiler=gnu95
>         Converting to Python3 via 2to3...
>         RefactoringTool: Skipping implicit fixer: buffer
>         RefactoringTool: Skipping implicit fixer: idioms
>         RefactoringTool: Skipping implicit fixer: set_literal
>         RefactoringTool: Skipping implicit fixer: ws_comma
>         RefactoringTool: No files need to be modified.
>         Running from numpy source directory.Traceback (most recent
>         call last):
>          File "setup.py", line 211, in <module>
>            setup_package()
>          File "setup.py", line 188, in setup_package
>            from numpy.distutils.core import setup
>          File
>         "/usr/local/lib/python3.1/site-packages/numpy-1.5.1/build/py3k/numpy/distutils/__init__.py", line 22, in <module>
>            import numpy.distutils.ccompiler
> 
> Are you doing the build in  /usr/local/lib/python3.1/site-packages/ ?
> Usually the build is done in a working directory and installed by
> "python setup.py install". I don't know that that is the problem, but
> it is unusual.
> 
> 
>          File
>         "/usr/local/lib/python3.1/site-packages/numpy-1.5.1/build/py3k/numpy/distutils/ccompiler.py", line 15, in <module>
>            from numpy.distutils.exec_command import exec_command
>          File
>         "/usr/local/lib/python3.1/site-packages/numpy-1.5.1/build/py3k/numpy/distutils/exec_command.py", line 58, in <module>
>            from numpy.compat import open_latin1
>          File
>         "/usr/local/lib/python3.1/site-packages/numpy-1.5.1/build/py3k/numpy/compat/__init__.py", line 14, in <module>
>            from .py3k import *
>         AttributeError: 'module' object has no attribute 'unicode'
>         
>         --------------------------------------------------------------------------------------------------------
>         
>         Can somebody see, what's the problem?
>         I'm really pleased for any help.
>         
> 
> <snip>
> 
> Chuck 
> 
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion



More information about the NumPy-Discussion mailing list