Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error initializing triton - Error using xml_read Your MATLAB version is too old. You need version 7.1 or newer. #103

Open
kmerkens opened this issue Feb 6, 2024 · 5 comments

Comments

@kmerkens
Copy link

kmerkens commented Feb 6, 2024

Hi triton team!
I recently updated to MATLAB 2023b and am receiving an error when attempting to open triton:
Error using xml_read
Your MATLAB version is too old. You need version 7.1 or newer.

This refers to xml_read.m lines 93-99 where the MATLAB version is checked. Perhaps things have changed in how MATLAB reports versions because the version that is returned by version = str2double(regexp(v.Version, '\d.\d','match','once'));
is 3.2, but the version is actually listed as 23.2.

When I try the same process on my version 2019a it returns version 9.7. I'm not sure if this is a MATLAB change, or just a bug in the 2023 versions, but it seems like a "simple" fix would be to change the regex search to include two digits (e.g. "23") not just one ("e.g. ignoring the "2" and jumping right to the "3").

I suggest changing line 95 to something like:
version = str2double(regexp(v.Version, '\d+','match','once')); to get the first digit before the decimal place (if we only care about it being higher than 7, and it's unlikely that someone with 7 and not 7.1 is going to use the software), or:
version = str2double(regexp(v.Version, '\d+.\d','match','once'));
If we want to capture the full number and the decimal.

Thanks!
Karli

@sfregosi
Copy link
Contributor

sfregosi commented Feb 7, 2024

FYI Erik just encountered the same error after upgrading to 2023

@atcook65
Copy link

I am also encountering this issue. Has anything been resolved as these comments were from several months ago?

@marie-r
Copy link
Collaborator

marie-r commented Jul 12, 2024 via email

@sfregosi
Copy link
Contributor

sfregosi commented Jul 15, 2024

It looks like @fascimare had a fix for this in this commit (f56e573) but that hasn't been pulled into the main branch yet (#106)

@marie-r is this - 7485ff3 - commit you are talking about? I picked that up when keeping my Triton updated but that commit only modifies the xml_read that is within the Tethys Remora so wouldn't help folks not running Tethys (or with the primary xml_read higher on their path).

Could you make the same change to the main xml_read? It's line 95.

(I don't actually have the latest version of Matlab so can't test this...)

@marie-r
Copy link
Collaborator

marie-r commented Jul 15, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants