VMD-L Mailing List
From: John Stone (johns_at_ks.uiuc.edu)
Date: Mon Mar 24 2003 - 10:47:19 CST
- Next message: Lubos Vrbka: "drawing bonds"
- Previous message: John Stone: "Re: Distance, angle"
- In reply to: Scott Stagg: "Can't import python math module"
- Next in thread: Lars Bruno Hansen: "python: error importing packages"
- Reply: Lars Bruno Hansen: "python: error importing packages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Scott,
At present I don't have an answer for you. We've had some similarly
odd problems importing modules on Linux, perhaps this is related.
Are you able to import any modules other than the math module?
Thanks,
John Stone
vmd_at_ks.uiuc.edu
On Fri, Mar 21, 2003 at 11:16:14AM -0500, Scott Stagg wrote:
> I am using VMD on Mac OS 10.2.4. After I "gopython", when I try to
> "import math", I get:
>
> Traceback (most recent call last):
> File "VMD", line 1, in ?
> ImportError: Failure linking new module
>
> I can "import sys" with no problem, and outside of the VMD interface I
> can "import math" with no problem. When I "print sys.path", this is
> what I get:
>
> ['', '/Users/sstagg/pylib', '/Applications/vmd-1.8/VMD
> 1.8.app/Contents/Resources/vmd/scripts/python',
> '/Applications/vmd-1.8/VMD
> 1.8.app/Contents/Resources/vmd/plugins/noarch/python',
> '/usr/lib/python2.2', '/usr/lib/python2.2/plat-darwin',
> '/usr/lib/python2.2/lib-tk', '/usr/lib/python2.2/lib-dynload',
> '/usr/lib/python2.2/site-packages']
>
> Anybody have any ideas how I can "import math"?
>
> Thanks,
> Scott
-- NIH Resource for Macromolecular Modeling and Bioinformatics Beckman Institute for Advanced Science and Technology University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801 Email: johns_at_ks.uiuc.edu Phone: 217-244-3349 WWW: http://www.ks.uiuc.edu/~johns/ Fax: 217-244-6078
- Next message: Lubos Vrbka: "drawing bonds"
- Previous message: John Stone: "Re: Distance, angle"
- In reply to: Scott Stagg: "Can't import python math module"
- Next in thread: Lars Bruno Hansen: "python: error importing packages"
- Reply: Lars Bruno Hansen: "python: error importing packages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]