HQueue - Arnold's environment variables

   2492   2   2
User Avatar
Member
64 posts
Joined: July 2005
Offline
Hi,
I'm trying to render some Arnold ROPs using the ‘HQueue Render’ node but I keep getting the following error in the output log (job details of the web interface):

[...]
00:00:00   292MB         | [rop_operators] operator registration done.
00:00:00   309MB         | [vop_shaders] Registering shaders ...
00:00:00   311MB         | [vop_shaders] shader registration done.
00:00:00   311MB         | [htoa_op] End registration.
00:00:00   311MB         |  
00:00:00   311MB         | releasing resources
00:00:00   261MB         | Arnold shutdown
libai.so already loaded
No licenses could be found to run this application.
	Please check for a valid license server host

If I export ass files (through maya) and send to HQueue a python list of kick commands, everything works fine because I can explicitely define the license file location, but for some reason I can't do the same in Houdini. I've tried using the Advanced tab in HQueue Render node (Environment settings).

I can also render locally within Houdini without any problem..
So, is there a way to set an environment variable before render? Something like export ADSKFLEX_LICENSE_FILE=@myserver.site

thanks!

-edgar
Edited by eddgarpv - Oct. 3, 2018 18:47:22
User Avatar
Staff
4162 posts
Joined: Sept. 2007
Offline
If the Environment Variables tab on HQueue ROP aren’t working, what about adding those environment variables to the hquser’s bashed/cshrc? Or whatever the Windows equivalent is.
I'm o.d.d.
User Avatar
Member
64 posts
Joined: July 2005
Offline
Adding those variables to the hquser's .bashrc file doesn't change anything at all.
What works here is to wrap the ‘export variable=value’ in the command section of the python job:

job_spec = {
"name": "some name",
"shell": "bash",
"command": "",
"tags": [ "single" ],
"children": [
  {
 	"name": "render 1264",
 	"shell": "bash",
	"tags": ["single"],
 	"command": "export variable=value render commands" 
 	}
]
}

Something like this.

If I can make it work using nodes only, I'll post it here.
  • Quick Links