Thread: [PyOpenGL-Users] Problem building and running PyQGLViewer
Brought to you by:
mcfletch
From: duncan d. <dun...@gm...> - 2008-07-15 12:10:47
|
Hi. I downloaded the new version of PyQGLViewer for windows (the egg file) and get this error when I try to run an example ------------- $ python multiView.py questo pythone gira in utf-8 Traceback (most recent call last): File "multiView.py", line 57, in <module> main() File "multiView.py", line 47, in main side = Viewer(scene,0,vSplit1) File "multiView.py", line 15, in __init__ QGLViewer.__init__(self, parent,shareWidget) TypeError: argument 1 of QGLViewer() has an invalid type ------------ with the other examples I get: --------- $ python simpleViewer.py questo pythone gira in utf-8 TypeError: init() takes exactly 1 argument (2 given) TypeError: draw() takes exactly 1 argument (2 given) TypeError: draw() takes exactly 1 argument (2 given) Traceback (most recent call last): File "simpleViewer.py", line 34, in closeEvent if helpwidget.isVisible() : AttributeError: 'NoneType' object has no attribute 'isVisible' ---------- This is the configuration of the system: Qt 4.4.0 PyQt 4.4.2 Python 2.5 libQGLViewer 2.2.6-3 (with you patch to build PyQGLViewer) And another question: if I want to rebuild the 0.4 version of PyQglViewer against the 2.3.0 version of libQGLViewer, the patch to apply is the same ? So I try to build from source, but then I get this error: ------ Setup the qglviewer package build. sip invokation: 'c:\\Programmi\\python25\\sip. exe -I c:\\Programmi\\Python25\\sip\\PyQt4 -b ./tmp/QGLViewer.sbf -c ./tmp -x VendorID -t WS_WIN -x PyQt_NoPrintRangeBug -t Qt_4_4_0 -g -x SIP_FRIEND_EQUAL_SUPPORT -t QGLViewer_2_2_6 src/sip/QGLViewerModule.sip' sip: QFileIconProvider is undefined SIP failed to generate the C++ code. ----- with the same setup under window XP The libQGLViewer work well, since I can run the example. Any idea ? thank bye Gianluca |