Community
Arnold General Rendering Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Arnold API errors out on import with Python 3.9

1 REPLY 1
Reply
Message 1 of 2
AaronWPowell
168 Views, 1 Reply

Arnold API errors out on import with Python 3.9

When loading the Arnold Python API in 3.9, the import command errors out the first time saying it "cannot find ai.dll". Trying to import it again after that works as expected, though.

try:
    import arnold # this will return the error
except:
    print("Something went wrong, trying again...")
    import arnold # this will succeed

# I can now call API functions as expected
arnold.AiBegin()

This seems to only be an issue on 3.9 - earlier versions work as expected. Has anyone else seen this? I tested on Arnold 6.0.4.0 and 6.2.0.0 with the same result.

Tags (4)
Labels (4)
1 REPLY 1
Message 2 of 2

If you set PATH yourself to include the Arnold bin folder, then it will work the first time.

It seems that something changed in Python, and trying to load Arnold without a full path is failing with Python 3.9

Thanks for reporting, I'll log a ticket.



// Stephen Blair
// Arnold Renderer Support

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report