Appears to install correctly but will throw ImportError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pybullet |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I'm having some trouble getting pybullet to run correctly after installing. I still believe it's a simple path problem and I'm being stupid, but maybe I've missed an installation step or something obvious that wasn't documented.
My configuration:
Ubuntu 10.04
Python 2.6.5
Bullet 2.8.1
PyBullet trunk (r54)
numpy 1.6.0
I have built and installed bullet, and can successfully run the demos that come with it.
I have successfully built and installed pybullet, but when trying to run any of the demos, I get the following error:
>> python helloworld.py
Traceback (most recent call last):
File "helloworld.py", line 4, in <module>
from bullet.bullet import (
ImportError: libBulletSoftBo
When running test_bullet.py from /usr/local/
>> python test_bullet.py
test_bullet.py:13: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility
from bullet import (
test_bullet.py:13: RuntimeWarning: numpy.flatiter size changed, may indicate binary incompatibility
from bullet import (
I have confirmed that:
/usr/local/lib (the location of the .so and .so.0 files for bullet) is in my .bashrc, and is definitely in my python path:
import sys
sys.path
(Output contains /usr/local/lib)
I have tried copying the bullet .so and .so.0 files directly to various other locations: the pybullet dist-packages folder, the dist-packages folder itself, to no avail.
How can I get pybullet to see my valid install of bullet?
Cheers!
I should probably mention the build command that I issue and the result:
python setup.py build_ext --include-dirs /home/path- to-bullet/ bullet- 2.81-rev2613/ src/ --library-dirs /usr/local/lib linux-x86_ 64-2.6 linux-x86_ 64-2.6/ bullet aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/ lyonj/Downloads /bullet- 2.81-rev2613/ src/ -I/usr/ include/ python2. 6 -c bullet/bullet.cpp -o build/temp. linux-x86_ 64-2.6/ bullet/ bullet. o prototypes" is valid for Ada/C/ObjC but not for C++ 6bullet_ 6bullet_ 11IndexedMesh_ _dtypeToScalarT ype(__pyx_ obj_6bullet_ 6bullet_ IndexedMesh* , PyArrayObject*)’: bullet. cpp:4756: warning: ‘__pyx_r’ may be used uninitialized in this function python2. 6/numpy/ __multiarray_ api.h: At global scope: python2. 6/numpy/ __multiarray_ api.h:968: warning: ‘int _import_array()’ defined but not used python2. 6/numpy/ __ufunc_ api.h:182: warning: ‘int _import_umath()’ defined but not used linux-x86_ 64-2.6 linux-x86_ 64-2.6/ bullet functions build/temp. linux-x86_ 64-2.6/ bullet/ bullet. o -L/usr/local/lib -lBulletSoftBody -lBulletDynamics -lBulletCollision -lLinearMath -o build/lib. linux-x86_ 64-2.6/ bullet/ bullet. so
running build_ext
skipping 'bullet/bullet.cpp' Cython extension (up-to-date)
building 'bullet.bullet' extension
creating build/temp.
creating build/temp.
gcc -pthread -fno-strict-
cc1plus: warning: command line option "-Wstrict-
bullet/bullet.cpp: In function ‘PHY_ScalarType __pyx_f_
bullet/
/usr/include/
/usr/include/
/usr/include/
creating build/lib.
creating build/lib.
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-
Seems to build and link okay, but maybe the linking isn't working?