A problem about update The COBRA Toolbox

235 views
Skip to first unread message

NA

unread,
Apr 25, 2018, 8:54:27 AM4/25/18
to COBRA Toolbox
hi,
   A problem about update The COBRA Toolbox :
   “There are 5883 new commit(s) on <master> and 0 new commit(s) on <develop> [f0b7a8 @ master]
  You can update The COBRA Toolbox by running updateCobraToolbox() (from within MATLAB).”
  But when i runn ‘updateCobraToolbox() ‘,’it always happen some errors,what should i do?

Thomas Pfau

unread,
Apr 26, 2018, 1:28:05 AM4/26/18
to cobra-...@googlegroups.com

Hi NA,

I'd suggest to delete your current version and do a reinstallation (i.e. create a new clone) according to the installation instructions.

Best

Thomas


On 2018-04-25 14:54, NA wrote:

Unsubscribe

It appears that you have subscribed to commercial messages from this sender. To stop receiving such messages from this sender, please unsubscribe

--

---
You received this message because you are subscribed to the Google Groups "COBRA Toolbox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cobra-toolbo...@googlegroups.com.
For more options, visit http://secure-web.cisco.com/1SFV9ubP7ePgu4o_gBWR7hzKippw3K05zPdijP93mjVNfu-uUUkxmKVUSU0khYXOPOcEcvSmpM51ZgSMl19N1OC5b9G0swOctYddRegJ1eiSBT8GM6vd14I409bVe1SYIiYUYmHFCXvMuY36RMRtxaAGQehaF5dz9kx3QotukgcDFc0dszp2YFjIe5R1nynVkel6Fr74OTG2v-h_TrCmAd1M3M1XLLV11mV49UxW_1L-Uj16QEj3uMQ2j0fS2MpH1GmV4DPEslNtY45B3lPdzj7haMdH5KCXhRY0ZldQZiO5b2ZOdHe_FygD9c7GoGOZjxZtDjN1BFnTOON4Gbn0Hk6heMKw7aNdE6aNu9Y__kMslCSNK_b2sM3rcoqm9ap8-4z5UKAamahIj7xJXKvHknw/l34%3Ahttps%3A%2F%2Fgroups.google.com%2Fd%2Foptoute.

-- 
Université du Luxembourg
Faculté des Sciences, de la Technologie et de la Communication
Campus Belval, Biotech II 115
6 avenue du Swing
L-4367 Belvaux
Tel: (+352) 46 66 44 5309
Email: thoma...@uni.lu

NA

unread,
Apr 26, 2018, 9:34:05 AM4/26/18
to COBRA Toolbox
Dear Thomas,
        Thank you for your reply patiently.I think it will a useful way about the method you offer to me .But I  reinstall  the cobratoolbox just  5-6 days ago.it always has no error .can I solve the problem through another way?
       Thank you again.

NA,

在 2018年4月26日星期四 UTC+8下午1:28:05,Thomas Pfau写道:

Hi NA,

I'd suggest to delete your current version and do a reinstallation (i.e. create a new clone) according to the installation instructions.

Best

Thomas


On 2018-04-25 14:54, NA wrote:

Unsubscribe

It appears that you have subscribed to commercial messages from this sender. To stop receiving such messages from this sender, please unsubscribe

hi,
   A problem about update The COBRA Toolbox :
   “There are 5883 new commit(s) on <master> and 0 new commit(s) on <develop> [f0b7a8 @ master]
  You can update The COBRA Toolbox by running updateCobraToolbox() (from within MATLAB).”
  But when i runn ‘updateCobraToolbox() ‘,’it always happen some errors,what should i do?
--

---
You received this message because you are subscribed to the Google Groups "COBRA Toolbox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cobra-toolbox+unsubscribe@googlegroups.com.

Liuyw

unread,
Apr 26, 2018, 10:21:45 PM4/26/18
to COBRA Toolbox
hi,
    when I run  ‘updateCobraToolbox() ‘,’it always happen some errors:
    “The COBRA Toolbox cannot be updated as you have unstaged files. Commits should only be made in your local and cloned fork.”
     How should I do?thank you !




在 2018年4月25日星期三 UTC+8下午8:54:27,NA写道:

Thomas Pfau

unread,
Apr 27, 2018, 12:36:03 AM4/27/18
to cobra-...@googlegroups.com

Hi NA,

Given the message you supplied (master behind by 5883 new commits), I'm pretty sure, that you did not do a full reinstall of the toolbox.
The only other method I, besides a proper reinstall, would be to use git commands. In a console switch to your cobra toolbox directory.

In that directory do:
git remote -v

You should see something like:

origin    g...@github.com:tpfau/cobratoolbox.git (fetch)
origin    g...@github.com:tpfau/cobratoolbox.git (push)
upstream    https://github.com/opencobra/cobratoolbox.git (fetch)
upstream    https://github.com/opencobra/cobratoolbox.git (push)

or:

origin    https://github.com/opencobra/cobratoolbox.git (fetch)
origin    https://github.com/opencobra/cobratoolbox.git (push)

for the following I'm assuming that you have the latter version. IF its the former replace all occurences of origin by upstream
Run:
git fetch origin
git checkout master
git pull

if this succeeds, try updateCobraToolbox again from matlab. If it does not, I would really suggest to completely delete the folder you installed your toolbox in and reinstall it according to the installation instructions.

Best

Thomas
To unsubscribe from this group and stop receiving emails from it, send an email to cobra-toolbo...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thomas Pfau

unread,
Apr 27, 2018, 12:40:27 AM4/27/18
to cobra-...@googlegroups.com

Hi Liuyw,

You seem to have modified files in the toolbox. If you want to keep using those changes I would suggest to have a look at the DevTools ( https://github.com/opencobra/MATLAB.devTools ).

If you don't want to keep those changes, you could go to a console/terminal, navigate to your cobratoolbox folder and do the following:
To determine, which files you modified run:

$git status

If you don't want to keep those changes, you can run:

$git stash

However this will remove all changes you made to your local copy, and they cannot be retrieved after the command, so be careful and backup any modified fies for which you want to keep the modifications.

Best

Thomas


On 2018-04-27 04:21, Liuyw wrote:

Unsubscribe

It appears that you have subscribed to commercial messages from this sender. To stop receiving such messages from this sender, please unsubscribe

hi,
--

---
You received this message because you are subscribed to the Google Groups "COBRA Toolbox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cobra-toolbo...@googlegroups.com.

NA NA

unread,
May 2, 2018, 9:02:18 AM5/2/18
to cobra-...@googlegroups.com
Dear Thomas,

Thank you for your patience. I tried both methods and found that
the best method is to reinstall my cobratoolbox. It is the most
convenient way to solve my problems smoothly. Thank you again for your
help.


yours

liuyw
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages