cobratoolbox icon indicating copy to clipboard operation
cobratoolbox copied to clipboard

Error in initCobraToolbox (line 212)

Open febedtu opened this issue 3 years ago • 6 comments

Hi,

I have used older cobra toolbox versions fine for a while. However, after installing the latest version of cobra toolbox, following instructions (https://opencobra.github.io/cobratoolbox/latest/installation.html) with Matlab 2015b, initCobraToolbox reports the following:

 > Checking if git is installed ...  Done (version: 2.32.0).
 > Checking if the repository is tracked using git ...  Done.
 > Checking if curl is installed ...  Done.
 > Checking if remote can be reached ...  Done.
 > Initializing and updating submodules (this may take a while)...Undefined function 'contains' for input arguments of type 'char'.

Error in initCobraToolbox (line 212)
            if contains(result_gitSubmodule,'modified') || contains(result_gitSubmodule,'Untracked files')

Any idea what might cause this error?

febedtu avatar Apr 11 '22 13:04 febedtu

contains is a function that needs a newer version of matlab

On Mon, 11 Apr 2022 at 14:11, febedtu @.***> wrote:

Hi,

I have used older cobra toolbox versions fine for a while. However, after installing the latest version of cobra toolbox, following instructions ( https://opencobra.github.io/cobratoolbox/latest/installation.html) with Matlab 2015b, initCobraToolbox reports the following:

Checking if git is installed ... Done (version: 2.32.0). Checking if the repository is tracked using git ... Done. Checking if curl is installed ... Done. Checking if remote can be reached ... Done. Initializing and updating submodules (this may take a while)...Undefined function 'contains' for input arguments of type 'char'.

Error in initCobraToolbox (line 212) if contains(result_gitSubmodule,'modified') || contains(result_gitSubmodule,'Untracked files')

Any idea what might cause this error?

— Reply to this email directly, view it on GitHub https://github.com/opencobra/cobratoolbox/issues/1975, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQMEOT4L5XUGZU5W3GF433VEQQGDANCNFSM5TDESM3A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

--

Mr. Ronan MT Fleming B.V.M.S. Dip. Math. Ph.D.

Associate Professor, School of Medicine, National University of Ireland, Galway. & Assistant Professor, Division of Systems Biomedicine and Pharmacology, Leiden Academic Centre for Drug Research, Faculty of Science, Leiden University. https://www.universiteitleiden.nl/en/staffmembers/ronan-fleming & H2020 Project Coordinator, Systems Medicine of Mitochondrial Parkinson’s Disease, http://sysmedpd.eu

Peer-reviewed publications: https://goo.gl/FZPG23 Mobile: +353 852 109 806 Skype: ronan.fleming

(This message is confidential and may contain privileged information. It is intended for the named recipient only. If you receive it in error please notify me and permanently delete the original message and any copies.)

rmtfleming avatar Apr 11 '22 13:04 rmtfleming

Alright, so there is no support for Matlab2015b? The documentation indicates support for >Matlab2014b.

febedtu avatar Apr 11 '22 13:04 febedtu

Is there support for Matlab2015b / a workaround for this issue, or did I misunderstand the documentation?

febedtu avatar Apr 19 '22 09:04 febedtu

Hi, feel free to contribute a PR with a workaround. Regards, Ronan

On Tue, 19 Apr 2022 at 10:17, febedtu @.***> wrote:

Is there support for Matlab2015b / a workaround for this issue, or did I misunderstand the documentation?

— Reply to this email directly, view it on GitHub https://github.com/opencobra/cobratoolbox/issues/1975#issuecomment-1102364883, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQMEOQPOKLIVVIVQABASHLVFZ2Z3ANCNFSM5TDESM3A . You are receiving this because you commented.Message ID: @.***>

--

Mr. Ronan MT Fleming B.V.M.S. Dip. Math. Ph.D.

Associate Professor, School of Medicine, National University of Ireland, Galway. & Assistant Professor, Division of Systems Biomedicine and Pharmacology, Leiden Academic Centre for Drug Research, Faculty of Science, Leiden University. https://www.universiteitleiden.nl/en/staffmembers/ronan-fleming & H2020 Project Coordinator, Systems Medicine of Mitochondrial Parkinson’s Disease, http://sysmedpd.eu

Peer-reviewed publications: https://goo.gl/FZPG23 Mobile: +353 852 109 806 Skype: ronan.fleming

(This message is confidential and may contain privileged information. It is intended for the named recipient only. If you receive it in error please notify me and permanently delete the original message and any copies.)

rmtfleming avatar Apr 19 '22 14:04 rmtfleming

What is a PR? So there is no support for Matlab2015b? Which versions of Matlab are supported by COBRA Toolbox?

bigsuicideparty avatar Apr 20 '22 06:04 bigsuicideparty

PR = pull request https://opencobra.github.io/cobratoolbox/latest/contributing.html

https://uk.mathworks.com/help/matlab/ref/contains.html was Introduced in R2016b

On Wed, 20 Apr 2022 at 07:54, bigsuicideparty @.***> wrote:

What is a PR? So there is no support for Matlab2015b? Which versions of Matlab are supported COBRA Toolbox?

— Reply to this email directly, view it on GitHub https://github.com/opencobra/cobratoolbox/issues/1975#issuecomment-1103535076, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQMEOSFYAMG7ZYEQFLQF53VF6S2VANCNFSM5TDESM3A . You are receiving this because you commented.Message ID: @.***>

--

Mr. Ronan MT Fleming B.V.M.S. Dip. Math. Ph.D.

Associate Professor, School of Medicine, National University of Ireland, Galway. & Assistant Professor, Division of Systems Biomedicine and Pharmacology, Leiden Academic Centre for Drug Research, Faculty of Science, Leiden University. https://www.universiteitleiden.nl/en/staffmembers/ronan-fleming & H2020 Project Coordinator, Systems Medicine of Mitochondrial Parkinson’s Disease, http://sysmedpd.eu

Peer-reviewed publications: https://goo.gl/FZPG23 Mobile: +353 852 109 806 Skype: ronan.fleming

(This message is confidential and may contain privileged information. It is intended for the named recipient only. If you receive it in error please notify me and permanently delete the original message and any copies.)

rmtfleming avatar Oct 11 '22 06:10 rmtfleming