Jump to content

wxPython in Houdini 9.5 OSX


saml

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 4 weeks later...
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

Link to comment
Share on other sites

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. :)

Link to comment
Share on other sites

Oops. That's right. It points to the Early Access forum which is only viewable to select people. The highlights:

Hi Everybody

I'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

Link to comment
Share on other sites

  • 1 month later...
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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...