Hello everyone, first, I'm really apologise for my English-skills. But I have only one simple questions. Does NumPy work on Python3 now. I read so many articles on the Internet, but you can only read some speculation and not a clear state about this topic. At the moment I try numpy1.5.1 on Python3.0, but I get only Errors. If Numpy works on Python3, are the support libraries the same as by Python2.6? (By the way, I use Linux (Ubuntu 9.04)) /With kind regards Ingwer
On Fri, Dec 10, 2010 at 6:33 PM, Katharina <Ingwer.Wurzel@gmx.net> wrote:
Hello everyone,
first, I'm really apologise for my English-skills. But I have only one simple questions. Does NumPy work on Python3 now. I read so many articles on the Internet, but you can only read some speculation and not a clear state about this topic.
It works fine with Python 3.1.
At the moment I try numpy1.5.1 on Python3.0, but I get only Errors. If Numpy works on Python3, are the support libraries the same as by Python2.6?
Which support libraries? Just Lapack/Blas or Atlas should be all you need, and just "$ python3.1 setup.py install --prefix=/home/XXX/pick-a-folder" should work fine. If you encounter a problem, please send us the exact build command you used, the build log and compiler versions. Ralf
(By the way, I use Linux (Ubuntu 9.04))
/With kind regards Ingwer
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 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. /With kind regards Ingwer Am Freitag, den 10.12.2010, 20:05 +0800 schrieb Ralf Gommers:
On Fri, Dec 10, 2010 at 6:33 PM, Katharina <Ingwer.Wurzel@gmx.net> wrote: Hello everyone,
first, I'm really apologise for my English-skills. But I have only one simple questions. Does NumPy work on Python3 now. I read so many articles on the Internet, but you can only read some speculation and not a clear state about this topic.
It works fine with Python 3.1.
At the moment I try numpy1.5.1 on Python3.0, but I get only Errors. If Numpy works on Python3, are the support libraries the same as by Python2.6?
Which support libraries? Just Lapack/Blas or Atlas should be all you need, and just "$ python3.1 setup.py install --prefix=/home/XXX/pick-a-folder" should work fine.
If you encounter a problem, please send us the exact build command you used, the build log and compiler versions.
Ralf
(By the way, I use Linux (Ubuntu 9.04))
/With kind regards Ingwer
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
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
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
On Sat, Dec 11, 2010 at 11:53 AM, Katharina <Ingwer.Wurzel@gmx.net> wrote:
Hi, yes my build is in /usr/local/lib/python3.1/site-packages/numpy-1.5.1. Is't wrong?
Well, let's find out ;) Move your numpy download somewhere like ~/numpy-1.5.1, then do cd numpy-1.5.1 python3.1 setup.py build sudo python3.1 setup.py install You should probably also do sudo rm -rf /usr/local/lib/python3.1/site-packages/numpy-1.5.1 before the build as well as remove your local build directory. You might also need to change ownership of the files from root to yourself. Chuck
I'm really sorry, but the Error is the same: ---------------------------------------------------------------------------------------- ~/Desktop/numpy-1.5.1$ python3.1 setup.py build 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 "/home/natta/Desktop/numpy-1.5.1/build/py3k/numpy/distutils/__init__.py", line 22, in <module> import numpy.distutils.ccompiler File "/home/natta/Desktop/numpy-1.5.1/build/py3k/numpy/distutils/ccompiler.py", line 15, in <module> from numpy.distutils.exec_command import exec_command File "/home/natta/Desktop/numpy-1.5.1/build/py3k/numpy/distutils/exec_command.py", line 58, in <module> from numpy.compat import open_latin1 File "/home/natta/Desktop/numpy-1.5.1/build/py3k/numpy/compat/__init__.py", line 14, in <module> from .py3k import * AttributeError: 'module' object has no attribute 'unicode' ---------------------------------------------------------------------------------------- I don't do if it helps. But I try to install numpy1.5.1 on python2.6 and get this Erros: ---------------------------------------------------------------------------------------- /usr/local/lib/python2.6/site-packages/numpy-1.5.1$ python setup.py build fcompiler=gnu95 Traceback (most recent call last): File "setup.py", line 25, in <module> import builtins as builtins ImportError: No module named builtins ---------------------------------------------------------------------------------------- / Ingwer Am Samstag, den 11.12.2010, 12:06 -0700 schrieb Charles R Harris:
On Sat, Dec 11, 2010 at 11:53 AM, Katharina <Ingwer.Wurzel@gmx.net> wrote: Hi, yes my build is in /usr/local/lib/python3.1/site-packages/numpy-1.5.1. Is't wrong?
Well, let's find out ;) Move your numpy download somewhere like ~/numpy-1.5.1, then do
cd numpy-1.5.1 python3.1 setup.py build sudo python3.1 setup.py install
You should probably also do
sudo rm -rf /usr/local/lib/python3.1/site-packages/numpy-1.5.1 before the build as well as remove your local build directory. You might also need to change ownership of the files from root to yourself.
Chuck
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
Oh... the Problem with python2.6 is solved. I take the numpy Version, which was transformed with 2to3. sorry /Ingwer Am Samstag, den 11.12.2010, 20:49 +0100 schrieb Katharina:
I'm really sorry, but the Error is the same:
---------------------------------------------------------------------------------------- ~/Desktop/numpy-1.5.1$ python3.1 setup.py build 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 "/home/natta/Desktop/numpy-1.5.1/build/py3k/numpy/distutils/__init__.py", line 22, in <module> import numpy.distutils.ccompiler File "/home/natta/Desktop/numpy-1.5.1/build/py3k/numpy/distutils/ccompiler.py", line 15, in <module> from numpy.distutils.exec_command import exec_command File "/home/natta/Desktop/numpy-1.5.1/build/py3k/numpy/distutils/exec_command.py", line 58, in <module> from numpy.compat import open_latin1 File "/home/natta/Desktop/numpy-1.5.1/build/py3k/numpy/compat/__init__.py", line 14, in <module> from .py3k import * AttributeError: 'module' object has no attribute 'unicode' ----------------------------------------------------------------------------------------
I don't do if it helps. But I try to install numpy1.5.1 on python2.6 and get this Erros: ---------------------------------------------------------------------------------------- /usr/local/lib/python2.6/site-packages/numpy-1.5.1$ python setup.py build fcompiler=gnu95 Traceback (most recent call last): File "setup.py", line 25, in <module> import builtins as builtins ImportError: No module named builtins ----------------------------------------------------------------------------------------
/ Ingwer
Am Samstag, den 11.12.2010, 12:06 -0700 schrieb Charles R Harris:
On Sat, Dec 11, 2010 at 11:53 AM, Katharina <Ingwer.Wurzel@gmx.net> wrote: Hi, yes my build is in /usr/local/lib/python3.1/site-packages/numpy-1.5.1. Is't wrong?
Well, let's find out ;) Move your numpy download somewhere like ~/numpy-1.5.1, then do
cd numpy-1.5.1 python3.1 setup.py build sudo python3.1 setup.py install
You should probably also do
sudo rm -rf /usr/local/lib/python3.1/site-packages/numpy-1.5.1 before the build as well as remove your local build directory. You might also need to change ownership of the files from root to yourself.
Chuck
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
Hi Chuck, You are right, it works. I had so many versions of Numpy, that in the end I lost track. *Sorry* But now it works perfectly. Thank you for the help. /Ingwer ps: I know SciPY has its own Mail list, but it could be, that somebody can answer my question. Does SciPy works on Python3.1? Am Samstag, den 11.12.2010, 13:19 -0700 schrieb Charles R Harris:
On Sat, Dec 11, 2010 at 12:58 PM, Katharina <Ingwer.Wurzel@gmx.net> wrote: Oh... the Problem with python2.6 is solved. I take the numpy Version, which was transformed with 2to3.
Wait, how did you do that? Setup should automatically select the right version.
Chuck
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
On Sun, Dec 12, 2010 at 11:06 AM, Katharina <Ingwer.Wurzel@gmx.net> wrote:
Hi Chuck, You are right, it works. I had so many versions of Numpy, that in the end I lost track. *Sorry*
But now it works perfectly. Thank you for the help.
/Ingwer
ps: I know SciPY has its own Mail list, but it could be, that somebody can answer my question. Does SciPy works on Python3.1?
Support for 3.1 will be in the next scipy release. It should be available in 4-6 weeks. Chuck
ok, thanks /Ingwer Am Sonntag, den 12.12.2010, 12:23 -0700 schrieb Charles R Harris:
On Sun, Dec 12, 2010 at 11:06 AM, Katharina <Ingwer.Wurzel@gmx.net> wrote: Hi Chuck, You are right, it works. I had so many versions of Numpy, that in the end I lost track. *Sorry*
But now it works perfectly. Thank you for the help.
/Ingwer
ps: I know SciPY has its own Mail list, but it could be, that somebody can answer my question. Does SciPy works on Python3.1?
Support for 3.1 will be in the next scipy release. It should be available in 4-6 weeks.
Chuck
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
On Fri, Dec 10, 2010 at 3:33 AM, Katharina <Ingwer.Wurzel@gmx.net> wrote:
Hello everyone,
first, I'm really apologise for my English-skills. But I have only one simple questions. Does NumPy work on Python3 now. I read so many articles on the Internet, but you can only read some speculation and not a clear state about this topic.
At the moment I try numpy1.5.1 on Python3.0, but I get only Errors. If Numpy works on Python3, are the support libraries the same as by Python2.6? (By the way, I use Linux (Ubuntu 9.04))
We don't support 3.0, only 3.1 and above. Chuck
participants (3)
-
Charles R Harris
-
Katharina
-
Ralf Gommers