Skip to content

Commit 3330082

Browse files
committed
R2021b 9.11.19a5 better error message
1 parent be40b91 commit 3330082

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The MATLAB® Engine API for Python® provides a package to integrate MATLA
2121
MATLAB Engine API for Python can be installed directly from the Python Package Index.
2222
<!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
2323
```bash
24-
$ python -m pip install matlabengine==9.11.19a4
24+
$ python -m pip install matlabengine==9.11.19a5
2525
```
2626

2727

@@ -46,7 +46,7 @@ setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:<matlabroot>/bin/glnxa64
4646
MATLAB Engine API for Python can be installed directly from the Python Package Index.
4747
<!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
4848
```bash
49-
$ python -m pip install matlabengine==9.11.19a4
49+
$ python -m pip install matlabengine==9.11.19a5
5050
```
5151

5252
### macOS
@@ -70,7 +70,7 @@ setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:<matlabroot>/bin/maci64
7070
MATLAB Engine API for Python can be installed directly from the Python Package Index.
7171
<!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
7272
```bash
73-
$ python -m pip install matlabengine==9.11.19a4
73+
$ python -m pip install matlabengine==9.11.19a5
7474
```
7575

7676
---

setup.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class _MatlabFinder(build_py):
2424
MATLAB_REL = 'R2021b'
2525

2626
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
27-
MATLAB_VER = '9.11.19a4'
27+
MATLAB_VER = '9.11.19a5'
2828

2929
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
3030
SUPPORTED_PYTHON_VERSIONS = set(['3.7', '3.8', '3.9'])
@@ -53,7 +53,6 @@ class _MatlabFinder(build_py):
5353
minimum_maximum = "No compatible version of MATLAB was found. " + \
5454
"This feature supports MATLAB {min_v:s} ({min_r:s}) through {max_v:s} ({max_r:s}), inclusive."
5555
dir_not_found = "Directory not found: "
56-
install_compatible = "To install a compatible version, call python -m pip install matlabengine=="
5756
no_windows_install = "MATLAB installation not found in Windows Registry:"
5857
unsupported_platform = "{platform:s} is not a supported platform."
5958
unsupported_python = "{python:s} is not supported. The supported Python versions are {supported:s}."
@@ -62,8 +61,7 @@ class _MatlabFinder(build_py):
6261
no_compatible_matlab = "No compatible MATLAB installation found in Windows Registry. This release of " + \
6362
"MATLAB Engine API for Python is compatible with version {ver:s}. The found versions were"
6463
no_matlab = "No compatible MATLAB installation found in Windows Registry."
65-
incompatible_ver = "MATLAB version {ver:s} was found, but MATLAB Engine API for Python is not compatible with it. " + \
66-
"To install a compatible version, call python -m pip install matlabengine=={found:s}."
64+
incompatible_ver = "MATLAB version {ver:s} was found, but MATLAB Engine API for Python is not compatible with it. "
6765
invalid_version_from_matlab_ver = "Format of MATLAB version '{ver:s}' is invalid."
6866
invalid_version_from_eng = "Format of MATLAB Engine API version '{ver:s}' is invalid."
6967

@@ -184,7 +182,7 @@ def _find_matlab_key_from_windows_registry(self, key):
184182
vers = ', '.join(found_vers)
185183
eng_ver_major_minor = self._get_engine_ver_major_minor()
186184
eng_ver_major_minor_as_str = '{}.{}'.format(eng_ver_major_minor[0], eng_ver_major_minor[1])
187-
raise RuntimeError(f"{self.no_compatible_matlab.format(ver=eng_ver_major_minor_as_str)} {vers}. {self.install_compatible}{found_vers[-1]}.")
185+
raise RuntimeError(f"{self.no_compatible_matlab.format(ver=eng_ver_major_minor_as_str)} {vers}.")
188186
else:
189187
raise RuntimeError(f"{self.no_matlab}")
190188

@@ -310,7 +308,7 @@ def run(self):
310308
setup(
311309
name="matlabengine",
312310
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
313-
version="9.11.19a4",
311+
version="9.11.19a5",
314312
description='A module to call MATLAB from Python',
315313
author='MathWorks',
316314
license="MathWorks XSLA License",

0 commit comments

Comments
 (0)