One thing I have found is to make sure that the env variable SYSTEMROOT is 
appropriately set but - how do I do this? What do I set it to?

On Wednesday, June 8, 2022 at 9:28:52 AM UTC-4 Tom Johnson wrote:

> Hi there,
>
> my python program is compiling fine and running fine when executed through 
> a command line or batch file or even a test program. However, when trying 
> to integrate it into a larger application it simply won't start. I 
> downloaded DebugView to see what was happening because it was obvious the 
> exe was opening but not running.
>
> What I found was that as the internal python interpreter was unpacked and 
> started, it ran into a fatal Python error: failed to get random numbers to 
> initialize Python.
>
> Has anyone run into this before? I think it is happening because we are 
> running this app through a custom executable framework that changes some of 
> the env variables. Realistically I am wondering if I can write a hook to 
> set this env variable back to what it should be before the python 
> interpreter starts.
>
> Thanks for any help!
>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/66e60aa5-72ec-4178-b199-75d89b9bfce1n%40googlegroups.com.

Reply via email to