jaredsampson / pymolprobity

A MolProbity-style visualization plugin for PyMOL
MIT License
11 stars 3 forks source link

AttributeError: 'NoneType' object has no attribute '_root' #10

Closed rafaeltiveron closed 5 years ago

rafaeltiveron commented 5 years ago

I've installed PyMOLProbity. But, when I load plugin, I receive this:

Traceback (most recent call last):
  File "/root/pymol/lib/python2.7/site-packages/pmg_tk/startup/pymolprobity/__init__.py", line 51, in <lambda>
    command = lambda s=self: gui.PyMOLProbity(s))
  File "/root/pymol/lib/python2.7/site-packages/pmg_tk/startup/pymolprobity/gui.py", line 526, in __init__
    mpobj = tk.StringVar()
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 344, in __init__
    Variable.__init__(self, master, value, name)
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 244, in __init__
    self._root = master._root()
AttributeError: 'NoneType' object has no attribute '_root'
Exception AttributeError: "StringVar instance has no attribute '_tk'" in <bound method StringVar.__del__ of <Tkinter.StringVar instance at 0x7f3774e25248>> ignored

What is the problem?

jaredsampson commented 5 years ago

What version of PyMOL are you using?

rafaeltiveron commented 5 years ago

PyMOL 2.1.0

rafaeltiveron commented 5 years ago

Sorry, I installed v1.2 from "Release" tab. When I installed from "master-zip", it worked.

jaredsampson commented 5 years ago

Ok, glad to hear it. Although I suppose that means I should bump the version to avoid that problem. Thanks for mentioning it.