Community
Arnold General Rendering Forum
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Arnold API errors out on import with Python 3.9

1 ANTWORT 1
Antworten
Nachricht 1 von 2
AaronWPowell
303 Aufrufe, 1 Antwort

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)
Beschriftungen (4)
1 ANTWORT 1
Nachricht 2 von 2
Stephen.Blair
als Antwort auf: AaronWPowell

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

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report