<div class="gmail_quote">On Tue, Jun 29, 2010 at 10:35 PM, Andrew Martin <span dir="ltr">&lt;<a href="mailto:amartin7211@gmail.com">amartin7211@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I just downloaded Python 2.6.5 onto my windows vista laptop. I am attempting to install &quot;escript version 3: Solution of Partial Differential Equations (PDE) using Finite Elements 
(FEM).&quot; I downloaded the files and manually placed them in their appropriately place on my computer according to the ReadMe file. However, when I try to import escript, I get an error:<br><br>&gt;&gt;&gt; import esys.escript<br>


<br>Traceback (most recent call last):<br>  File &quot;&lt;pyshell#0&gt;&quot;, line 1, in &lt;module&gt;<br>    import esys.escript<br>ImportError: Bad magic number in C:\Python26\lib\site-packages\esys\escript\__init__.pyc<br>


&gt;&gt;&gt; <br><br>Can anybody lend me a hand?<br><br></blockquote><div>I don&#39;t know anything about escript, I&#39;m afraid, but try this  - .pyc files are always replaceable, as long as the .py or .pyw files they correspond to still exist.  So delete __init__.pyc (I&#39;m assuming that there&#39;s also a __init__.py file) and try again.<br>
<br>Of course, this is only a solution if the problem is a corrupt .pyc file, which I&#39;ve run into on a couple of occasions.  If it&#39;s something else...<br><br>Hope that helps.<br></div></div><br>-- <br><a href="http://www.fsrtechnologies.com">www.fsrtechnologies.com</a><br>