VMD-L Mailing List
From: Justin Gullingsrud (justinrocks_at_gmail.com)
Date: Wed Apr 12 2006 - 19:02:22 CDT
- Next message: John Stone: "Re: python math library"
- Previous message: John Stone: "Re: a question about ribbon representation"
- In reply to: Grischa Meyer: "python math library"
- Next in thread: John Stone: "Re: python math library"
- Reply: John Stone: "Re: python math library"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Same thing happens to me - tar errors on unpack, and errors when I try
to import the math module. I verified that I'm indeed loading the
correct math shared library from the pylibs package. Here is the
output:
vmd > gopython
Info) Starting Python...
Numeric Python module _numpy not found; vmdnumpy module not available.
ImportError: Failure linking new module
Info) Text interpreter now Python
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/Applications/VMD
1.8.3.app/Contents/vmd/scripts/python/Tkinter.py", line 59, in ?
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter
>>> import math
Traceback (most recent call last):
File "VMD", line 1, in ?
File "VMD", line 1, in ?
ImportError: Failure linking new module
>>> import string
>>> string
<module 'string' from
'/Users/justin/Desktop/lib_MACOSX-numpy/lib/python2.2/string.pyc'>
>>>
The failure to load the numpy module is probably related to the
failure to load the math library.
Justin
On 4/11/06, Grischa Meyer <grischa_at_uq.edu.au> wrote:
> Hi,
>
> I am using VMD 1.8.3 and 1.8.4b11 on Mac OS X 10.4.6.
> I wrote a little python script that needs to do a sqrt, so needs the math
> library. How can I fix VMD to make it import it?
> I tried various things, including downloading the pylib package from the vmd
> site (which, btw, reports errors when untarring), but none was successful.
>
> Cheers,
> Grischa
>
> --
> Grischa Meyer, BSc (Hons)
> PhD student, Prof Boris Martinac Group
> School of Biomedical Sciences
> University of Queensland
> Brisbane, Australia
> phone: +61 7 3346 1224
> fax: +61 7 3365 1766 (attn. to me)
> http://www.uq.edu.au/sbms
-- Studying texts and stiff meditation can make you lose your Original Mind. A solitary tune by a fisherman, though, can be an invaluable treasure. Dusk rain on the river, the moon peeking in and out of the clouds; Elegant beyond words, he chants his songs night after night. -- Ikkyu, "The Fisherman"
- Next message: John Stone: "Re: python math library"
- Previous message: John Stone: "Re: a question about ribbon representation"
- In reply to: Grischa Meyer: "python math library"
- Next in thread: John Stone: "Re: python math library"
- Reply: John Stone: "Re: python math library"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]