[Numpy-discussion] Numpy and Python3
Charles R Harris
charlesr.harris at gmail.com
Sat Dec 11 10:05:17 EST 2010
On Sat, Dec 11, 2010 at 5:41 AM, Katharina <Ingwer.Wurzel at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20101211/5cc54247/attachment.html>
More information about the NumPy-Discussion
mailing list