STINNER Victor added the comment: > This is probably is missing LD_LIBRARY_PATH environment variable. >> Fatal Python error: Failed to initialize Windows random API (CryptoGen) >Oh, it remembers me that Windows requires some environment variables to start, >otherwise it fails badly.
Ok, I filled issue #20614 to track these bugs with __cleanenv=True. Serhiy>print() can be used during Python exit in destructor if destructor called before cleaning up the builtins and sys modules and encoding module with the encoding of sys.stdout. Serhiy>Cleaning up the builtins and sys modules are delayed after wiping other modules, this decreases the chance of print() failure. Ah ok. I tested with a codec implemented in Python, it works well. So it is very specific to test_cleanup() which hack builtins and sys modules to keep a reference their. I don't see anything else to do, I close the issue. ---------- resolution: -> fixed status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20599> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com