Jump to content
berniebernie

HDA to send to Hqueue only works if I 'allow editing of contents' ?

Recommended Posts

wVmsuym.png

 

Hello, we built an asset to cache and version our sims/caches

I extended it to be able to use the renderfarm to sim things out. To do this I added a ROP in the asset, with the HQueue simulation node. I then use the topmost interface/parameters to 'click' on the 'Submit Job' button on that HQueue Simulation node down below.

However, unless I do a 'allow editing of contents' on my HDA, it fails on the farm with the following code:

 

 .........................
ImportError: No module named sgtk

Traceback (most recent call last):
  File "/our-hou-path/scripts/hqueue/hq_run_sim_without_slices.py", line 4, in <module>
    hqlib.callFunctionWithHQParms(hqlib.runSimulationWithoutSlices)
  File "/our-hou-path/linux/houdini/scripts/hqueue/hqlib.py", line 1862, in callFunctionWithHQParms
    return function(**kwargs)
  File "/our-hou-path/linux/houdini/scripts/hqueue/hqlib.py", line 1575, in runSimulationWithoutSlices
    alf_prog_parm.set(1)
  File "/hou-shared-path/shared/houdini_distros/hfs.linux-x86_64/houdini/python2.7libs/hou.py", line 34294, in set
    return _hou.Parm_set(*args)
hou.PermissionError: Failed to modify node or parameter because of a permission error.  Possible causes include locked assets, takes, product permissions or user specified permissions


It seems that unless I don't unlock the asset, the submit job can't be clicked. 

Here's how i linked the interface button to the submit button

gQ3Qfm1.png

Thanks for your input.

Share this post


Link to post
Share on other sites

I had this problem before. Unfortunately it's a PITA to debug because the error massage actually doesn't help you at all. It has something to do with a parameter that should be exposed being inside the hda. Basically you're trying to edit something inside an HDA, but you can't if it's locked, when you unlock it, you can edit it, so it works

What I did was going node by node and disabling the network backwards until I found the node that had to be promoted. Maybe it's worth sending a e-mail to SESI, they might have a smarter way to figuring this out

 

 

  • Like 1

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

×