Hi,

When I run the following code, it gives me an error that I don’t understand.

# -*- coding: utf-8 -*-
import random
import pymol
from pymol import cmd, stored
from pymol.exporting import _resn_to_aa as one_letter




def test():
  objSel="protein"
  cmd.fetch('1zv4',objSel)

  print "now im here"

test()


The error it gives is:

Traceback (most recent call last):
  File "testNeig.py", line 16, in <module>
    test()
  File "testNeig.py", line 12, in test
    cmd.fetch('1zv4',objSel)
  File "/usr/lib64/python2.6/site-packages/pymol/importing.py", line 1399, in 
fetch
    path = setting.get('fetch_path',_self=_self) or '.'
  File "/usr/lib64/python2.6/site-packages/pymol/setting.py", line 1306, in get
    _self.unlock(r,_self)
  File "/usr/lib64/python2.6/site-packages/pymol/locking.py", line 79, in unlock
    if (thread.get_ident() == pymol.glutThread):
AttributeError: 'module' object has no attribute 'glutThread'

What am I missing?

Thank you,
Irem
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to