Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #43079 > unrolled thread

Interactrive Python under Cygwin in Win7

Started byGrant Edwards <invalid@invalid.invalid>
First post2013-04-08 15:20 +0000
Last post2013-04-08 20:39 +0000
Articles 3 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  Interactrive Python under Cygwin in Win7 Grant Edwards <invalid@invalid.invalid> - 2013-04-08 15:20 +0000
    Re: Interactrive Python under Cygwin in Win7 David Robinow <drobinow@gmail.com> - 2013-04-08 16:30 -0400
      Re: Interactrive Python under Cygwin in Win7 Grant Edwards <invalid@invalid.invalid> - 2013-04-08 20:39 +0000

#43079 — Interactrive Python under Cygwin in Win7

FromGrant Edwards <invalid@invalid.invalid>
Date2013-04-08 15:20 +0000
SubjectInteractrive Python under Cygwin in Win7
Message-ID<kjun7f$5fr$1@reader1.panix.com>
I just installed ActiveState 2.7 64-bit on a Windows 7 machine running
a current version of Cygwin.  While python programs (both GUI and
text-mode) run fine, I'm unable to use Python interactively from
either the Cygwin terminal or in an ssh session.  I tried adding the
"-u" option, but that makes no difference.  Interactive C-Python just
hangs on startup.

Is this bug specific to ActiveState Python, or is it also present in
the vanilla C-Python build for Windows?

-- 
Grant Edwards               grant.b.edwards        Yow! I want you to MEMORIZE
                                  at               the collected poems of
                              gmail.com            EDNA ST VINCENT MILLAY
                                                   ... BACKWARDS!!

[toc] | [next] | [standalone]


#43090

FromDavid Robinow <drobinow@gmail.com>
Date2013-04-08 16:30 -0400
Message-ID<mailman.301.1365453066.3114.python-list@python.org>
In reply to#43079

[Multipart message — attachments visible in raw view] — view raw

On Mon, Apr 8, 2013 at 11:20 AM, Grant Edwards <invalid@invalid.invalid>wrote:

> I just installed ActiveState 2.7 64-bit on a Windows 7 machine running
> a current version of Cygwin.  While python programs (both GUI and
> text-mode) run fine, I'm unable to use Python interactively from
> either the Cygwin terminal or in an ssh session.  I tried adding the
> "-u" option, but that makes no difference.  Interactive C-Python just
> hangs on startup.
>
> Is this bug specific to ActiveState Python, or is it also present in
> the vanilla C-Python build for Windows?
>
>
It's present in the "vanilla" build. I assume you're running mintty as I
do.
I just use the cygwin build for fooling around with python, and [WARNING:
hold your nose] the cmd shell when I need Windows Python.
You can also use the (old-fashioned?) cygwin.bat do start cygwin which
doesn't give you as nice a terminal but does allow you to run bash and
"/c/Python27/Python" interactively.

Another option, which I just discovered, is bash under msys. It's been a
while since I've used it so I can't remember the pro and con but you can
run an interactive Windows python.

[toc] | [prev] | [next] | [standalone]


#43091

FromGrant Edwards <invalid@invalid.invalid>
Date2013-04-08 20:39 +0000
Message-ID<kjv9tp$358$1@reader1.panix.com>
In reply to#43090
On 2013-04-08, David Robinow <drobinow@gmail.com> wrote:
> On Mon, Apr 8, 2013 at 11:20 AM, Grant Edwards <invalid@invalid.invalid>wrote:
>
>> I just installed ActiveState 2.7 64-bit on a Windows 7 machine running
>> a current version of Cygwin.  While python programs (both GUI and
>> text-mode) run fine, I'm unable to use Python interactively from
>> either the Cygwin terminal or in an ssh session.  I tried adding the
>> "-u" option, but that makes no difference.  Interactive C-Python just
>> hangs on startup.
>>
>> Is this bug specific to ActiveState Python, or is it also present in
>> the vanilla C-Python build for Windows?
>
> It's present in the "vanilla" build. I assume you're running mintty
> as I do.

That's what I usually run when I'm not ssh'ed in.

> I just use the cygwin build for fooling around with python, and
> [WARNING: hold your nose] the cmd shell when I need Windows Python.

Yea, that's what I finally fell back on.  At least it has command line
recall/editing, so it could be worse.  I do almost all of my
development on Linux and rarely do anything interactive under
Windows, but once in a while it would be handy.

> You can also use the (old-fashioned?) cygwin.bat do start cygwin
> which doesn't give you as nice a terminal but does allow you to run
> bash and "/c/Python27/Python" interactively.
>
> Another option, which I just discovered, is bash under msys. It's been a
> while since I've used it so I can't remember the pro and con but you can
> run an interactive Windows python.

Oh yea, I had forgotten about msys.

-- 
Grant Edwards               grant.b.edwards        Yow! I'm having an
                                  at               emotional outburst!!
                              gmail.com            

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web