mathworks / matlab-proxy

Python® package enables you to open a MATLAB® desktop in a web browser tab.
Other
43 stars 23 forks source link

Provide alternate means to specify the install location for the MATLAB executable #3

Closed prabhakk-mw closed 1 year ago

prabhakk-mw commented 2 years ago

Created on behalf of user

We are getting the following error message when running MATLAB Proxy:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/VersionInfo.xml'

This is because we have MATLABROOT in a different location than the default, thus the "VersionInfo.xml" file is in a different location from the original one.

We followed these steps which resulted in the error:

1. Move your MATLAB installation into some location which is not on your PATH
2. Put a script into your PATH called “matlab” that runs your MATLAB installation, but which resides in a folder which does not have "VersionInfo.xml" in it (important – this script must not be in the folder where you installed MATLAB)
3. “which matlab” now gives you the location of your custom script, and this location does not contain VersionInfo.xml.
4. The matlab-proxy app is now impossible to use because it cannot find "VersionInfo.xml" in the folder returned by “which matlab”

Questions:
1. Is there a way to override the "settings.py" function to point to the location where the "VersionInfo.xml" file is?
2. Any other ways to resolve this issue?