ivan Posted February 12, 2010 Share Posted February 12, 2010 I'm trying to write a python shell script that (among other things) opens a hip file, sets some vars, and launches a render. the code snippet in this doesn't work: http://www.sidefx.com/docs/houdini10.0/hom/commandline I get: [ivan@helium LST_609_022_04]$ python HOU.py File "HOU.py", line 24 finally: ^ SyntaxError: invalid syntax I'm no expert, but I can't find the error.... Quote Link to comment Share on other sites More sharing options...
graham Posted February 12, 2010 Share Posted February 12, 2010 What version of Python are you running on your system? I get the feeling it might be 2.4? The finally statement was added in 2.5 I believe so if you are attempting to import hou into an older version you'd get this error. Quote Link to comment Share on other sites More sharing options...
ivan Posted February 12, 2010 Author Share Posted February 12, 2010 I'm running 2.5- don't know what's with the syntax error, but, Georg pointed out 2 things that fixed my problem- one was that I had no PYTHONPATH env var set, and the other was that there is "hython" which already has the hou module- dunno how I missed that, but both work fine.... 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.