[SciPy-Dev] ANN: Numpy 1.6.0 beta 1

Derek Homeier derek at astro.physik.uni-goettingen.de
Wed Mar 23 17:08:46 EDT 2011


Hi,

On 23 Mar 2011, at 17:07, Ralf Gommers wrote:

> I am pleased to announce the availability of the first beta of NumPy
> 1.6.0. Due to the extensive changes in the Numpy core for this
> release, the beta testing phase will last at least one month. Please
> test this beta and report any problems on the Numpy mailing list.

building for Python3.x fails with an import error in the default fink  
build
environment:

RefactoringTool: No changes to /scratch/fink.build/numpy- 
py32-1.6.0b1-1/numpy-1.6.0b1/build/py3k/numpy/compat/py3k.py
RefactoringTool: Refactored /scratch/fink.build/numpy-py32-1.6.0b1-1/ 
numpy-1.6.0b1/build/py3k/numpy/core/defchararray.py
RefactoringTool: Files that were modified:
RefactoringTool: /scratch/fink.build/numpy-py32-1.6.0b1-1/ 
numpy-1.6.0b1/build/py3k/numpy/compat/py3k.py
RefactoringTool: /scratch/fink.build/numpy-py32-1.6.0b1-1/ 
numpy-1.6.0b1/build/py3k/numpy/core/defchararray.py
Traceback (most recent call last):
   File "setup.py", line 201, in <module>
     setup_package()
   File "setup.py", line 178, in setup_package
     from numpy.distutils.core import setup
   File "/scratch/fink.build/numpy-py32-1.6.0b1-1/numpy-1.6.0b1/numpy/ 
distutils/__init__.py", line 22, in <module>
     import numpy.distutils.ccompiler
   File "/scratch/fink.build/numpy-py32-1.6.0b1-1/numpy-1.6.0b1/numpy/ 
distutils/ccompiler.py", line 15, in <module>
     from numpy.distutils.exec_command import exec_command
   File "/scratch/fink.build/numpy-py32-1.6.0b1-1/numpy-1.6.0b1/numpy/ 
distutils/exec_command.py", line 58, in <module>
     from numpy.compat import open_latin1
   File "/scratch/fink.build/numpy-py32-1.6.0b1-1/numpy-1.6.0b1/numpy/ 
compat/__init__.py", line 11, in <module>
     import _inspect
ImportError: No module named _inspect

- I suspect exec_command.py is supposed to import from
%b/build/py3k/numpy/compat instead of
%b/numpy/compat (since the former's __init__.py has "from . import  
_inspect")

I managed work around this by building with
mkdir -p build/py3k/numpy/compat
PYTHONPATH=%b/build/py3k/numpy/compat %p/bin/python%type_raw[python]  
setup.py build

(%b is a placeholder for the fink build directory), but I suspect  
that's not the desired
way to have the build work, and anyway then the build fails soon  
afterwards on

RefactoringTool: /scratch/fink.build/numpy-py32-1.6.0b1-1/ 
numpy-1.6.0b1/build/py3k/numpy/core/defchararray.py
Traceback (most recent call last):
   File "setup.py", line 201, in <module>
     setup_package()
   File "setup.py", line 178, in setup_package
     from numpy.distutils.core import setup
   File "/scratch/fink.build/numpy-py32-1.6.0b1-1/numpy-1.6.0b1/numpy/ 
distutils/core.py", line 25, in <module>
     from numpy.distutils.command import config, config_compiler, \
   File "/scratch/fink.build/numpy-py32-1.6.0b1-1/numpy-1.6.0b1/numpy/ 
distutils/command/build_ext.py", line 16, in <module>
     from numpy.distutils.system_info import combine_paths
   File "/scratch/fink.build/numpy-py32-1.6.0b1-1/numpy-1.6.0b1/numpy/ 
distutils/system_info.py", line 1242
     except Exception, msg: # failed to get version from file -- maybe  
on Windows
                     ^
SyntaxError: invalid syntax

Cheers,
					Derek




More information about the SciPy-Dev mailing list