Community
Arnold for Houdini Forum
Rendering with Arnold in Houdini and Solaris using the HtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Python errors when trying to run HtoA

2 REPLIES 2
Reply
Message 1 of 3
Steve_Watts_Kennedy
444 Views, 2 Replies

Python errors when trying to run HtoA

I've just installed Houdini 18.5.532 and the relevant HtoA (5.6.1.0) and I'm getting this error when booting up Houdini:

Error running pythonrc.py:
  File "C:/Users/steve/htoa/htoa-5.6.1.0_rf9edb5c_houdini-18.5.532/htoa-5.6.1.0_rf9edb5c_houdini-18.5.532/scripts/python/pythonrc.py", line 11
    print '[htoa] HTOA environment variable already set to %s' % os.environ['HTOA']
                                                             ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('[htoa] HTOA environment variable already set to %s' % os.environ['HTOA'])?

And then if I, for example, try creating and Arnold ROP, I get this error:

Traceback (most recent call last):
  File "Driver/arnold, opdef:/Driver/arnold?OnCreated, node /out/arnold1", line 1, in <module>
  File "C:/Users/steve/htoa/htoa-5.6.1.0_rf9edb5c_houdini-18.5.532/htoa-5.6.1.0_rf9edb5c_houdini-18.5.532/scripts/python\htoa\searchpath.py", line 23, in <module>
    if os.environ.has_key('ARNOLD_PROCEDURAL_PATH'):
AttributeError: '_Environ' object has no attribute 'has_key'

I have attached my Houdinin env file, in case that is the source of the problem...

houdini.zip

Tags (2)
Labels (2)
2 REPLIES 2
Message 2 of 3

My apologies, I just found the other posts similar to this one (I searched wrong before).

So as I understand it, I need to use the Python 2x version of Houdini.

Is this something that will be fixed?

Message 3 of 3

Yes, support for Python 3 will be added in a future HtoA update.



// Stephen Blair
// Arnold Renderer Support

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report