Skip to content

Commit 51185e2

Browse files
committed
[Enhancement] Better error message on import error (closes #12)
1 parent c56a34c commit 51185e2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

spm/__wrapper__.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
'_spm',
88
'resources',
99
'RuntimeInstaller.install')
10-
print("Failed to import, install Matlab Runtime and setup library path. ")
11-
print(f"Matlab Runtime installer can be found in: {installer_path}")
10+
print("Failed to import spm._spm. This can be due to a failure to find Matlab Runtime. "
11+
"Please verify that Matlab Runtime is installed and its path is set. "
12+
"See https://www.mathworks.com/help/compiler/mcr-path-settings-for-run-time-deployment.html for instructions"
13+
" on how to setup the path. If the issue persists, please open an issue with the entire error message at "
14+
"https://github.com/spm/spm-python/issues.")
1215

1316
raise e
1417

0 commit comments

Comments
 (0)