Newbie - ? get IDLE going on cygwin

D

David J. Braden

Hi, (from a total newbie w/ Python. Oh well.)

I can run Python in command-line mode fine from the cygwin shell; the
cygwin distribution also includes IDLE, which is apparently completely
installed, yet I am unable to get IDLE running. When I double-click
idle.bat (or idle.pyw) I am prompted to locate the program's creator.
Darn if I know what it is. If I try to invoke IDLE from cygwen bash, I
get "unable to remap c:\cygwin\bin\tk84.dll to same address as parent".

Obviously I don't know Unix (heck, any OS at a deep level), so this is
likely what creates the fog. Sorry.

Also - could someone plz recommend some useful environment variables for
Python on Windows? If I were to specify PYTHONDOC, should I use Unix or
Windows notation (e.g., "/" or "\").

Many thanks for helping me bootstrap into this.

Dave B
 
T

Thorsten Kampe

* David J. Braden (2006-09-12 18:35 +0100)
I can run Python in command-line mode fine from the cygwin shell; the
cygwin distribution also includes IDLE, which is apparently completely
installed, yet I am unable to get IDLE running. When I double-click
idle.bat (or idle.pyw) I am prompted to locate the program's creator.
Darn if I know what it is. If I try to invoke IDLE from cygwen bash, I
get "unable to remap c:\cygwin\bin\tk84.dll to same address as parent".

rebaseall
Also - could someone plz recommend some useful environment variables for
Python on Windows? If I were to specify PYTHONDOC, should I use Unix or
Windows notation (e.g., "/" or "\").

You can set them under Windows in Windows notation or in your shell
startup file in Unix notation.

Thorsten
 
D

David J. Braden

Thorsten said:
* David J. Braden (2006-09-12 18:35 +0100)

You can set them under Windows in Windows notation or in your shell
startup file in Unix notation.

Thorsten

Thanks, Thorsten. I assume you mean type in "idle rebaseall" (?) - seems
to bring up a window for a split second, then come back with same error
messages I had before. I cannot find in the IDLE doc any reference on
how to get it going under cygwin; could you please point me towards a
less-than-terse set of instructions?

Regards,
Dave B
 
J

Jason Tishler

Dave,

Thorsten said:
* David J. Braden (2006-09-12 18:35 +0100)

rebaseall
[snip]

Thanks, Thorsten. I assume you mean type in "idle rebaseall" (?) -
seems to bring up a window for a split second, then come back with
same error messages I had before. I cannot find in the IDLE doc any
reference on how to get it going under cygwin; could you please point
me towards a less-than-terse set of instructions?

Here's another terse response:

http://www.google.com/search?hl=en&q=unable+remap+same+address+parent&btnG=Google+Search

:,)

The following are excerpts from the rebase README:

The rebaseall utility is a convenient way for users that suffer from
the Cygwin rebase problem to rebase their entire system (i.e., all
of their DLLs). The following is a list of known Cygwin
applications that are affected by the rebase problem:

Apache
Perl
Python

The rebase problem is due to fork() failing when it is unable to
load DLLs in the child at the same address as in the parent. This
is caused by DLLs which have conflicting base addresses. An error
message like the following will be displayed when the problem is
triggered:

C:\cygwin\bin\python.exe: *** unable to remap C:\cygwin\bin\cygssl.dll
to same address as parent(0xDF0000) != 0xE00000

Use the following procedure to rebase your entire system:

1. shutdown all Cygwin processes and services
2. start ash (do not use bash or rxvt)
3. execute /bin/rebaseall (in the ash window)

BTW, idle has problems running under Cygwin Python:

http://sf.net/tracker/?func=detail&atid=105470&aid=786827&group_id=5470

Jason
 
D

David J. Braden

Jason said:
Dave,

Thorsten said:
* David J. Braden (2006-09-12 18:35 +0100)
I can run Python in command-line mode fine from the cygwin shell;
the cygwin distribution also includes IDLE, which is apparently
completely installed, yet I am unable to get IDLE running. When I
double-click idle.bat (or idle.pyw) I am prompted to locate the
program's creator. Darn if I know what it is. If I try to invoke
IDLE from cygwen bash, I get "unable to remap
c:\cygwin\bin\tk84.dll to same address as parent".
rebaseall
[snip]

Thanks, Thorsten. I assume you mean type in "idle rebaseall" (?) -
seems to bring up a window for a split second, then come back with
same error messages I had before. I cannot find in the IDLE doc any
reference on how to get it going under cygwin; could you please point
me towards a less-than-terse set of instructions?

Here's another terse response:

http://www.google.com/search?hl=en&q=unable+remap+same+address+parent&btnG=Google+Search

:,)

