brainvisa 4.2.1 Ubuntu 10.4

Questions about BrainVisa usage and installation

Moderators: denghien, riviere

Post Reply
joost
Posts: 86
Joined: Tue Feb 05, 2008 1:56 pm

brainvisa 4.2.1 Ubuntu 10.4

Post by joost »

Hi,

my system: Linux neurojoost 2.6.32-38-generic #83-Ubuntu SMP Wed Jan 4 11:12:07 UTC 2012 x86_64 GNU/Linux

my error when trying to run brainvisa from command line:
~$ brainvisa
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "/usr/local/brainvisa-4.2.1/lib/python2.5/os.py", line 471, in <module>
class _Environ(UserDict.IterableUserDict):
AttributeError: 'module' object has no attribute 'IterableUserDict'

what am i doing wrong?

merci,
-joost
Dominique Geffroy
Site Admin
Posts: 161
Joined: Thu Mar 01, 2007 4:22 pm
Location: IFR 49 - Neurospin, Gif-sur-Yvette, France
Contact:

Re: brainvisa 4.2.1 Ubuntu 10.4

Post by Dominique Geffroy »

Hello,

Did you modify your environment variables ?
What is the result if you type the command "which brainvisa" ?

Dominique
joost
Posts: 86
Joined: Tue Feb 05, 2008 1:56 pm

Re: brainvisa 4.2.1 Ubuntu 10.4

Post by joost »

Hi,
1.
in my .bashrc i have:
function brainvisa_setup
{
. /usr/local/brainvisa/bin/bv_env.sh /usr/local/brainvisa
}

2.
jjanssen@neurojoost:/usr/local/brainvisa$ brainvisa_setup
jjanssen@neurojoost:/usr/local/brainvisa$ which brainvisa
/usr/local/brainvisa/bin/real-bin/brainvisa

-joost
Dominique Geffroy
Site Admin
Posts: 161
Joined: Thu Mar 01, 2007 4:22 pm
Location: IFR 49 - Neurospin, Gif-sur-Yvette, France
Contact:

Re: brainvisa 4.2.1 Ubuntu 10.4

Post by Dominique Geffroy »

Which Brainvisa package did you install ? Linux or Linux 64 bits ?
joost
Posts: 86
Joined: Tue Feb 05, 2008 1:56 pm

Re: brainvisa 4.2.1 Ubuntu 10.4

Post by joost »

Hi,

given that the linux 64 bits package was released on 2012_02_17 (not on 2012_02_16) and my README file reads

jjanssen@neurojoost:/usr/local/brainvisa$ more README
BRAINVISA / ANATOMIST
INSTALL INSTRUCTIONS

Pack Version : 4.2.1
Release date : 2012_02_17


####################
# INSTALLATION

i gather that i have the 64 bits version. my stamp:
Linux neurojoost 2.6.32-38-generic #83-Ubuntu SMP Wed Jan 4 11:12:07 UTC 2012 x86_64 GNU/Linux
Dominique Geffroy
Site Admin
Posts: 161
Joined: Thu Mar 01, 2007 4:22 pm
Location: IFR 49 - Neurospin, Gif-sur-Yvette, France
Contact:

Re: brainvisa 4.2.1 Ubuntu 10.4

Post by Dominique Geffroy »

That's very strange. I've just tried the Linux 64 bits package on my Ubuntu 10.4 64 bits and I had no such problem.
The error message is incomprehensible because the python in the package actually has a UserDict module with a IterableUserDict class in it...

Could you check if you use the python and the python modules of the package ?
Try the following commands and tell me the results:

Code: Select all

which python
python
import site
site.__file__
import UserDict
UserDict.__file__
UserDict.IterableUserDict
Dominique
joost
Posts: 86
Joined: Tue Feb 05, 2008 1:56 pm

Re: brainvisa 4.2.1 Ubuntu 10.4

Post by joost »

problem solved, my bad.

merci,
-joost
Post Reply