Package python-qwt3d broken in Karmic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyqwt3d (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: python-qwt3d-qt4
This bug is connected with https:/
File "/usr/lib/
from _Qwt3D import *
RuntimeError: the sip module implements API v6.0 but the PyQt4.Qwt3D._Qwt3D module requires API v5.0
I downloaded cvs repository for qwtplot3d, tried to compile it according to instructions and got numerous errors. This is how I resolved them (I know this is not the right way to do it, but I don't know how to do it properly):
1. I needed to change configure/
to
because at the end, after I resolved other errors, I got error from ld saying it cannot find -lqwtplot3d (although package was properly installed with symlink to qwtplot3d-qt4)
2. ./configure.py -I /usr/include/
3. After this, make failed with:
make[1]: Entering directory `/home/
g++ -c -pipe -fPIC -g -O2 -Os -Wall -W -D_REENTRANT -DNDEBUG -DHAS_NUMERIC -DHAS_NUMPY -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_OPENGL_LIB -I. -I/usr/
../sip/
../sip/
../sip/
make[1]: *** [sip_Qwt3Dcmodu
make[1]: Leaving directory `/home/
make: *** [all] Error 2
Beacuse I don't know how to fix this before configure step, I changed generated file directly. configure/
to
After this, make goes without further errors. Then, I tried just to install new files over original ones (without uninstalling python-qwt3d-qt4 package) and got the same error about 5.0/6.0 API as before. After that, I uninstalled the package, tried again sudo make install and got this:
File "./FSVisio.py", line 27, in <module>
from PyQt4.Qwt3D import Function, RGBA, SurfacePlot, BOX, X1, Y1, Z1, TripleField, CellField, Triple, Cell
ImportError: No module named Qwt3D
I had problems using qwt/qwt3d on Jaunty also, but I was able to solve them using similar approach to this one. After upgrade to Karmic, qwt/qwt3d packages are still broken, but I don't know what to do next. Any help?
P.S. I tried also to statically link libqwt3d (using source for qwt3d and ./configure.py -I /usr/include/
I tried to compile it using similar options Darren Dale used for pyqwt (I also installed pyqwt 5.2.0 this way): install- path=/usr/ lib/pymodules/ python2. 6/PyQt4/ Qwt3D
python configure.py -Q ../qwtplot3d-0.2.7 -L /usr -I /usr --module-
and I still got errors for ‘const char*’. After directly changing cpp file, make goes without further errors, and after installing and starting my program I got this: pymodules/ python2. 6/PyQt4/ Qwt3D/_ _init__ .py", line 30, in <module> pymodules/ python2. 6/PyQt4/ Qwt3D/_ Qwt3D.so: undefined symbol: gluCylinder
File "./FSVisio.py", line 27, in <module>
from PyQt4.Qwt3D import Function, RGBA, SurfacePlot, BOX, X1, Y1, Z1, TripleField, CellField, Triple, Cell
File "/usr/lib/
from _Qwt3D import *
ImportError: /usr/lib/
I'm not using any 3D cylinders, and I don't know where to search for solution for this. I tried pyqwt3d 0.1.6 with same configure options, and I got the same error.