Closed Matthew-Boyd closed 2 years ago
These errors eventually resolved while troubleshooting, intermittently came back, then seemingly resolved permanently on their own. Creating a new Conda environment, clearing all added system environment variables, uninstalling packages in the base environment, reverting changed MATLAB settings, etc. could not reproduce the original errors...
Things tried around the time problem resolved:
Note MATLAB staff do report that "MATLAB does not support Anaconda Python. To call Python libraries from MATLAB, you need to install a supported version of the reference implementation (CPython) for Python" [link]
See this link for installing CPython alongside Anaconda.
@Matthew-Boyd Thank you for documenting this issue and the possible fixes. Since this is resolved and not reproducible, I am going to close this issue. We can re-open it if these or similar issues appear in the future.
Running the function circular(30) to test for a successful installation results in a few different errors, depending on the state of the Python environment. Errors thrown on call to: _py.importlib.importmodule('mhkit');
No errors occurred when running the same function in Python (MHKiT-MATLAB)
Environment Python = 3.9 Fresh Conda virtual environment (not base environment)
Errors _Error using _backendtk> (line 22)
_Python Error: RuntimeError: Failed to load TkFindPhoto
or
_Python Error: RuntimeError: Failed to load TclSetVar
or
Importing the numpy C-extensions failed