Joined: 08 Feb 2005
Location: Almeria, Spain
|Posted: Wed Jan 09, 2013 10:39 am Post subject: dev-python/numpy _import_tools.py Syntax Error
|First of all, Happy New Year to everyone!
I have two boxes: a laptop and a desktop. Both have almost identical gentoo amd64 installations (mostly stable amd64 apart from a few scientific and photographic packages).
On my laptop I can launch numpy properly, but on my desktop I see this error whenever numpy is invoked:
|Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib64/python3.2/site-packages/numpy/__init__.py", line 131, in <module>
from ._import_tools import PackageLoader
File "/usr/lib64/python3.2/site-packages/numpy/_import_tools.py", line 263
SyntaxError: invalid syntax
A few scientific packages are compiled with icc (intel compiler) instead of gcc, among them python 2.7 and 3.2. However, this is also the case for the laptop, where everything works. I just followed the guide for icc on the Gentoo Wiki.
I even reinstalled the reference packages for blas, cblas and lapack, set the corresponding eselect options accordingly and recompiled numpy and its dependencies to no avail.
I'm completely clueless. Any idea is welcome. Since I have a working system (the laptop) it will be easy for me to check whenever you tell me to.
Thanks in advance.