FC 11?

Questions about BrainVisa usage and installation

Moderators: denghien, riviere

Post Reply
R3353
Posts: 5
Joined: Mon Jun 08, 2009 8:15 pm

FC 11?

Post by R3353 »

Has brainvisa been tested under Fedora Core 11?
R3353
Posts: 5
Joined: Mon Jun 08, 2009 8:15 pm

Re: FC 11?

Post by R3353 »

This refers to a clean install of FC 11 and brainvisa 3.1.6 upon first boot. Everything looks stellar and runs without modifying instructions.
sebastian
Posts: 20
Joined: Fri Jul 29, 2005 1:09 pm
Location: U663, Paris V University, France

Re: FC 11?

Post by sebastian »

FC 11 i386 or x86_64 ?
On my laptop (FC11 x86_64) I couldn't get proper installation : ./setup.sh
tells :
Building BrainVISA cache
python: can't open file 'est': [Errno 2] No such file or directory
BrainVISA/Anatomist is now installed. Enjoy.

and brainvisa command :
python: can't open file 'est': [Errno 2] No such file or directory


Best regards

Sebastian
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Re: FC 11?

Post by riviere »

Hi,

Oh, I think I have seen this problem a few weeks ago (maybe on FC11 actually): it was just a locale problem as a system command now unexpectedly outputs in french. I have fixed the script for the next release, but you can fix it easily by setting the LANG environment variable to english: before running the setup, in a bash shell, type:

Code: Select all

export LANG=C
<brainvisa_pack_dir>/setup.sh
The same problem happens in the brainvisa command script so you'd better stick with an english shell until the next update.

Denis
sebastian
Posts: 20
Joined: Fri Jul 29, 2005 1:09 pm
Location: U663, Paris V University, France

Re: FC 11?

Post by sebastian »

Denis,

thanks ! I'm sorry a new error message now :
Building BrainVISA cache
Traceback (most recent call last):
File "<string>", line 27, in <module>
File "/usr/local/cartopack-Fedora-4-i686-3.1.6-2009_05_14/brainvisa/neuro.py", line 49, in <module>
from soma.wip.application.api import Application
File "/usr/local/cartopack-Fedora-4-i686-3.1.6-2009_05_14/python/soma/wip/application/api.py", line 40, in <module>
from soma.wip.application.plugins import Plugin, Plugins
File "/usr/local/cartopack-Fedora-4-i686-3.1.6-2009_05_14/python/soma/wip/application/plugins.py", line 40, in <module>
from soma.minf.api import readMinf, minfFormat, writeMinf
File "/usr/local/cartopack-Fedora-4-i686-3.1.6-2009_05_14/python/soma/minf/api.py", line 272, in <module>
import soma.minf.xml_reader
File "/usr/local/cartopack-Fedora-4-i686-3.1.6-2009_05_14/python/soma/minf/xml_reader.py", line 42, in <module>
from xml.sax.saxutils import quoteattr as xml_quoteattr
File "/i2bm/research/Fedora-4-i686/python-2.5.1/lib/python2.5/site-packages/_xmlplus/sax/saxutils.py", line 8, in <module>
File "/usr/local/cartopack-Fedora-4-i686-3.1.6-2009_05_14/lib/python2.5/urllib2.py", line 88, in <module>
import hashlib
File "/usr/local/cartopack-Fedora-4-i686-3.1.6-2009_05_14/lib/python2.5/hashlib.py", line 133, in <module>
md5 = __get_builtin_constructor('md5')
File "/usr/local/cartopack-Fedora-4-i686-3.1.6-2009_05_14/lib/python2.5/hashlib.py", line 60, in __get_builtin_constructor
import _md5
ImportError: No module named _md5
BrainVISA/Anatomist is now installed. Enjoy.


Best regards

Sebastian
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Re: FC 11?

Post by riviere »

Hi Sebastian,

Sorry for the late answer, I was on vacation, then I had to try your problem on a FC11 machine...

Well I don't get the same error, but I could track it back from your error message.
Some python modules depend on system libraries that are not part of the BV package, and that are not installed on your system (we just didn't know about that...).
You should install krb5-libs (which will also install e2fsprogs-libs and keyutils-libs as dependencies):

Code: Select all

sudo yum install krb5-libs
Then the python in BV will be able to load the _hashlib module, and when this doesn't fail any longer, it will not try to import that _md5 module which is not present in this python either...
It works for me since I have those packages installed.

Denis
sebastian
Posts: 20
Joined: Fri Jul 29, 2005 1:09 pm
Location: U663, Paris V University, France

Re: FC 11?

Post by sebastian »

Denis,

fine ! It works. Thank you.

Best regards

Sebastian
Post Reply