Error Messages/46243


Error message examples

 Error loading Python environment at C:\\...\\envs\\py_env1. The previous
 environment at C:\\...\\envs\\py_env2 could not be unloaded completely. To
 prevent critical memory conflicts and a potential crash, please restart Analytica.

Cause

Unloading a Python environment and switching to another environment in Analytica (a Python embedded application) is unsupported by some Python libraries. Popular third-party libraries (NumPy, Pandas, SciPy, TensorFlow, etc.), were never designed to be unloaded once imported. Even after Analytica releases the Python interpreter, residual objects inside those native extensions may still hold references to heap blocks or DLL handles. If a second interpreter is then started in the same process space, the “dangling” state from the first interpreter can corrupt the new one and lead to hard crashes.

Remedies

Restart Analytica, then select the desired environment before re-running any Python expressions. To avoid this error in the future, try to use the same Python environment for your models.

Comments


You are not allowed to post comments.