[CIG-SHORT] Error on running .cfg files

Mahesh S Dhar maheshdhar at hotmail.com
Fri Feb 10 13:15:56 PST 2012





Hi,
I installed Pylith software  (using the link; pylith-1.6.2-darwin-10.6.8.tgz) and ran set up file by source setup.sh. From tutorial file I tried to run .cfg file ( e.g.  pylith axialdisp.cfg). the error message comes as below;
ceriml09:pylith-1.6.2-darwin-10.6.8 msdhar$ source setup.sh Ready to run PyLith.ceriml09:pylith-1.6.2-darwin-10.6.8 msdhar$ cd ssetup.sh  share/    src/      ceriml09:pylith-1.6.2-darwin-10.6.8 msdhar$ cd src/pylith/examples/twocells/twot twotet4/         twotet4-geoproj/ twotri3/         ceriml09:pylith-1.6.2-darwin-10.6.8 msdhar$ cd src/pylith/examples/twocells/twotri3/ceriml09:twotri3 msdhar$ pylith axialdisp.cfg 'import site' failed; use -v for tracebackTraceback (most recent call last):  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/bin/pylith", line 28, in <module>    import os.path, sys, site  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site-packages/site.py", line 73, in <module>    __boot()  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site-packages/site.py", line 33, in __boot    imp.load_module('site',stream,path,descr)  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 525, in <module>    main()  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 508, in main    known_paths = addsitepackages(known_paths)  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 288, in addsitepackages    addsitedir(sitedir, known_paths)  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 185, in addsitedir    addpackage(sitedir, name, known_paths)  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 159, in addpackage    if not dircase in known_paths and os.path.exists(dir):  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/genericpath.py", line 18, in exists    st = os.stat(path)TypeError: stat() argument 1 must be encoded string without NULL bytes, not strceriml09:twotri3 msdhar$ pysetReady to run PyLith.ceriml09:pylith-1.6.2-darwin-10.6.8 msdhar$ pylith axialdisp.cfg'import site' failed; use -v for tracebackTraceback (most recent call last):  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/bin/pylith", line 28, in <module>    import os.path, sys, site  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site-packages/site.py", line 73, in <module>    __boot()  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site-packages/site.py", line 33, in __boot    imp.load_module('site',stream,path,descr)  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 525, in <module>    main()  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 508, in main    known_paths = addsitepackages(known_paths)  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 288, in addsitepackages    addsitedir(sitedir, known_paths)  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 185, in addsitedir    addpackage(sitedir, name, known_paths)  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 159, in addpackage    if not dircase in known_paths and os.path.exists(dir):  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/genericpath.py", line 18, in exists    st = os.stat(path)TypeError: stat() argument 1 must be encoded string without NULL bytes, not strceriml09:pylith-1.6.2-darwin-10.6.8 msdhar$ cd src/pylith/examples/twocells/twotri3/ceriml09:twotri3 msdhar$ pylith axialdisp.cfg'import site' failed; use -v for tracebackTraceback (most recent call last):  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/bin/pylith", line 28, in <module>    import os.path, sys, site  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site-packages/site.py", line 73, in <module>    __boot()  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site-packages/site.py", line 33, in __boot    imp.load_module('site',stream,path,descr)  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 525, in <module>    main()  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 508, in main    known_paths = addsitepackages(known_paths)  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 288, in addsitepackages    addsitedir(sitedir, known_paths)  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 185, in addsitedir    addpackage(sitedir, name, known_paths)  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 159, in addpackage    if not dircase in known_paths and os.path.exists(dir):  File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/genericpath.py", line 18, in exists    st = os.stat(path)TypeError: stat() argument 1 must be encoded string without NULL bytes, not strceriml09:twotri3 msdhar$ 
How do I fix this? I am using MAC OS X Version 10.6.8.
 sincerely,mahesh
 
Mahesh Singh Dhar 
Center For Earthquake and Research and Information
Department of Earth Sciences
University of Memphis
TN, 38152

Cell : 1 775 303 2045


 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://geodynamics.org/pipermail/cig-short/attachments/20120210/9cf0e5b6/attachment.htm 


More information about the CIG-SHORT mailing list