First of all, congratulations for all the nice job about pythonocc. I'm in trouble with the 'qt' backend on MacOs snow leopard. Everything is ok with the 'python-xlib' backend but i want to use some menu option thanks to PyQt4.
I build from sources PyQt-mac-gpl-4.8.6 or PyQt-x11-gpl-4.8.6 but I always obtain the same error like that acary@-125 % python Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from OCC.Display.SimpleGui import * >>> from OCC.BRepPrimAPI import * >>> display, start_display, add_menu, add_function_to_menu = init_display() resize event for qtBaseViewer resize event for qtBaseViewer Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Python/2.6/site-packages/OCC/Display/SimpleGui.py", line 150, in init_display win.canva.InitDriver() File "/Library/Python/2.6/site-packages/OCC/Display/qtDisplay.py", line 118, in InitDriver self._display.Create() File "/Library/Python/2.6/site-packages/OCC/Display/OCCViewer.py", line 78, in Create self.Init(self._window_handle) OverflowError: in method 'Display3d_Init', argument 2 of type 'int' I suppose the problem is due to the version of qt4 that is installed through MacPorts : qt4-mac and PyQt4 relies on this implementation ----- /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PyQt4 ------ acary@-133 % otool -L Qtcore.so Qtcore.so: /opt/local/lib/libQtCore.4.dylib (compatibility version 4.8.0, current version 4.8.0) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11) Since the package qt4-x11 is not working, is there a other way to install qt4-x11 on a Mac Os snow leopard ? Best regards, Vincent -- Vincent ACARY Chargé de recherche INRIA/ BIPOP http://bipop.inrialpes.fr/people/acary
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users