Error while importing pyplasm in femhub

68 views
Skip to first unread message

Aayush Poudel

unread,
Jun 6, 2011, 12:45:13 PM6/6/11
to femhub
I am able to build pyplasm in femhub 
but when I tried to run the following code
from pyplasm import *

I am getting the following error, can anyone suggest why I am getting this error even after pyplasm builds and install without error in femhub ?


/home/aayush/Desktop/femhub/<ipython console> in <module>()

/home/aayush/Desktop/femhub/local/lib/python2.6/site-packages/pyplasm/__init__.py in <module>()
----> 1 from fenvs import *

/home/aayush/Desktop/femhub/local/lib/python2.6/site-packages/pyplasm/fenvs.py in <module>()
     16 print __file__
     17 
---> 18 from pyplasm.xge import *
     19 
     20

/home/aayush/Desktop/femhub/local/lib/python2.6/site-packages/pyplasm/xge/__init__.py in <module>()
     20 Glu=OpenGL.GLU
     21 Glut=OpenGL.GLUT
---> 22 from xgepy import *
     23 BOOL_CODE_OR   = Plasm.BOOL_CODE_OR
     24 BOOL_CODE_AND = Plasm.BOOL_CODE_AND

/home/aayush/Desktop/femhub/local/lib/python2.6/site-packages/pyplasm/xge/xgepy.py in <module>()
     23                 fp.close()
     24             return _mod
---> 25     _xgepy = swig_import_helper()
     26     del swig_import_helper
     27 else:

/home/aayush/Desktop/femhub/local/lib/python2.6/site-packages/pyplasm/xge/xgepy.py in swig_import_helper()
     19         if fp is not None:
     20             try:
---> 21                 _mod = imp.load_module('_xgepy', fp, pathname, description)
     22             finally:
     23                 fp.close()

ImportError: libxge.so: cannot open shared object file: No such file or directory


Thanks,
Aayush Poudel
http://www.aayushpoudel.info


Pavel Solin

unread,
Jun 6, 2011, 4:21:03 PM6/6/11
to fem...@googlegroups.com, Aayush
Federico Spini wrote me the following when I reported exact the same 
problem some time ago:

 Dear prof. Solin,

normally it can't locate libxge.so library, so you should every time define and export LD_LIBRARY_PATH variable. In a shell type:       
        export LD_LIBRARY_PATH=<python2.7 dist-packages dir>/pyplasm/xge

(otherwise you can put the line above in /etc/profile once)


...and this should be the last step!
 


Thanks,
Aayush Poudel
http://www.aayushpoudel.info


--
You received this message because you are subscribed to the Google Groups "femhub" group.
To post to this group, send email to fem...@googlegroups.com.
To unsubscribe from this group, send email to femhub+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/femhub?hl=en.



--
Pavel Solin
University of Nevada, Reno
Home page: http://hpfem.org/~pavel
FEMTEC 2011: http://hpfem.org/events/femtec-2011/
Hermes: http://hpfem.org/
FEMhub: http://femhub.org/
Reply all
Reply to author
Forward
0 new messages