Page 1 of 1

Bug in primatologist -> Basic Mixture Fitting

Posted: Mon Feb 19, 2018 5:05 pm
by Olivier Coulon
Hello,
Moving on with Primatologist, I encountered the following bug in the "Basic Mixture Fitting" sub-process. It crashes because on lines 73, 84, 106, and 116 there is a call for the function numpy.random.choice().
This function is available in numpy from version 1.7 and above, and BrainVisa comes with numpy 1.6.2 (at least the version I installed on my Ubuntu 14.04).

Olivier

Re: Bug in primatologist -> Basic Mixture Fitting

Posted: Tue Feb 20, 2018 3:43 pm
by Olivier Coulon
About this bug. On my debian system, we installed the Mandriva 2008 version, and it comes with a newer numpy version, so the bug is not there. On my Ubuntu, I had installed the Ubuntu 12.04 version...

Re: Bug in primatologist -> Basic Mixture Fitting

Posted: Tue Feb 20, 2018 5:32 pm
by riviere
Hi,
I probably forgot to upgrade numpy on this machine...
Denis

Re: Bug in primatologist -> Basic Mixture Fitting

Posted: Tue Feb 20, 2018 5:58 pm
by riviere
Can you try to upgrade directly in the brainvisa install directory ?

Code: Select all

<brainvisa_dir>/bin/pip install -U --prefix <brainvisa_dir> numpy scipy
just in case it works ;) (I haven't tried and the pip version here has problems, I had to reinstall it manually)
Denis

Re: Bug in primatologist -> Basic Mixture Fitting

Posted: Tue Feb 20, 2018 6:34 pm
by Olivier Coulon
OK, I'll try tomorrow and will let you know.

Olivier

Re: Bug in primatologist -> Basic Mixture Fitting

Posted: Thu Feb 22, 2018 8:00 am
by Olivier Coulon
Hello Denis,
pip install does not have any --prefix option.

Olivier

Re: Bug in primatologist -> Basic Mixture Fitting

Posted: Fri Feb 23, 2018 11:06 am
by riviere
Hi Olivier,
So it's an old pip. You can try to upgrade pip first, using easy_install:

Code: Select all

<brainvisa_dir>/bin/easy_install -U --prefix <brainvisa_dir> pip
then retry the pip command
Denis