You are not logged in.

#1 2011-02-05 18:03:56

naguz
Member
Registered: 2008-11-05
Posts: 98

Fofix win't run (numpy python error?)

[gert@boks lib]$ fofix 
Traceback (most recent call last):
  File "./FoFiX.py", line 108, in <module>
    from GameEngine import GameEngine
  File "/opt/fofix/src/GameEngine.py", line 32, in <module>
    from numpy import array, float32
  File "/usr/lib/python2.7/site-packages/numpy/__init__.py", line 136, in <module>
    import add_newdocs
  File "/usr/lib/python2.7/site-packages/numpy/add_newdocs.py", line 9, in <module>
    from numpy.lib import add_newdoc
  File "/usr/lib/python2.7/site-packages/numpy/lib/__init__.py", line 13, in <module>
    from polynomial import *
  File "/usr/lib/python2.7/site-packages/numpy/lib/polynomial.py", line 11, in <module>
    import numpy.core.numeric as NX
AttributeError: 'module' object has no attribute 'core'

My google-fu pointed me towards me lacking f2py, but from what I can understand, this is included in python2-numpy?

Installed python packages:

[gert@boks lib]$ pacman -Qs python
local/cx_freeze 4.2.1-1
    A set of utilities for freezing Python scripts into executables
local/dbus-python 0.83.1-2
    Python bindings for DBUS
local/gstreamer0.10-python 0.10.18-3
    Python bindings for GStreamer 0.10
local/kdebindings-python 4.6.0-1
    KDE bindings for python
local/mutagen 1.20-3
    An audio metadata tag reader and writer implemented in pure python
local/pycups 1.9.53-1
    Python CUPS Bindings
local/pygobject 2.26.0-2
    Python bindings for GObject
local/pygtk 2.22.0-3
    Python bindings for the GTK widget set
local/pyogg 1.3-6
    Python ogg wrapper library
local/pysmbc 1.0.10-1
    Python libsmbclient bindings
local/python 3.1.3-2
    Next generation of the python high-level scripting language
local/python-imaging 1.1.7-2
    PIL. Provides image processing capabilities for python
local/python-lxml 2.2.8-2
    Python binding for the libxml2 and libxslt libraries
local/python-mechanize 0.2.4-1
    Stateful programmatic web browsing in Python
local/python-numeric 24.2-5
    Numerical Python adds a fast array facility to the Python language
local/python-opengl 3.0.1-2
    The cross platform Python binding to OpenGL and related APIs
local/python-pygame 1.9.1-3
    Python game library
local/python-pysqlite 2.6.0-2
    A Python DB-API 2.0 interface for the SQLite embedded relational database engine
local/python-sqlalchemy 0.6.6-1
    Python SQL toolkit and Object Relational Mapper
local/python2 2.7.1-4
    A high-level scripting language
local/python2-cairo 1.8.10-1
    Python2 bindings for the cairo graphics library
local/python2-distribute 0.6.14-2
    A collection of extensions to the Python 2 distutils
local/python2-numpy 1.5.1-1
    Scientific tools for Python
local/python2-pyparsing 1.5.5-1
    General parsing module for Python
local/python2-qt 4.8.3-1
    A set of Python 2 bindings for the Qt toolkit
local/python2-sip 4.12.1-1
    A tool that makes it easy to create Python 2 bindings for C and C++ libraries
local/pyvorbis 1.4-5
    Python vorbis wrapper library
local/pyxml 0.8.4-8
    Python XML parsing library

Offline

#2 2011-02-05 18:25:58

hellbuster
Member
From: Chile
Registered: 2010-05-18
Posts: 28
Website

Re: Fofix win't run (numpy python error?)

Downgrade lapack and blas packages.

Offline

#3 2011-02-05 19:48:47

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Fofix win't run (numpy python error?)

hellbuster wrote:

Downgrade lapack and blas packages.

in fact upgrade them to the latest version. it was fixed in 3.3.0-2


Give what you have. To someone, it may be better than you dare to think.

Offline

#4 2011-02-05 22:46:07

naguz
Member
Registered: 2008-11-05
Posts: 98

Re: Fofix win't run (numpy python error?)

Thanks, tried that, but changed mirror and tried again, and now it's working. Sometimes it's just so good bashing away at the keyboard with something that resembles a reason. tongue

Offline

#5 2011-07-09 13:44:15

Enverex
Member
From: UK
Registered: 2007-06-13
Posts: 159
Website

Re: Fofix win't run (numpy python error?)

Has this problem come back? I'm using Blas and Lapack 3.3.1 but I'm getting the same error as the original poster meaning FOFIX won't start.

ben@bahamut ~ $ fofix 
Traceback (most recent call last):
  File "./FoFiX.py", line 108, in <module>
    from GameEngine import GameEngine
  File "/opt/fofix/src/GameEngine.py", line 32, in <module>
    from numpy import array, float32
  File "/usr/lib/python2.7/site-packages/numpy/__init__.py", line 136, in <module>
    import add_newdocs
  File "/usr/lib/python2.7/site-packages/numpy/add_newdocs.py", line 9, in <module>
    from numpy.lib import add_newdoc
  File "/usr/lib/python2.7/site-packages/numpy/lib/__init__.py", line 13, in <module>
    from polynomial import *
  File "/usr/lib/python2.7/site-packages/numpy/lib/polynomial.py", line 11, in <module>
    import numpy.core.numeric as NX
AttributeError: 'module' object has no attribute 'core'

Offline

#6 2011-07-09 18:12:11

eggplantbren
Member
Registered: 2009-11-04
Posts: 73

Re: Fofix win't run (numpy python error?)

I'm getting a similar error with my python2 programs since the upgrades to blas and lapack.

Offline

#7 2011-07-09 18:22:57

matse
Member
Registered: 2011-04-27
Posts: 299

Re: Fofix win't run (numpy python error?)

Here same problem, too.

Offline

#8 2011-07-09 19:15:26

Foucault
Member
From: Athens, Greece
Registered: 2010-04-06
Posts: 214

Re: Fofix win't run (numpy python error?)

Don't know if a new thread should be opened but there is indeed a problem with blas/lapack 3.3.1. All my numpy-based programs and scripts refuse to run and die with

ImportError: /usr/lib/liblapack.so.3: undefined symbol: cgemv_

They work fine with 3.3.0 though.

Bug reports
https://bugs.archlinux.org/task/25083
https://bugs.archlinux.org/task/25084 (apparently duplicate of #25083)

Last edited by Foucault (2011-07-09 19:19:48)

Offline

#9 2011-07-10 01:14:49

matse
Member
Registered: 2011-04-27
Posts: 299

Re: Fofix win't run (numpy python error?)

Bug already fixed! With 3.3.1-2 fofix works again wink

Offline

Board footer

Powered by FluxBB