Need help: Error running helloworld.py in Python2.5
  • Butterfly
    Butterfly
    insurgent
    Posts: 64 from 2007/7/8
    I have installed Python 2.5, PyMUI and PIL 1.1.7 (the last is not required to run helloworld.py script). When I try to run the script, I'm getting the following error:

    Work:Dev> python2.5 helloworld.py
    Traceback (most recent call last):
    File "helloworld.py", line 16, in <module>
    win.Notify('CloseRequest', True, lambda e: app.Quit())
    File "/Libs/python2.5/site-packages/pymui/_core.py", line 812, in Notify
    AssertionError
    Work:Dev>

    Any ideas what could be causing this? Have I missed something in the installation process? Need some help to get me going with Python...
    Registered MOS 2.7 + Pack Ultimate 1.6.2 running on:
    Power Mac G4 FW800 1.42GHz 2GB / Radeon 9000 Pro 128MB / SB Live! / NEC USB 2.0 / SuperDrive
    Mac Mini G4 1.5GHz 1GB / 64MB VRAM / SuperDrive
    Dell UltraSharp 2407WFP 1920x1200
    PowerBook G4 ready :-)
  • »02.06.10 - 11:52
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    DiskDoctor
    Posts: 306 from 2009/4/17
    From: Rzeszow, place...
    It's a typical Python/PyMUI API incompatibility. Just ensure yourself you're running most recent pymui (i.e. definitely not one off this very site).

    You have to source the distributions from Yomgui's site directly. Then eventually try some combinations if this doesn't help.
    Was: Mac Mini PPC running MorphOS 2.4
    Now: Amiga Forever 2010 with AmiKit and AmigaSYS
    Not used: Icaros Desktop 1.2 (reason: no wifi)
    Planned soon: an OS4 system
    Shortly then: a MOS notebook (wifi is a must-have)
  • »02.06.10 - 13:41
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    jcmarcos
    Posts: 1178 from 2003/3/13
    From: Pinto, Madrid ...
    After that, can anyone upload the working combination here, or to MorphOS-files, or something?
  • »02.06.10 - 14:02
    Profile
  • Butterfly
    Butterfly
    insurgent
    Posts: 64 from 2007/7/8
    @DiskDoctor

    I have already installed PyMUI 0.4 from Yomgui's site, download from here:
    http://yellowblue.free.fr/yiki/doku.php/en:dev:pymui:start

    The installation is in SYS:Libs/python2.5/site-packages/pymui/
    I can't see anything obviously wrong with the installation on my machine...

    The script I'm trying to run is the example from Yomgui, here:
    http://yellowblue.free.fr/yiki/doku.php/en:dev:pymui:docs:tutorial
    Registered MOS 2.7 + Pack Ultimate 1.6.2 running on:
    Power Mac G4 FW800 1.42GHz 2GB / Radeon 9000 Pro 128MB / SB Live! / NEC USB 2.0 / SuperDrive
    Mac Mini G4 1.5GHz 1GB / 64MB VRAM / SuperDrive
    Dell UltraSharp 2407WFP 1920x1200
    PowerBook G4 ready :-)
  • »02.06.10 - 21:18
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    DiskDoctor
    Posts: 306 from 2009/4/17
    From: Rzeszow, place...
    Quote:


    insurgent wrote:
    @DiskDoctor

    I have already installed PyMUI 0.4 from Yomgui's site, download from here:
    http://yellowblue.free.fr/yiki/doku.php/en:dev:pymui:start

    The installation is in SYS:Libs/python2.5/site-packages/pymui/
    I can't see anything obviously wrong with the installation on my machine...

    The script I'm trying to run is the example from Yomgui, here:
    http://yellowblue.free.fr/yiki/doku.php/en:dev:pymui:docs:tutorial



    As I said, maybe you ought to try some builds' combination.

    Or ask Yomgui directly. He's here around. Guess I saw him posting some two days ago. He is pretty busy though and an active guy so might not have noticed that incompatibility.

    Like... try Python2.4 or any other available. Some combination MUST work (it worked for me) and then you can think of porting upwards or towards more up-date versions.
    Was: Mac Mini PPC running MorphOS 2.4
    Now: Amiga Forever 2010 with AmiKit and AmigaSYS
    Not used: Icaros Desktop 1.2 (reason: no wifi)
    Planned soon: an OS4 system
    Shortly then: a MOS notebook (wifi is a must-have)
  • »03.06.10 - 18:02
    Profile
  • Butterfly
    Butterfly
    insurgent
    Posts: 64 from 2007/7/8
    After some testing, as suggested, I have found what works and what not...

    PyMUI 0.4 r222 does not work with the final Python 2.5.4 r129 or r101 despite what is said in installation instructions or on MorphOS Files archive.
    PyMUI 0.3 r162 is working with any of the two final releases.

    @DiskDoctor
    I did not try PyMUI 0.4 or 0.3 with Python 2.4 because I may want to use Python Imaging Library which aparently works only with 2.5.
    Registered MOS 2.7 + Pack Ultimate 1.6.2 running on:
    Power Mac G4 FW800 1.42GHz 2GB / Radeon 9000 Pro 128MB / SB Live! / NEC USB 2.0 / SuperDrive
    Mac Mini G4 1.5GHz 1GB / 64MB VRAM / SuperDrive
    Dell UltraSharp 2407WFP 1920x1200
    PowerBook G4 ready :-)
  • »07.06.10 - 02:31
    Profile