<html>
<head>
</head>
<body class='hmmessage'><div dir='ltr'>


<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<div dir="ltr"><font class="Apple-style-span" size="3">Hi,</font><div><font class="Apple-style-span" size="3"><br></font></div><div><font class="Apple-style-span" size="3">I installed Pylith software &nbsp;(using the link;&nbsp;<a href="http://geodynamics.org/cig/software/pylith/pylith-1.6.2-darwin-10.6.8.tgz">pylith-1.6.2-darwin-10.6.8.tgz</a>) and ran set up file by source setup.sh. From tutorial file I tried to run .cfg file ( e.g.&nbsp;<span class="Apple-style-span" style="border-collapse: collapse; font-family: Monaco, 'Courier New', Courier, monospace; white-space: pre; "> <span class="highlightedSearchTerm" style="background-color: rgb(255, 255, 170); ">pylith</span> axialdisp.cfg). the error message comes as below;</span></font></div><div><br></div><div><div>ceriml09:pylith-1.6.2-darwin-10.6.8 msdhar$ source setup.sh&nbsp;</div><div>Ready to run PyLith.</div><div>ceriml09:pylith-1.6.2-darwin-10.6.8 msdhar$ cd s</div><div>setup.sh &nbsp;share/ &nbsp; &nbsp;src/ &nbsp; &nbsp; &nbsp;</div><div>ceriml09:pylith-1.6.2-darwin-10.6.8 msdhar$ cd src/pylith/examples/twocells/twot&nbsp;</div><div>twotet4/ &nbsp; &nbsp; &nbsp; &nbsp; twotet4-geoproj/ twotri3/ &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>ceriml09:pylith-1.6.2-darwin-10.6.8 msdhar$ cd src/pylith/examples/twocells/twotri3/</div><div><u><font class="Apple-style-span" color="#ff0000">ceriml09:twotri3 msdhar$ pylith axialdisp.cfg&nbsp;</font></u></div><div>'import site' failed; use -v for traceback</div><div>Traceback (most recent call last):</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/bin/pylith", line 28, in &lt;module&gt;</div><div>&nbsp; &nbsp; import os.path, sys, site</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site-packages/site.py", line 73, in &lt;module&gt;</div><div>&nbsp; &nbsp; __boot()</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site-packages/site.py", line 33, in __boot</div><div>&nbsp; &nbsp; imp.load_module('site',stream,path,descr)</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 525, in &lt;module&gt;</div><div>&nbsp; &nbsp; main()</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 508, in main</div><div>&nbsp; &nbsp; known_paths = addsitepackages(known_paths)</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 288, in addsitepackages</div><div>&nbsp; &nbsp; addsitedir(sitedir, known_paths)</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 185, in addsitedir</div><div>&nbsp; &nbsp; addpackage(sitedir, name, known_paths)</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 159, in addpackage</div><div>&nbsp; &nbsp; if not dircase in known_paths and os.path.exists(dir):</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/genericpath.py", line 18, in exists</div><div>&nbsp; &nbsp; st = os.stat(path)</div><div>TypeError: stat() argument 1 must be encoded string without NULL bytes, not str</div><div>ceriml09:twotri3 msdhar$ pyset</div><div>Ready to run PyLith.</div><div>ceriml09:pylith-1.6.2-darwin-10.6.8 msdhar$ pylith axialdisp.cfg</div><div>'import site' failed; use -v for traceback</div><div>Traceback (most recent call last):</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/bin/pylith", line 28, in &lt;module&gt;</div><div>&nbsp; &nbsp; import os.path, sys, site</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site-packages/site.py", line 73, in &lt;module&gt;</div><div>&nbsp; &nbsp; __boot()</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site-packages/site.py", line 33, in __boot</div><div>&nbsp; &nbsp; imp.load_module('site',stream,path,descr)</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 525, in &lt;module&gt;</div><div>&nbsp; &nbsp; main()</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 508, in main</div><div>&nbsp; &nbsp; known_paths = addsitepackages(known_paths)</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 288, in addsitepackages</div><div>&nbsp; &nbsp; addsitedir(sitedir, known_paths)</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 185, in addsitedir</div><div>&nbsp; &nbsp; addpackage(sitedir, name, known_paths)</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 159, in addpackage</div><div>&nbsp; &nbsp; if not dircase in known_paths and os.path.exists(dir):</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/genericpath.py", line 18, in exists</div><div>&nbsp; &nbsp; st = os.stat(path)</div><div>TypeError: stat() argument 1 must be encoded string without NULL bytes, not str</div><div>ceriml09:pylith-1.6.2-darwin-10.6.8 msdhar$ cd src/pylith/examples/twocells/twotri3/</div><div>ceriml09:twotri3 msdhar$ pylith axialdisp.cfg</div><div>'import site' failed; use -v for traceback</div><div>Traceback (most recent call last):</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/bin/pylith", line 28, in &lt;module&gt;</div><div>&nbsp; &nbsp; import os.path, sys, site</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site-packages/site.py", line 73, in &lt;module&gt;</div><div>&nbsp; &nbsp; __boot()</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site-packages/site.py", line 33, in __boot</div><div>&nbsp; &nbsp; imp.load_module('site',stream,path,descr)</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 525, in &lt;module&gt;</div><div>&nbsp; &nbsp; main()</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 508, in main</div><div>&nbsp; &nbsp; known_paths = addsitepackages(known_paths)</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 288, in addsitepackages</div><div>&nbsp; &nbsp; addsitedir(sitedir, known_paths)</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 185, in addsitedir</div><div>&nbsp; &nbsp; addpackage(sitedir, name, known_paths)</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/site.py", line 159, in addpackage</div><div>&nbsp; &nbsp; if not dircase in known_paths and os.path.exists(dir):</div><div>&nbsp; File "/gaia/home/msdhar/pylith/pylith-1.6.2-darwin-10.6.8/lib/python2.6/genericpath.py", line 18, in exists</div><div>&nbsp; &nbsp; st = os.stat(path)</div><div>TypeError: stat() argument 1 must be encoded string without NULL bytes, not str</div><div>ceriml09:twotri3 msdhar$&nbsp;</div><div><br></div><div><font class="Apple-style-span" size="3">How do I fix this? I am using MAC OS X Version 10.6.8.</font></div><font class="Apple-style-span" size="3"><br>&nbsp;sincerely,</font></div><div><font class="Apple-style-span" size="3">mahesh</font><br>&nbsp;<br><a href="http://wolfweb.unr.edu/homepage/mdhar/grad10.htm" target="_blank">Mahesh Singh Dhar</a> <br><a href="http://memphis.edu/des/" target="_blank">Center For Earthquake and Research and Information<br>Department of Earth Sciences</a><br><a href="http://www.memphis.edu" target="_blank">University of Memphis</a><br>TN, 38152<br>
Cell : 1 775 303 2045<br><br></div></div>
                                               </div></body>
</html>