Hello Matthew, This is neither an OpenBabel nor a PyMol problem. If you look at the error message carefully, you will see it's accessing a file new.py on your Desktop (presumably you have added this to the PYTHONPATH), and this is causing the problem.
new.py is replacing the "new" module that is part of Python so that "from new import instancemethod as new_instancemethod" is messed up. - Noel 2009/12/15 Matthew Walsh <wals...@purdue.edu>: > Hello, > > I recently encountered the error "ImportError: No module named > Tkinter" when I imported openbabel to python. After installing > Tkinter, I then encountered "ImportError: No module named pymol." > > Considering openbabel worked brilliantly on this machine for months > and that these modules are meant to be optional, I suspect there is a > deeper problem. Although, it is not obvious to me what it could be. > > I reinstalled the latest version of openbabel and the problem persists. > > Here is the full text of the error: > > Traceback (most recent call last): > File "prep_moad.py", line 6, in ? > import openbabel > File > "/home/walshmj/projects/sources/lib/python2.4/site-packages/openbabel.py", > line 19, in ? > from new import instancemethod as new_instancemethod > File "/mnt/lar/home/walshmj/Desktop/new.py", line 7, in ? > from pymol import cmd, stored, util > ImportError: No module named pymol > > If you can tell what is going wrong, please get back to me. > > Thanks for your help, > Matt Walsh > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > OpenBabel-discuss mailing list > OpenBabel-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openbabel-discuss > ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss