pyaims : reading graph

AIMS library and commands usage

Moderators: denghien, riviere

Post Reply
duchesnay
Posts: 3
Joined: Tue Jul 13, 2004 5:30 pm
Location: CEA, Orsay, France

pyaims : reading graph

Post by duchesnay »

Running the following code :
import aims, sys
reader = aims.Reader()
graph = reader.read('RchaosBase.arg')

I got :
GraphParser_Python::read
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/home/duchesnay/p4/pyaims-main-linux-default/python/aims.py", line 126, in read
return r.read( 0, f.format() )
Exception: unknown

It must be noticed that while importing aims, i got the following message :
no SHFJ_SHARED_PATH env variable!
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Post by riviere »

Hi,
I guess you have already found the answer, but just in case someone esle runs into the same problem: when you compile the libraries from sources, you must setup some environment variables:
http://brainvisa.info/libs-stable/index ... installing
Denis
Post Reply