Hi Jon,

As far as I see, you're running Open-Souce PyMOL on some unix system. I suggest 
you install "idle" on the system, e.g. if this is Ubuntu, install
https://packages.ubuntu.com/xenial/idle-python2.7

Cheers,
  Thomas

> On Jun 2, 2017, at 7:30 PM, Luo, Jonathan Z. <jzl...@geisinger.edu> wrote:
> 
> Hi Thomas,
> Thanks for the reply. Didn't work, it just gave the same error message but 
> with "idlelib.TreeWidget" instead of "modules.idlelib.TreeWidget"
> Jon
> ________________________________________
> From: Thomas Holder <thomas.hol...@schrodinger.com>
> Sent: Friday, June 2, 2017 5:52 AM
> To: Luo, Jonathan Z.
> Cc: pymol-users@lists.sourceforge.net
> Subject: [External] Re: [PyMOL] Unable to initialize plugin annocryst
> 
> Hi Jon,
> 
> try this: In file "annocryst.py" on line 22, replace:
> 
> from modules.idlelib.TreeWidget import TreeItem, TreeNode
> 
> with:
> 
> from idlelib.TreeWidget import TreeItem, TreeNode
> 
> Hope that works for you.
> 
> Cheers,
>  Thomas
> 
> 
>> On Jun 1, 2017, at 7:03 PM, Luo, Jonathan Z. <jzl...@geisinger.edu> wrote:
>> 
>> Hello,
>> I've just installed pymol and am running into this error at startup:
>>    No module named modules.idlelib.TreeWidget
>>    ​Unable to initialize plugin 'annocryst' (pmg_tk.startup.annocryst)
>> 
>> When I try to import:
>> PyMOL>import pmg_tk.startup.annocryst
>> Traceback (most recent call last):
>>  File "/opt/pymol/modules/pymol/parser.py", line 262, in parse
>>    exec(layer.com2+"\n",self.pymol_names,self.pymol_names)
>>  File "<string>", line 1, in <module>
>>  File "/opt/pymol/Pymol-script-repo/plugins/annocryst.py", line 22, in 
>> <module>
>>    from modules.idlelib.TreeWidget import TreeItem, TreeNode
>> ImportError: No module named modules.idlelib.TreeWidget
>> 
>> I see it exists at /opt/pymol/Pymol-script-repo/modules/idlelib/TreeWidget.py
>> What should I do?
>> 
>> Thank you!
>> Jon

--
Thomas Holder
PyMOL Principal Developer
Schrödinger, Inc.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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