saml Posted August 31, 2008 Share Posted August 31, 2008 Hi, I have just downloaded and installed the ansi version of wxPython for OSX. When running a basic wxPython script using the default Python 2.5.2 install on OSX it works fine. I then proceeded to copy the "wx" folder of the newly installed wxPython over to my $HFS/houdini/scripts folder, and attempted to execute the same script within Houdini using its inbuilt version of python, I receive the following error: Traceback (most recent call last): File "wxTest", line 1, in <module> File "//usr/local/lib/wxPython-ansi-2.8.8.1/lib/python2.5/site-packages/wx-2.8-mac-ansi/wx/__init__.py", line 45, in <module> from wx._core import * File "//usr/local/lib/wxPython-ansi-2.8.8.1/lib/python2.5/site-packages/wx-2.8-mac-ansi/wx/_core.py", line 4, in <module> import _core_ ImportError: dlopen(/usr/local/lib/wxPython-ansi-2.8.8.1/lib/python2.5/site-packages/wx-2.8-mac-ansi/wx/_core_.so, 2): no suitable image found. Did find: /usr/local/lib/wxPython-ansi-2.8.8.1/lib/python2.5/site-packages/wx-2.8-mac-ansi/wx/_core_.so: no matching architecture in universal wrapper I'm unsure if this is the correct workflow for executing wxPython scripts within the OSX version of Houdini, but I had no problem using this method running a previous version of Houdini in Windows. I very much appreciate any advice as to how I may solve this issue. I don't know if the latest version of the wxPython binary for OSX is compatible with the Houdini 9.5 OSX version of Python or if I am simply using the wrong binary or taking the incorrect approach. Thanks in advance for any assistance! Sam. Quote Link to comment Share on other sites More sharing options...
edward Posted September 1, 2008 Share Posted September 1, 2008 I'm not on OSX but from the conversations I've seen, Houdini on OSX uses the system installed version of python (unlike Windows). This means that if wxPython is installed on your system python, then that should be enough. There's no need to copy it over. Quote Link to comment Share on other sites More sharing options...
Greg Posted September 27, 2008 Share Posted September 27, 2008 Hi,I have just downloaded and installed the ansi version of wxPython for OSX. When running a basic wxPython script using the default Python 2.5.2 install on OSX it works fine. I then proceeded to copy the "wx" folder of the newly installed wxPython over to my $HFS/houdini/scripts folder, and attempted to execute the same script within Houdini using its inbuilt version of python, I receive the following error: I'm unsure if this is the correct workflow for executing wxPython scripts within the OSX version of Houdini, but I had no problem using this method running a previous version of Houdini in Windows. I very much appreciate any advice as to how I may solve this issue. I don't know if the latest version of the wxPython binary for OSX is compatible with the Houdini 9.5 OSX version of Python or if I am simply using the wrong binary or taking the incorrect approach. Thanks in advance for any assistance! Sam. Sam, I'm having the same problem - were you able to solve this? Thanks, Greg Quote Link to comment Share on other sites More sharing options...
graham Posted September 27, 2008 Share Posted September 27, 2008 wxPython isn't compatible with Houdini OS X currently. Mike's response in this thread on the Side Effects forums details the issue. http://www.sidefx.com/index.php?option=com...pic&t=11701 Quote Link to comment Share on other sites More sharing options...
saml Posted September 29, 2008 Author Share Posted September 29, 2008 wxPython isn't compatible with Houdini OS X currently. Mike's response in this thread on the Side Effects forums details the issue.http://www.sidefx.com/index.php?option=com...pic&t=11701 Hey Graham, thanks for your response! I never did find a solution to this. I'll take a look at the python Cocoa bindings next time. Quote Link to comment Share on other sites More sharing options...
Greg Posted September 30, 2008 Share Posted September 30, 2008 wxPython isn't compatible with Houdini OS X currently. Mike's response in this thread on the Side Effects forums details the issue.http://www.sidefx.com/index.php?option=com...pic&t=11701 This link doesn't work for me. Quote Link to comment Share on other sites More sharing options...
graham Posted September 30, 2008 Share Posted September 30, 2008 Oops. That's right. It points to the Early Access forum which is only viewable to select people. The highlights: Hi EverybodyI'm trying to run wx inside houdini but i get this error message >>> import wx Traceback (most recent call last): File "<console>", line 1, in <module> File "/BinaryCache/wxWidgets/wxWidgets-11~57/Root/System/Library/Frameworks/Python.framework /Versions/2.5/Extras/lib/python/wx-2.8-mac-unicode/wx/__init__.py", line 45, in <module> File "/BinaryCache/wxWidgets/wxWidgets-11~57/Root/System/Library/Frameworks/Python.framework /Versions/2.5/Extras/lib/python/wx-2.8-mac-unicode/wx/_core.py", line 4, in <module> ImportError: dlopen(/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python /wx/_core_.so, 2): no suitable image found. Did find: /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/wx/_core_.so: no matching architecture in universal wrapper Quote:'m trying to run wx inside houdini but i get this error message /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/wx/_core_.so: no matching architecture in universal wrapper It looks like Apple does not ship a 64-bit version of wx for OS X. Code: > lipo -info /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/wx/_core_.so Architectures in the fat file: /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/wx/_core_.so are: i386 ppc7400 There's no x86_64 architecture in the list. That is the architecture that Houdini is built with. So, that is why importing wx does not work. Normally I would just suggest that you build a 64-bit version yourself, however, there is a good reason why Apple does not ship it. Wx uses the Carbon GUI toolkit which is deprecated. Apple does not support building 64-bit Carbon applications. So, wx cannot be ported to 64-bit OS X unless someone rewrites it to use Cocoa as the underlying technology. How much wxPython code do you have? I am very interested to know how this limitation will affect people. If you are looking for a GUI toolkit to use with Houdini on OS X, I would strongly recommend that you use the Python Cocoa bindings that are supported by Apple. http://developer.apple.com/documentation/C...troduction.html Quote Link to comment Share on other sites More sharing options...
Greg Posted November 11, 2008 Share Posted November 11, 2008 Oops. That's right. It points to the Early Access forum which is only viewable to select people. The highlights: Thanks. FYI - The question comes up because the 3d buzz houdini python tutorial is using wxPython. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.