Dear all,
I am having problems verifying my installation which means it is not correct. I used the wiki and installed in my fedora from the source code. I am trying to run the simple_example file that comes with the installation but it seams that it does not find one of the functions. Here is the error I am getting:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/usr/lib/python2.7/site-packages/IPython/utils/py3compat.pyc in execfile(fname, *where)
176 else:
177 filename = fname
--> 178 __builtin__.execfile(filename, *where)
/home/thiagovmlima/Software/NiftyRec/NiftyRec-2.0.1/apps/python_simple_phantom_example/simple_phantom_example.py in <module>()
118 for slice_index in range(M):
119 input_phantom_array[ 0:i.shape[0], slice_index, 0:i.shape[1] ]=i.astype(numpy.float32) # Put image array into the volume's slices
--> 120 NRsino=project(input_phantom_array, r.cameras, r.psf, r.attenuation, use_the_GPU) # Run et_project
121 print("Size of NiftyRec\'s sinogram:"+str(NRsino.shape))
122
/usr/lib/python2.7/site-packages/NiftyRec/NiftyRec.pyc in et_project(activity, cameras, psf, attenuation, gpu, background, background_attenuation, truncate_negative_values)
82 cameras = asarray(cameras,dtype=float32)
83
---> 84 L.et_array_project.restype = c_int
85 L.et_array_project.argtypes = [P(c_float), P(c_int), P(c_float), P(c_int), P(c_float), P(c_int), P(c_float), P(c_int), P(c_float), P(c_int), c_float, c_float, c_int, c_int]
86
/usr/lib64/python2.7/ctypes/__init__.pyc in __getattr__(self, name)
371 if name.startswith('__') and name.endswith('__'):
372 raise AttributeError(name)
--> 373 func = self.__getitem__(name)
374 setattr(self, name, func)
375 return func
/usr/lib64/python2.7/ctypes/__init__.pyc in __getitem__(self, name_or_ordinal)
376
377 def __getitem__(self, name_or_ordinal):
--> 378 func = self._FuncPtr((name_or_ordinal, self))
379 if not isinstance(name_or_ordinal, (int, long)):
380 func.__name__ = name_or_ordinal
AttributeError: /home/thiagovmlima/Software/NiftyRec/NiftyRec_install/lib/lib_et_array_interface.so: undefined symbol: et_array_project
Thank you for your help.
Thiago
|