Cant run houdini from the terminal for debugging purposes HOU 16.600 OSX Sierra

   4422   6   2
User Avatar
Member
2 posts
Joined: May 2016
Offline
Hello everyone

I have been trying to get houdini to work well with arnold and I have been having a very hard time. In order to debug the issue I decided to run houdini from the terminal by running

cd /Applications/Houdini/Houdini16.0.600/Houdini FX 16.0.600.app/Contents/MacOS
./houdini

The application then starts, but after several seconds it crashes with a long traceback.


Traceback (most recent call last):
File “<string>”, line 9, in <module>
File “/Applications/Houdini/Houdini16.0.600/Frameworks/Houdini.framework/Versions/16.0.600/Resources/houdini/python2.7libs/hou.py”, line 56010, in <module>
import houpythonportion
File “/Applications/Houdini/Houdini16.0.600/Frameworks/Houdini.framework/Versions/16.0.600/Resources/houdini/python2.7libs/houpythonportion.py”, line 6, in <module>
import gzip
File “/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/gzip.py”, line 10, in <module>
import io
File “/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/io.py”, line 51, in <module>
import _io
ImportError: dlopen(/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so, 2): Symbol not found: __PyCodecInfo_GetIncrementalDecoder
Referenced from: /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so
Expected in: flat namespace
in /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so
PyClerk: Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
File “/Applications/Houdini/Houdini16.0.600/Frameworks/Houdini.framework/Versions/16.0.600/Resources/houdini/python2.7libs/shopclerks/i3dclerk.py”, line 5, in <module>
import hou
File “/Applications/Houdini/Houdini16.0.600/Frameworks/Houdini.framework/Versions/16.0.600/Resources/houdini/python2.7libs/hou.py”, line 56010, in <module>
import houpythonportion
File “/Applications/Houdini/Houdini16.0.600/Frameworks/Houdini.framework/Versions/16.0.600/Resources/houdini/python2.7libs/houpythonportion.py”, line 6, in <module>
import gzip
File “/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/gzip.py”, line 10, in <module>
import io
File “/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/io.py”, line 51, in <module>
import _io
ImportError: dlopen(/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so, 2): Symbol not found: __PyCodecInfo_GetIncrementalDecoder
Referenced from: /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so
Expected in: flat namespace
in /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so

PyClerk: No getName() method found
PyClerk: Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
File “/Applications/Houdini/Houdini16.0.600/Frameworks/Houdini.framework/Versions/16.0.600/Resources/houdini/python2.7libs/shopclerks/ifdclerk.py”, line 5, in <module>
import hou
File “/Applications/Houdini/Houdini16.0.600/Frameworks/Houdini.framework/Versions/16.0.600/Resources/houdini/python2.7libs/hou.py”, line 56010, in <module>
import houpythonportion
File “/Applications/Houdini/Houdini16.0.600/Frameworks/Houdini.framework/Versions/16.0.600/Resources/houdini/python2.7libs/houpythonportion.py”, line 6, in <module>
import gzip
File “/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/gzip.py”, line 10, in <module>
import io
File “/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/io.py”, line 51, in <module>
import _io
ImportError: dlopen(/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so, 2): Symbol not found: __PyCodecInfo_GetIncrementalDecoder
Referenced from: /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so
Expected in: flat namespace
in /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so

PyClerk: No getName() method found
PyClerk: Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
File “/Applications/Houdini/Houdini16.0.600/Frameworks/Houdini.framework/Versions/16.0.600/Resources/houdini/python2.7libs/shopclerks/ribclerk.py”, line 5, in <module>
import hou, sys
File “/Applications/Houdini/Houdini16.0.600/Frameworks/Houdini.framework/Versions/16.0.600/Resources/houdini/python2.7libs/hou.py”, line 56010, in <module>
import houpythonportion
File “/Applications/Houdini/Houdini16.0.600/Frameworks/Houdini.framework/Versions/16.0.600/Resources/houdini/python2.7libs/houpythonportion.py”, line 6, in <module>
import gzip
File “/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/gzip.py”, line 10, in <module>
import io
File “/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/io.py”, line 51, in <module>
import _io
ImportError: dlopen(/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so, 2): Symbol not found: __PyCodecInfo_GetIncrementalDecoder
Referenced from: /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so
Expected in: flat namespace
in /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so

