<div class="gmail_quote">On Tue, Jun 29, 2010 at 10:35 PM, Andrew Martin <span dir="ltr"><<a href="mailto:amartin7211@gmail.com">amartin7211@gmail.com</a>></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 "escript version 3: Solution of Partial Differential Equations (PDE) using Finite Elements
(FEM)." 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>>>> import esys.escript<br>
<br>Traceback (most recent call last):<br> File "<pyshell#0>", line 1, in <module><br> import esys.escript<br>ImportError: Bad magic number in C:\Python26\lib\site-packages\esys\escript\__init__.pyc<br>
>>> <br><br>Can anybody lend me a hand?<br><br></blockquote><div>I don't know anything about escript, I'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'm assuming that there'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've run into on a couple of occasions. If it's something else...<br><br>Hope that helps.<br></div></div><br>-- <br><a href="http://www.fsrtechnologies.com">www.fsrtechnologies.com</a><br>