The following are excerpts from the rebase README:

The rebaseall utility is a convenient way for users that suffer from
the Cygwin rebase problem to rebase their entire system (i.e., all
of their DLLs). The following is a list of known Cygwin
applications that are affected by the rebase problem:

Apache
Perl
Python

The rebase problem is due to fork() failing when it is unable to
load DLLs in the child at the same address as in the parent. This
is caused by DLLs which have conflicting base addresses. An error
message like the following will be displayed when the problem is
triggered:

C:\cygwin\bin\python.exe: *** unable to remap C:\cygwin\bin\cygssl.dll
to same address as parent(0xDF0000) != 0xE00000

Use the following procedure to rebase your entire system:

1. shutdown all Cygwin processes and services
2. start ash (do not use bash or rxvt)
3. execute /bin/rebaseall (in the ash window)

BTW, idle has problems running under Cygwin Python:

http://sf.net/tracker/?func=detail&atid=105470&aid=786827&group_id=5470

Jason

Thanks, Jason. Your first cite cracked me up. I can now confirm that,
yes, IDLE pops up w/o menus under cygwin. Sheesh. Onward...

Regards,
DaveB
 
J

Jason Tishler

Dave,

I can now confirm that, yes, IDLE pops up w/o menus under cygwin.

You should be able to workaround this problem by executing idle with the
"-n" option:

$ idle -n

Jason
 
D

David J. Braden

Jason said:
Dave,



You should be able to workaround this problem by executing idle with the
"-n" option:

$ idle -n

Jason

Worked great. This "exercise" has also raised my comfort level with the
whole endeavor. To get rebaseall going, I was told to install the
*entire* cygwin package. Good time to paint a couple of rooms, clean the
gutters, ... But that install, plus your last suggestion, have me
further along, to be sure. I am really impressed by the number of tools
out there that work with, or were developed specifically for, Python.

Regards,
DaveB - /not/ a professional programmer. Just a very well-trained nerd.
 
F

Fredrik Lundh

David said:
Worked great. This "exercise" has also raised my comfort level with the
whole endeavor. To get rebaseall going, I was told to install the
*entire* cygwin package. Good time to paint a couple of rooms, clean the
gutters, ...

or get a more convenient distribution.

</F>
 
T

Thorsten Kampe

* David J. Braden (2006-09-14 04:58 +0100)
Worked great. This "exercise" has also raised my comfort level with the
whole endeavor. To get rebaseall going, I was told to install the
*entire* cygwin package.

Sorry, but that's nonsense. The only things you need for rebase are
rebase and ash. You shouldn't install everything if you plan to use
just a fraction...
 
D

David J. Braden

Thorsten said:
* David J. Braden (2006-09-14 04:58 +0100)

Sorry, but that's nonsense. The only things you need for rebase are
rebase and ash. You shouldn't install everything if you plan to use
just a fraction...

Thorsten - I agree with the last sentense, but I'm working totally in
the dark here; having *just* ash and rebaseall didn't do the trick on
the default setup I got with cygwin (it was unable to run - I forget the
err msg. Perhaps the default setup is mirror-specific? Dunno. In any
case, once I installed all, I /could/ use your initial suggestion, which
has worked out great. Many thanks!

Regards,
DaveB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,186
Latest member
vinaykumar_nevatia

Latest Threads

Top