Development

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Python on a mac: how to build pythonw?

    5 answers - 1006 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    I'm trying to run the Python examples distributed with XCode and they
    all give me the same error:
    Traceback (most recent call last):
    File "checktext.py", line 35, in <module>
    main()
    File "checktext.py", line 8, in main
    pathname = EasyDialogs.AskFileF(message='File to check
    end-of-lines in:')
    File "/", line 650, in
    AskFileF
    _interact()
    File "/", line 53, in
    _interact
    AE.AEInteractWithUser(50000000)
    MS.Error: (-1713, 'no user interaction is allowed')
    Googling reveals that the answer is to use pythonw, but there is no such
    thing installed on my system:
    [ron@mickey:~]$ pythonw
    -bash: pythonw: command not found
    Apparently, pythonw didn't get built when I installed Python 2.5, and I
    can't find any instructions on how to build it. (The installation
    instructions don't seem to mention it.)
    If anyone could spare a clue I would be most grateful.
    Thank,
    rg
  • No.1 | | 1413 bytes | |

    Ron Garret wrote:
    I'm trying to run the Python examples distributed with XCode and they
    all give me the same error:

    Traceback (most recent call last):
    File "checktext.py", line 35, in <module>
    main()
    File "checktext.py", line 8, in main
    pathname = EasyDialogs.AskFileF(message='File to check
    end-of-lines in:')
    File "/", line 650, in
    AskFileF
    _interact()
    File "/", line 53, in
    _interact
    AE.AEInteractWithUser(50000000)
    MS.Error: (-1713, 'no user interaction is allowed')

    Googling reveals that the answer is to use pythonw, but there is no such
    thing installed on my system:

    [ron@mickey:~]$ pythonw
    -bash: pythonw: command not found

    Apparently, pythonw didn't get built when I installed Python 2.5, and I
    can't find any instructions on how to build it. (The installation
    instructions don't seem to mention it.)

    It looks like you built Python yourself. The default build does not allow you to
    communicate with the Apple GUI. You need a framework build. I highly recommend
    that you simply use the binary on www.python.org instead of building from
    source. If you do want to build from source, please read the file Mac/README for
    instructions.

    Note that in recent versions of Python, I believe that the pythonw executable is
    no longer necessary as a workaround.
  • No.2 | | 1643 bytes | |

    In article <@python.org>,
    Robert Kern <robert.kern (AT) gmail (DOT) comwrote:

    Ron Garret wrote:
    I'm trying to run the Python examples distributed with XCode and they
    all give me the same error:

    Traceback (most recent call last):
    File "checktext.py", line 35, in <module>
    main()
    File "checktext.py", line 8, in main
    pathname = EasyDialogs.AskFileF(message='File to check
    end-of-lines in:')
    File "/", line 650, in
    AskFileF
    _interact()
    File "/", line 53, in
    _interact
    AE.AEInteractWithUser(50000000)
    MS.Error: (-1713, 'no user interaction is allowed')

    Googling reveals that the answer is to use pythonw, but there is no such
    thing installed on my system:

    [ron@mickey:~]$ pythonw
    -bash: pythonw: command not found

    Apparently, pythonw didn't get built when I installed Python 2.5, and I
    can't find any instructions on how to build it. (The installation
    instructions don't seem to mention it.)

    It looks like you built Python yourself.

    Yep. I'm a do-it-yourself kind of guy :-)

    The default build does not allow you to
    communicate with the Apple GUI. You need a framework build. I highly
    recommend
    that you simply use the binary on www.python.org instead of building from
    source. If you do want to build from source, please read the file Mac/README
    for instructions.

    Note that in recent versions of Python, I believe that the pythonw executable
    is no longer necessary as a workaround.

    How recent? I'm already using 2.5.

    Thanks!
    rg
  • No.3 | | 482 bytes | |

    Ron Garret wrote:
    In article <@python.org>,
    Robert Kern <robert.kern (AT) gmail (DOT) comwrote:

    >Note that in recent versions of Python, I believe that the pythonw executable
    >is no longer necessary as a workaround.


    How recent? I'm already using 2.5.

    2.5 definitely works. I think it might have been one of the Universal builds of
    2.4 where it started working, but my memory is a bit hazy on that point.
  • No.4 | | 541 bytes | |

    In article <@python.org>,
    Robert Kern <robert.kern (AT) gmail (DOT) comwrote:

    Ron Garret wrote:
    In article <@python.org>,
    Robert Kern <robert.kern (AT) gmail (DOT) comwrote:

    >Note that in recent versions of Python, I believe that the pythonw
    >executable
    >is no longer necessary as a workaround.


    How recent? I'm already using 2.5.

    2.5 definitely works.

    Yes, once you know the magic incantation:

    /configure

    :-)

    rg
  • No.5 | | 648 bytes | |

    Ron Garret wrote:
    In article <@python.org>,
    Robert Kern <robert.kern (AT) gmail (DOT) comwrote:

    >Ron Garret wrote:

    In article <@python.org>,
    Robert Kern <robert.kern (AT) gmail (DOT) comwrote:
    Note that in recent versions of Python, I believe that the pythonw
    executable
    is no longer necessary as a workaround.
    How recent? I'm already using 2.5.
    >2.5 definitely works.


    Yes, once you know the magic incantation:

    ./configure

    Actually, is the relevant flag for this feature. You should
    use both, of course.

Re: Python on a mac: how to build pythonw?


max 4000 letters.
Your nickname that display:
In order to stop the spam: 0 + 9 =
QUESTION ON "Development"

EMSDN.COM