Dear Jelle,

Just to follow up an old discussion. It seems that the PyQt4 package is now 
ported on Mac thanks to macports and it seems to work well with a 64bit Python.

One of the question was about using wxpython on SL. I checkes my configuration 
and my python is running as a 64bit application as I obtained

acary-61 % python
Python 2.7.3 (default, May 15 2012, 16:35:16) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from OCC.BRepPrimAPI import *
>>> from OCC.gp import *
>>> from OCC.TopLoc import *
>>> from OCC.AIS import *
>>> from OCC.Display.SimpleGui import *
>>> display, start_display, add_menu, add_function_to_menu = init_display()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OCC/Display/SimpleGui.py",
 line 161, in init_display
    win.canva.InitDriver()
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OCC/Display/qtDisplay.py",
 line 108, in InitDriver
    self._display.Create()
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OCC/Display/OCCViewer.py",
 line 84, in Create
    self.Init(self._window_handle)
OverflowError: in method 'Display3d_Init', argument 2 of type 'int'>>> import 
sys
>>> sys.maxint
9223372036854775807
>>> import platform
>>> platform.architecture()
('64bit', '')

but the kernel of my system is not in 64bit. This is perhaps why wxpython was 
working 

For the moment, I had some trouble with the script 

acary@ohana-20 % python
Python 2.7.3 (default, May 15 2012, 16:35:16) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from OCC.BRepPrimAPI import *
>>> from OCC.gp import *
>>> from OCC.TopLoc import *
>>> from OCC.AIS import *
>>> from OCC.Display.SimpleGui import *
>>> display, start_display, add_menu, add_function_to_menu = init_display()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OCC/Display/SimpleGui.py",
 line 161, in init_display
    win.canva.InitDriver()
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OCC/Display/qtDisplay.py",
 line 108, in InitDriver
    self._display.Create()
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OCC/Display/OCCViewer.py",
 line 84, in Create
    self.Init(self._window_handle)
OverflowError: in method 'Display3d_Init', argument 2 of type 'int'

I need to debug it

Regards,

Vincent ACARY                                      Charge de recherche
INRIA Rhône-Alpes Equipe-projet BIPOP       http://bipop.inrialpes.fr/


----- Mail original -----
> De: "jelle feringa" <jelleferi...@gmail.com>
> À: "pythonOCC users mailing list." <pythonocc-users@gna.org>
> Envoyé: Lundi 5 Décembre 2011 23:59:56
> Objet: Re: [Pythonocc-users] Viewing a STEP file
> 
> 
> Thanks again Vincent, I just built py26-wxpython +gtk with macports
> and that does seem a promising approach.
> Surely a lot less hassle than building pyqt4 for X11 on OSX…
> Pretty cool, since I'm eager to get going with enthought traits for
> building GUI's for pythonocc apps.
> 
> 
> Cheers,
> 
> 
> -jelle
> 
> 
> 
> 
> 
> 
> 
> 
> 
> On Dec 5, 2011, at 8:59 PM, Vincent Acary wrote:
> 
> 
> 
> 
> I don't exactly know. I use the Apple builtin Python in 64 bits with
> the wxpython of MacPorts
> 
> 
> acary@-79 % 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.
> >>> import platform
> >>> platform.architecture()
> ('64bit', '')
> >>> from OCC.Display.SimpleGui import *
> >>> display, start_display, add_menu, add_function_to_menu =
> >>> init_display()
> Xlib: extension "RANDR" missing on display
> "/tmp/launch-F1wssY/org.x:0".
> Display3d class initialization starting ...
> Graphic device created.
> Xw_Window created.
> Viewer created.
> Interactive context created.
> Display3d class successfully initialized.
> >>> 
> 
> 
> and i obtain a windows 'wx backend'
> 
> 
> 
> 
> If you want more details, do not hesitate to ask me.
> 
> 
> Vincent.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Le 5 déc. 2011 à 12:48, jelle feringa a écrit :
> 
> 
> 
> 
> 
> How did you get it working? I've never find any wxPython/X11 on OSX.
> 
> I'm pretty amazed to see this as well.
> It is possible to get wxPython going, though not at 64 bit [ which is
> the default compiler on OSX ]
> Are you able to run wx on a 64 bit python interpreter Vincent?
> This would be really good news…
> 
> Thanks,
> 
> -jelle
> 
> PS: cool to see the INRIA make use of PythonOCC ;)
> _______________________________________________
> Pythonocc-users mailing list
> Pythonocc-users@gna.org
> https://mail.gna.org/listinfo/pythonocc-users
> 
> 
> 
> 
> 
> 
> --
> 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
> 

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

Reply via email to