Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-python/numpy _import_tools.py Syntax Error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
urcindalo
l33t
l33t


Joined: 08 Feb 2005
Posts: 623
Location: Almeria, Spain

PostPosted: Wed Jan 09, 2013 10:39 am    Post subject: dev-python/numpy _import_tools.py Syntax Error Reply with quote

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:
Code:
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
    print(str(mess), file=sys.stderr)
                         ^
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.
Back to top
View user's profile Send private message
jrussia
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2012
Posts: 89
Location: Chicago

PostPosted: Thu Jan 10, 2013 9:49 pm    Post subject: Reply with quote

This is a Python 2 vs. Python 3 error. It may just be that you have to use eselect to choose Python 3.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum