<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Felipe,<div><br></div><div>Did you try the solution Brad proposed the other day? &nbsp;For your reference, I'm posting it again below. &nbsp;Let us know if this works for you.</div><div><br></div><div>Cheers,</div><div>Charles</div><div><br></div><div>PyLith Windows users,<br><br>We appear to have a solution for those of you getting the error message&nbsp;<br>"ImportError: numpy.core.multiarray failed to import."<br>when trying to use the PyLith Windows binary. It looks like this error&nbsp;<br>arises from having another version of Python installed that interferes&nbsp;<br>with the Python included with PyLith. The solution is to set your&nbsp;<br>environment variables so that the shell doesn't see the existing Python&nbsp;<br>when you run PyLith.<br><br>1. Double click on the PyLith icon to get the cygwin terminal window for&nbsp;<br>Pylith.<br>2. Run "env &gt;&amp; env.log" and examine the env.log file for environment&nbsp;<br>variables related to Python.<br><br>3. Remove all environment variables related to Python and set the PATH&nbsp;<br>variable to the absolute minimum. For example:<br><br>unset PYTHON<br>unset PYTHON26<br>unset PYTHON27<br>unset PYTHONPATH<br>PATH=/usr/bin:/bin:/lib:/lib/lapack<br><br>4. You should now be able to use PyLith.<br><br>In general, you will need to perform steps 1 and 3 (but not 2) every&nbsp;<br>time you run PyLith. To add these commands to the PyLith startup script,&nbsp;<br>add the commands to the bottom of the .pylithrc file included in the&nbsp;<br>PyLith distribution. Usually this file is in Program Files (x86)/PyLith.&nbsp;<br>This shell script is run every time PyLith starts up.<br><br>Regards,<br>Brad<br>_______________________________________________<br>CIG-SHORT mailing list<br><a href="mailto:CIG-SHORT@geodynamics.org">CIG-SHORT@geodynamics.org</a><br><a href="http://geodynamics.org/cgi-bin/mailman/listinfo/cig-short">http://geodynamics.org/cgi-bin/mailman/listinfo/cig-short</a></div><div><br></div><div><br><div><div>On 14/06/2012, at 7:50 AM, <a href="mailto:f_orellana@berkeley.edu">f_orellana@berkeley.edu</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br> &nbsp;To the CIG short term dynamics community,<br><br> &nbsp;&nbsp;Hello, I am Felipe Orellana, here at UC Berkeley.<br><br> &nbsp;&nbsp;I have installed the new version (1.7.1) of Pylith, on a Windows 7<br>plattform using the binary file from your web site.<br><br> &nbsp;&nbsp;Unfortunately, when I try to run some examples of the tutorial I get<br>error messages like this:<br><br> ImportError: numpy.core.multiarray failed to import Traceback<br> &nbsp;&nbsp;&nbsp;&nbsp;File "/usr/bin/pylith" line...<br><br> &nbsp;&nbsp;....<br> &nbsp;then Error references to<br><br> &nbsp;&nbsp;&nbsp;&nbsp;File "/usr/lib/python2.6/site-packages/pylith/...<br><br><br> &nbsp;&nbsp;from just reading, it seems a problem linking files and folders when<br>the program runs.<br><br><br> &nbsp;&nbsp;mmm, i'll try to get an alternative solution for my problem, cause the<br>workshop is comming...<br><br> &nbsp;&nbsp;i appreciate your attention,<br><br>warm regards,<br>from the bay area<br><br>Felipe<br><br><br><blockquote type="cite">Greetings,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I am pleased to announce the release of PyLith 1.7.1, a finite-element<br></blockquote><blockquote type="cite">code designed to solve dynamic elastic problems and quasi-static<br></blockquote><blockquote type="cite">viscoelastic problems in tectonic deformation.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">This release fixes a couple of bugs in PyLith v1.7.0. The PyLith v1.7<br></blockquote><blockquote type="cite">release series adds several new features to PyLith, including (1)<br></blockquote><blockquote type="cite">user-friendly interface for computing Green's functions, (2) output of<br></blockquote><blockquote type="cite">solution field at user-specified locations, (3) plane strain version<br></blockquote><blockquote type="cite">of the Drucker-Prager elastoplastic rheology, (4) prescribed spatial<br></blockquote><blockquote type="cite">and temporal variation of fault tractions with spontaneous earthquake<br></blockquote><blockquote type="cite">ruptures, (5) ability to use PETSc GPU solvers, (6) user-specified<br></blockquote><blockquote type="cite">start time for simulations, and (7) elastic prestep in quasi-static<br></blockquote><blockquote type="cite">simulations is optional.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">We strongly recommend all users of previous PyLith releases switch to<br></blockquote><blockquote type="cite">this latest release. In addition to adding features this release also<br></blockquote><blockquote type="cite">fixes a minor parallel processing bug related to fault friction in<br></blockquote><blockquote type="cite">quasi-static simulations.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">See the README file for changes required to switch to the v1.7.x<br></blockquote><blockquote type="cite">release series from previous versions.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">You can download the source code and binaries from<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;<a href="http://geodynamics.org/cig/software/packages/short/pylith">http://geodynamics.org/cig/software/packages/short/pylith</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Detailed installation instructions for the binary packages are in the<br></blockquote><blockquote type="cite">User Manual with detailed building instructions for a few platforms in<br></blockquote><blockquote type="cite">the INSTALL file bundled with the PyLith Installer utility.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">RELEASE NOTES - PyLith v1.7.1<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">* Bug fixes<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;- Fixed a couple of bugs in the spontaneous earthquake rupture for<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;quasi-static problems when running in parallel. These prevented<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;the nonlinear solve from converging and erroneously generated<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;fault-opening in a some cases.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;- Minor updates to the documentation and manual. Added Green's<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;function examples to the manual.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">RELEASE NOTES - PyLith v1.7.0<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">* New features<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;* User-friendly interface for Green's functions<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;A new problem type provides a user-friendly interface for<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;computing Green's functions associated with fault slip for complex<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;spatial variation in elastic properties. See examples/2d/greensfns<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;in the tutorials for examples.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;* Output of solution field at user-specified locations<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;Added a new output manager for interpolation of the solution field<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;to user-specified point locations. This feature is useful for<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;comparison of the solution with observations and in computing<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;Green's functions. See examples/3d/hex8/step19 and<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;examples/2d/greensfns in the tutorials for examples.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;* Plane strain version of Drucker-Prager elastoplastic model<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;Added a plane strain version of the Drucker-Prager elastoplastic<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;model. Additionally, the user can now select whether to use an<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;inscribed, intermediate, or circumscribed fit to the Mohr Coulomb<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;criterion.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;* Spatial and temporal variation in tractions for spontaneous<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;earthquake rupture<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;Switched from a simple constant spatial variation in initial fault<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;tractions to the more flexible spatial and temporal variation<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;consistent with the Dirichlet, Neumann, and point force boundary<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;conditions. Also added a switch to turn on/off applying prescribed<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;fault tractions when the fault opens; the default behavior is to<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;stop applying prescribed fault tractions when the fault opens, but<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;turning this off allows simulation of dike intrusions via<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;prescribed fault tractions. See examples/3d/hex8/step20 in the<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;tutorials for an example of how to specify fault tractions with<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;the new implementation.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;* Ability to use PETSc GPU solvers<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;Added ability to build PyLith with either double (default) or<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;single precision floating point values to facilitate use of<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;GPUs. In order to use PETSc GPU solvers, CUDA and cusp must be<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;installed and PETSc must be configured to use CUDA. See the PyLith<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;manual and PETSc documentation for details.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;* User-specified start time for simulations.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;Users can set the simulation start time to any desired value. This<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;facilitates combining simulations to model the earthquake cycle.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;* Elastic prestep in quasi-static simulations is optional.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;The elastic prestep in quasi-static simulations can be skipped<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;(the default is to include the elastic prestep). This facilitates<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;combining simulations to model the earthquake cycle.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br><br>_______________________________________________<br>CIG-SHORT mailing list<br><a href="mailto:CIG-SHORT@geodynamics.org">CIG-SHORT@geodynamics.org</a><br>http://geodynamics.org/cgi-bin/mailman/listinfo/cig-short<br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Charles A. Williams</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Scientist<br>GNS Science<br>1 Fairway Drive, Avalon<br>PO Box 30368<br>Lower Hutt &nbsp;5040<br>New Zealand<br>ph (office): 0064-4570-4566<br>fax (office): 0064-4570-4600</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:C.Williams@gns.cri.nz">C.Williams@gns.cri.nz</a></div></div></div></span></span>
</div>
<br></div></body></html>