I’m not sure if I understand what is happening here, I’m getting this error out of the blue.
SSL should come with Python by default, is the error related to a missing path, or something happened with this module?
Can’t connect to HTTPS URL because the SSL module is not available. ModuleNotFoundError: No module named ‘_ssl’
At some point Rhino crashed windows with blue screen. Since then I noticed that settings for keyboard shortcuts, aliases, display settings got lost. And I suspect that Python library might be corrupted.
I use python 3 and GHPython3 in Grasshopper.
numpy, for example, which I had installed now it’s not there anymore.
For example, import numpy in ScriptEditor will result in an error No module named ‘numpy’, and the following extended error in ScriptEditor Terminal:
Rhino.Runtime.Code.Execution.ExecuteException: Environment "default" is corrupted due to a possible package installation failure
---> Rhino.Runtime.Code.Environments.CorruptEnvironException: Environment "default" is corrupted due to a possible package installation failure
at Rhino.Runtime.Code.Languages.PythonNet.CPythonEnviron.ThrowIfCorrupt()
at Rhino.Runtime.Code.Languages.PythonNet.CPythonCode.Execute(RunContext context)
at Rhino.Runtime.Code.Code.Run(RunContext context)
--- End of inner exception stack trace ---
Rhino.Runtime.Code.Environments.CorruptEnvironException: Environment "default" is corrupted due to a possible package installation failure
at Rhino.Runtime.Code.Languages.PythonNet.CPythonEnviron.ThrowIfCorrupt()
at Rhino.Runtime.Code.Languages.PythonNet.CPythonCode.Execute(RunContext context)
at Rhino.Runtime.Code.Code.Run(RunContext context)
In GHPython3, import requests will result in an error : Can’t connect to HTTPS URL because the SSL mo…
with the following error in the terminal:
Rhino.Runtime.Code.Execution.ExecuteException: Environment "default" is corrupted due to a possible package installation failure
---> Rhino.Runtime.Code.Environments.CorruptEnvironException: Environment "default" is corrupted due to a possible package installation failure
at Rhino.Runtime.Code.Languages.PythonNet.CPythonEnviron.ThrowIfCorrupt()
at Rhino.Runtime.Code.Languages.PythonNet.CPythonCode.Execute(RunContext context)
at Rhino.Runtime.Code.Code.Run(RunContext context)
--- End of inner exception stack trace ---
Rhino.Runtime.Code.Environments.CorruptEnvironException: Environment "default" is corrupted due to a possible package installation failure
at Rhino.Runtime.Code.Languages.PythonNet.CPythonEnviron.ThrowIfCorrupt()
at Rhino.Runtime.Code.Languages.PythonNet.CPythonCode.Execute(RunContext context)
at Rhino.Runtime.Code.Code.Run(RunContext context)
and if I try to install a package i get this error: