Re: [SLE] Python and Pysol

From: David Herman (mesamoo115_at_comcast.net)
Date: 10/19/03

  • Next message: Thinker: "[SLE] trying to access a Mandrake Box"
    To: suse-linux-e@suse.com
    Date: Sun, 19 Oct 2003 09:01:42 -0700
    
    

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    On Sunday 19 October 2003 08:43 am, David Herman wrote:
    > On Saturday 18 October 2003 04:09 pm, Zach Smith (Linux) wrote:
    > > On Sat, 2003-10-18 at 11:20, David Herman wrote:
    Sorry about the last message, when I started writing it (yesterday) I
    thought the solution had been found, unfortunately by the time I
    finished my mail this morning it was apparent that the solution wasn't
    working for me but I forgot to delete the [SOLVED] tag in the subject
    line.

    - ------relevent section of previous message follows------

    On Saturday 18 October 2003 04:09 pm, Zach Smith (Linux) wrote:
    > Sorry 'bout that...guess I should have posted it before (duh). The
    > script is "pysol" located in /usr/bin. It originally reads as
    > follows:
    >
    > #!/bin/sh
    > python /usr/share/games/pysol/src/pysol.pyc
    >
    > Add "2.2" to the end of the word python so it comes out looking like
    > this:
    >
    > #!/bin/sh
    > python2.2 /usr/share/games/pysol/src/pysol.pyc
    >
    > This of course is assuming you have Python 2.2 installed. I've
    > installed version 2.3.2 (from source) but 2.2 (from RPM) is still
    > present on my machine which is what it originally ran under before
    >

    Thanks for the reply, unfortunately for me It still didn't work.
    Prior to your fix Pysol would exit a few seconds after the info window
    closed, I had the same response after your fix.

    pysol 4.8-51, Python 2.2.1-65, python-tkinter 2.2.1-65

    When running from the shell I recieve an error

            File "./tk/tkinit.py", line 182, in CallWrapper____call__
             File "/usr/lib/python2.2/lib-tk/Tkinter.py", line 1024,
            in _substitute e.num = getint(b)
            ValueError: invalid literal for int(): ??

    Apparantly a problem w/ python-tkinter?

    But Wait, I did more investigation, I found
            /usr/lib/python was a link to /usr/lib/python2.1
    I changed this so it is now a link to /usr/lib/python2.2 and now the
    game starts up and runs long enough to start playing.

    Unfortunately if I leave it alone for a few minutes or stop to do do
    something else the game still exits with the same error as before.

    Anyone have any other ideas?
    - --
    dh
    Don't shop at GoogleGear.com!
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.1 (GNU/Linux)

    iD8DBQE/krVmBwgxlylUsJARAmYPAJ4k/k8mJXOGZ4cBNfUsM/H6jVrhQgCfeXsz
    ELCc9KpRE9/4F9+xuAhbmvs=
    =XbrA
    -----END PGP SIGNATURE-----

    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: Thinker: "[SLE] trying to access a Mandrake Box"

    Relevant Pages

    • Re: [SLE] Python and Pysol [SOLVED}
      ... >> I kind of miss pysol myself. ... > This of course is assuming you have Python 2.2 installed. ... Prior to your fix Pysol would exit a few seconds after the info window ... something else the game still exits with the same error as before. ...
      (SuSE)
    • Re: YACD - level 40 power level 68
      ... problem must be buried in the inkey function somewhere. ... temp file instead of while at the main game UI? ... A separate tack is to look for calls to "exit". ... character is being player. ...
      (rec.games.roguelike.angband)
    • Re: Is there a programming language that is combination of Python andBasic?
      ... better than Python and everyone should use it. ... a players AGILITY attribute affected the player's ... plate armor being more adverse than light leather armor. ... of the game. ...
      (comp.lang.python)
    • Re: A newbies in-dev roguelike
      ... or it freezes upon exit (the current order freezes), ... declared and defined within the class declaration, ... roguelike game at an earlier stage (had an empty map and a walking ...
      (rec.games.roguelike.development)
    • 2D Game Development in Python
      ... I like to do fun stuff when learning a new language. ... working with Python for a little while on real world problems mostly ... I was thinking as a hobby project developing a simple 2d game (think ...
      (comp.lang.python)