PyClerk: No getName() method found
00:00:00 261MB | log started Wed Jul 19 22:09:34 2017
00:00:00 261MB | Arnold 5.0.0.2 darwin clang-3.9.1 oiio-1.7.12 osl-1.8.2 vdb-4.0.0 rlm-12.2.2 2017/05/08 11:44:15
00:00:00 261MB | running on CDM-RITCHIE-10.local, pid=21769
00:00:00 261MB | 1 x Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz (4 cores, 8 logical) with 16384MB
00:00:00 261MB | OS X 10.11.6 “El Capitan”, Darwin kernel 15.6.0
00:00:00 261MB | soft limit for open files raised from 4864 to 10238
00:00:00 261MB |
00:00:00 261MB | Registering shaders …
00:00:00 261MB | loading plugins from /Users/rudy/htoa/htoa-2.0.1_r9019629_houdini-16.0.600/htoa-2.0.1_r9019629_houdini-16.0.600/arnold/plugins …
00:00:00 261MB | htoa_mandelbulb_proc.dylib: mandelbulb uses Arnold 5.0.0.2
00:00:00 261MB | loaded 1 plugins from 1 lib(s) in 0:00.02
00:00:00 261MB | Loading metadata file: /Users/rudy/htoa/htoa-2.0.1_r9019629_houdini-16.0.600/htoa-2.0.1_r9019629_houdini-16.0.600/arnold/metadata/cameras.mtd
00:00:00 261MB | Loading metadata file: /Users/rudy/htoa/htoa-2.0.1_r9019629_houdini-16.0.600/htoa-2.0.1_r9019629_houdini-16.0.600/arnold/metadata/lights.mtd
00:00:00 261MB | Loading metadata file: /Users/rudy/htoa/htoa-2.0.1_r9019629_houdini-16.0.600/htoa-2.0.1_r9019629_houdini-16.0.600/arnold/metadata/options.mtd
00:00:00 261MB | Loading metadata file: /Users/rudy/htoa/htoa-2.0.1_r9019629_houdini-16.0.600/htoa-2.0.1_r9019629_houdini-16.0.600/arnold/metadata/shaders.mtd
00:00:00 263MB | Loading metadata file: /Users/rudy/htoa/htoa-2.0.1_r9019629_houdini-16.0.600/htoa-2.0.1_r9019629_houdini-16.0.600/arnold/metadata/shapes.mtd
00:00:00 265MB | shader registration done.
00:00:00 265MB |
00:00:00 265MB | releasing resources
00:00:00 264MB | Arnold shutdown
libc++abi.dylib: terminating with uncaught exception of type HOM_Error
Abort trap: 6



I have searched for several hours and I have not been able to find anything helpful. Does anyone have any tips on how to solve this?

Thanks so much!

Rudy
User Avatar
Member
4189 posts
Joined: June 2012
Offline
You need to source the environment first; Sidefx have set this up for you by using:

/Applications/Houdini/Houdini16.0.675/Utilities/Houdini\ Terminal\ 16.0.675.app
User Avatar
Member
5 posts
Joined: Nov. 2013
Offline
Hello rcortes9,

did you ever find a solution to this? I'm having a very similar issue. I run the Houdini Terminal app by double-clicking it in the finder. This sets up the environemnt if I understand correctly. I then type “hindie” and it starts Houdini but then crashes:


Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
terminating with uncaught exception of type HOM_Error
abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fffbced5d42 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fffbcfc3457 pthread_kill + 90
2 libsystem_c.dylib 0x00007fffbce3b420 abort + 129
3 libc++abi.dylib 0x00007fffbb99584a abort_message + 266
4 libc++abi.dylib 0x00007fffbb9bac4f default_terminate_handler() + 267
5 libobjc.A.dylib 0x00007fffbc4c8353 _objc_terminate() + 124
6 libc++abi.dylib 0x00007fffbb9b7d69 std::__terminate(void (*)()) + 8
7 libc++abi.dylib 0x00007fffbb9b77de __cxa_throw + 121
8 libHoudiniUT.dylib 0x000000011c4a836a HOM() + 170
9 libHoudiniUI.dylib 0x000000010e403bc9 SI_PythonShell::initApplication(UI_Manager*, int, char const**) + 25
10 libHoudiniAPPS2.dylib 0x00000001084887d5 OPUI_MainApp::initApplication(UI_Manager*, int, char const**) + 2165
11 libHoudiniUI.dylib 0x000000010e1ac6b8 main + 3848
12 libdyld.dylib 0x00007fffbcda7235 start + 1
User Avatar
Member
21 posts
Joined: Sept. 2015
Offline
To completely fix python on Mac OS follow these steps in OS X terminal.
You'll need to have homebrew installed (https://brew.sh).
BTW I am running macOS 10.13.3 and these steps work well. I can't vouch for it working under newer version of OS x.

First try fixing your existing python installation:
brew cleanup
sudo pip install --upgrade virtualenv

If that doesn't do it you may need to completely reinstall python on your mac.
You will need to install Xcode (https://developer.apple.com/xcode/). This is deep surgery and could screw up your system python terribly but it worked flawlessly for me:

sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7
sudo rm -rf "/Applications/Python 2.7"
ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/2.7'
cd /usr/local/bin/
ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/2.7' | awk '{print $9}' | tr -d @ | xargs rm
brew uninstall python
sudo xcode-select -r
brew update && brew reinstall python
Edited by jonahtobias - Sept. 8, 2018 18:43:52
User Avatar
Member
132 posts
Joined: July 2007
Offline
Does anyone know of a fix for launching Houdini from Terminal on a Mac? I get tons of python errors, no GUI, and quits back to terminal.
I'm dying for some VEX printf() capability on Mac Houdini.
The above Home Brew technique fails on a DVTFoundation error.

Trying Houdini Indie 16.0.75 with OS 10.12.6
Launching from the dock works fine.
Thanks.

UPDATE: It works! I pushed through the Home Brew errors I was getting and followed the instructions above (had to re-install python). Now I can launch the terminal app and type “hindie” and I can see printf statements on my MacBook! Hurray! Thank you!!
If you run into the 64/32 bit python issue, start here: https://docs.brew.sh/Installation.html [docs.brew.sh]
And make sure you have everything needed. Then follow jonahtobias' other instructions. I also launched Xcode manually to make sure all the licensing was approved. But that's it.
Edited by Len - Oct. 23, 2017 12:08:58
User Avatar
Member
132 posts
Joined: July 2007
Offline
Bummed for you. Do you want to paste some of your errors here and we can see if there's a way to help?
  • Quick Links