Jump to content

Callback script error


Dirty_Biscuit

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. 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...