Jump to content
Sign in to follow this  

Callback script error

Recommended Posts

Hello everyone,

I'm new to python and perhaps learning it in combination with Houdini may not be the perfect way to go for a newbie but here I am.
So I get this error when trying to execute my code from a button:

Traceback (most recent call last):
File "Sop/STEGG_TEST/bt_execute", line 1, in <module>
File "Sop/STEGG_TEST, PythonModule", line 135, in main
File "Sop/STEGG_TEST, PythonModule", line 98, in encode
File "Sop/STEGG_TEST, PythonModule", line 71, in encode_enc
File "Sop/STEGG_TEST, PythonModule", line 31, in modPix
AttributeError: 'iterator' object has no attribute '__next__'


I'm not sure what this error means. I tried running the code outside Houdini, and the only difference was that as a standalone, it's not getting the input from the input fields I have in the UI so I had to type them myself. The rest all worked fine.

I'm not exactly sure how to go about this, should I upload the code I'm trying to run, as well as a version of the HDA I'm trying to make? 
I'm mainly interested in what this error means and why it only pops up in Houdini but not when I run externally. 

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this