From: Craig Maloney (cmaloney_at_kitp.ucsb.edu)
Date: Tue Nov 01 2005 - 15:50:10 CST

Hi all.

I was wondering if anyone might understand why the embedded python
interpreter can't find the math module. I haven't checked
extensively for other modules, but sys.path looks right, and sys
itself will load.

The only thing that looks like might not be right is that the fink on
my machine has python2.2.3 and the embedded python in VMD says it is
2.2.2. But the modules should be compatible, right?

Thanks,
Craig

----------------------- plain ole' python2.2 session
---------------------------
Python 2.2.3 (#1, May 23 2005, 11:52:16)
[GCC 4.0.0 20041026 (Apple Computer, Inc. build 4061)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.version
'2.2.3 (#1, May 23 2005, 11:52:16) \n[GCC 4.0.0 20041026 (Apple
Computer, Inc. b
uild 4061)]'
>>> sys.path
['', '/sw/lib/python2.2', '/sw/lib/python2.2/plat-darwin', '/sw/lib/
python2.2/li
b-tk', '/sw/lib/python2.2/lib-dynload', '/sw/lib/python2.2/site-
packages', '/sw/
lib/python2.2/site-packages/Numeric']
>>> import math
>>>

----------------------- VMD session ---------------------------------
Info) VMD for MACOSX, version 1.8.3 (February 15, 2005)
Info) http://www.ks.uiuc.edu/Research/vmd/
Info) Email questions and bug reports to vmd_at_ks.uiuc.edu
Info) Please include this reference in published work using VMD:
Info) Humphrey, W., Dalke, A. and Schulten, K., `VMD - Visual
Info) Molecular Dynamics', J. Molec. Graphics 1996, 14.1, 33-38.
Info) -------------------------------------------------------------
Info) Multithreading available, 1 CPU detected.
Info) OpenGL renderer: NVIDIA GeForce4 MX OpenGL Engine
Info) Features: STENCIL RN
Info) Textures: 2-D (2048x2048)
vmd >
vmd > gopython
Info) Starting Python...
Could not find Numeric Python version 22.0.
Traceback (most recent call last):
   File "<string>", line 1, in ?
ImportError: No module named VMD
Info) Text interpreter now Python
Traceback (most recent call last):
   File "<string>", line 1, in ?
   File "/sw/lib/python2.2/lib-tk/Tkinter.py", line 35, in ?
     import _tkinter # If this fails your Python may not be
configured for Tk
ImportError: Failure linking new module
>>> import math
Traceback (most recent call last):
   File "VMD", line 1, in ?
ImportError: Failure linking new module
>>> import sys
>>> sys.path
['/Applications/VMD 1.8.3.app/Contents/Resources/VMD.app/Contents/
MacOS/../../..
/../vmd', '/Network/Servers/buckland.itp.ucsb.edu/Volumes/u1/visitors/
cmaloney/p
rojects/working/code/pizza/pizza-7Sep05/src', '/Applications/VMD
1.8.3.app/Conte
nts/vmd/plugins/noarch/python', '/sw/lib/python2.2', '/sw/lib/
python2.2/plat-dar
win', '/sw/lib/python2.2/lib-tk', '/sw/lib/python2.2/lib-dynload', '/
sw/lib/pyth
on2.2/site-packages', '/sw/lib/python2.2/site-packages/Numeric']
>>> sys.version
'2.2.2 (#1, Jun 11 2004, 14:59:37) \n[GCC 3.1 20020420 (prerelease)]'
>>>