@chris @Paul1
The uuid
module uses kernel functions (similar to cryptographic functions). So import uuid
eventually reaches inside system native modules to call the uuid generator. Seems like in some cases a System.AccessViolationException
exception is thrown (usually a bad pointer in the native code) and it crashes the running application. In this case it seems the exception is thrown while loading the native module that contains the uuid generator.
We had this issue with pyRevit back in 2018. Gui Talarico debugged and figured it was the import uuid
that was causing the exception and crash.
We solved the problem by directly accessing the uuid generator in the .NET framework instead, so I never looked deeper into the issue.
I can take a look tomorrow and see if we can find the root cause.