Dear Vincent,

I had had earlier reports of this issue [ henrik rudstrøm ] on this issue. 
Building PyQt4-X11 is a overly complex task and a particularly nasty dependency 
on the osx platform.
I share the problem [ since I'm interested in developing traits based gui's for 
pythonocc ], and have been researching to what extent an X11 widget can be 
embedded in Cocoa.
Which would allow to use vanilla PySide / PyQt4.
So far I / reddit has not been able to answer that…
This certainly handicaps developing pythonocc apps on osx for the moment…

Thomas, Henrik and I use a version of pyqt4-x11 found on fink rather than 
macports.
It has been a while since I last built it, I'm sorry the details escape me 
right now.

-jelle


On Nov 4, 2011, at 3:23 PM, Vincent Acary wrote:

> 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

_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to