I am running batch processing with Python on Jupyter notebook with threading. Upon running it, the first iteration will give off error below. The second iteration will be able run as usual.
Cannot validate license !
Please run AnyBody.exe to manage your license(s).
Failed to checkout RLM license.
ERROR: anybodycon.CMD existed unexpectedly. Return code: -22 : No license available.
I have ran by opening the AnyBody software application and my license is recognised. But the error still persist.
There are 3 AnyBody version installed in my machine (8.0, 8.1, and 8.2beta). When I run the simulation on python, none of these applications are open.
I had never seen this error before on my python.
My license is node-locked to my laptop.
I may have mispoken before. I think the error is probably because one of the threads was not functioning properly. Any file that was assigned to that thread will give the license validation error, 1-2 seconds after batch processing started. Thus it gives the impression to be the first iteration of the batch processing loop.
The variance would be either just one or two mocap trials that gave out the error report out of several mocap trial files. I would get the error notice straightaway after starting the batch processing (1-2 secs) but the rest of the batch will still churn out output even though they were executed in the same line of code in loop.
Below is the snippet of my python code. For the last line of command, there are 5 trials to process and the file assigned to that problematic thread would gave the error.
So, yesterday I did the good old ‘switch off-switch on’ of my laptop and ran some batch processing simulation again on other mocap files. I didn’t encounter any error anymore since then. It could possibly just a blip. I will log another forum post if this happens again.
One small note about num_processes that you have set to 5. A normal node-locked license would allow 4 concurrent instances of AnyBody. Please set it to 4.