Hey Thanks a tonne Alan
After your tip , I got fink IDLE to load pymol without any problem . I also
got my home gentoo linux python 2.5 and idle to load pymol the same way.
Now I have full code completion to write up my pymol scripts if I idle
correctly.

On an academic note, Just wondering why the Mac idle2.5 goofs up. I read
something about idle running on a tkinter thread and pymol wanting to do the
same thing. Anyways I guess the solution to the problem is to install fink
on all macs in cases where I want to use IDLE for pymol script writing.

Thanks again
Hari Jayaram


On Tue, Jun 10, 2008 at 2:47 AM, Alan <alanwil...@gmail.com> wrote:

> Hi,
> Instead of using Mac IDLE, use Fink IDLE:
>  which idle2.5
> /sw/bin/idle2.5
>
> It works!
>
> Cheers,
> Alan
>
> On Tue, Jun 10, 2008 at 1:25 AM, <
> pymol-users-requ...@lists.sourceforge.net> wrote:
>
>
>> Date: Wed, 4 Jun 2008 11:24:16 -0400
>> From: "hari jayaram" <hari...@gmail.com>
>> Subject: [PyMOL] launch pymol from inside an IDLE ( python-ide)
>>        interactive     shell ?
>> To: pymol-users@lists.sourceforge.net
>> Message-ID:
>>        <aad3caa30806040824p50f877e3n419882e30730d...@mail.gmail.com>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> Hi I am trying to use python from inside of the idle (IDLE) IDE that is
>> part
>> of the MacPython 2.5.2 additional packages as IDLE.app.
>> The reason I want to do this is because I really want to get an IDE (
>> integrated development environment ) with good code completion on all
>> modules including maybe pymol.
>>
>> In any case when I do the following (see attached
>> png<http://code-itch.s3.amazonaws.com/images/idle_pymol_how.jpg>
>> )
>>
>> 1) Start IDLE and then in the IDLE shell I do
>> 2)  Import my fink python after adding it to my path
>>
>>        import sys
>>        sys.path.append("/sw/lib/pymol-py25/modules")
>>        import pymol
>>
>> After that command I see that the idle Python shell waits for a little bit
>> and then I see  =====restart==== .and no pymol window appears
>> Also when I try running pymol.finish_launching()
>>
>> It says pymol is not defined.
>>
>> I have tried reading some of the posts about how the import pymol method
>> is
>> the least supported method for launching pymol. I should add that on my
>> setup i.e Leopard 10.5.2 with fink pymol-py25 the above approach works
>> from
>> a standalone script as well as from a python interactive shell from
>> terminal.app or Item.app . Sadly both of these dont have popup code
>> completion..
>>
>> But I was wondering if there is some way to have my cake and eat it too
>> and
>> interact with pymol from within an IDLE shell window.
>>
>> Hari Jayaram
>>
> --
> Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate
> Department of Biochemistry, University of Cambridge.
> 80 Tennis Court Road, Cambridge CB2 1GA, UK.
> >>http://www.bio.cam.ac.uk/~awd28 <http://www.bio.cam.ac.uk/%7Eawd28><<
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> PyMOL-users mailing list
> PyMOL-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pymol-users
>
>

Reply via email to