question

Steve Watts Kennedy avatar image
Steve Watts Kennedy asked

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

htoahoudini
houdini.zip (549 B)
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

1 Answer

· Write an Answer
Steve Watts Kennedy avatar image
Steve Watts Kennedy answered

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?

1 comment
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

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

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.