[Insight-users] making wrap_itk work in a restricted environment
ANIRUDH VIJ
ee05b077 at smail.iitm.ac.in
Thu May 17 10:04:35 EDT 2007
hi,
I am in an environment where i only have access to my home folder.
I compiled itk and the Wrap_ITK python wrappers.But i cannot do a 'make
install' in /usr/local.
itk is compiled in /home/work/itk_build.The .pth file also can't be placed in
/usr/lib/python because of restricted user rights.
I can do a 'import itk' correctly on starting ipython from
'/home/work/itk_build/Wrapping/Wrap_ITK'.
But initially itk could'nt find libSwigRuntime.so which existed in
'itk_build/bin' .So i did a 'export
LD_LIBRARY_PATH=/home/work/itk_build/bin/'.But 'ldconfig' does'nt work because
it needs write permissions to /etc.
Now,on instantiating anything in itk,i get this error:
/home/work/itk_build/Wrapping/WrapITK/Python/<console>
/home/work/itk_build/Wrapping/WrapITK/Python/itkLazy.py in
__getattribute__(self, attr)
16 module = self.__lazy_attributes[attr]
17 namespace = {}
---> 18 itkBase.LoadModule(module, namespace)
19 # Load into 'namespace' first, then self.__dict__ (via setattr) to
20 # prevent the warnings about overwriting the 'NotLoaded' values
already
/home/work/itk_build/Wrapping/WrapITK/Python/itkBase.py in LoadModule(name,
namespace)
22 if namespace is not None:
23 swig = namespace.setdefault('swig', imp.new_module('swig'))
---> 24 swig.__dict__.update(this_module.swig.__dict__)
25
26 # don't worry about overwriting the symbols in namespace --
any common
AttributeError: 'module' object has no attribute 'swig'
How could this be resolved,if a 'make install' is not possible?
More information about the Insight-users
mailing list