Re: [SLE] Python and Pysol [SOLVED}

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

  • Next message: David Herman: "Re: [SLE] Python and Pysol"
    To: suse-linux-e@suse.com
    Date: Sun, 19 Oct 2003 08:43:06 -0700
    
    

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

    On Saturday 18 October 2003 04:09 pm, Zach Smith (Linux) wrote:
    > On Sat, 2003-10-18 at 11:20, David Herman wrote:
    - -----------snip---------------
    > > So would you mind posting your solution? (including the version of
    > > pysol and python you ended up using)
    > >
    > > I kind of miss pysol myself.

    > > dh

    > 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
    > upgrading. The version of Pysol is 4.81. Hope this helps.

    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
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.1 (GNU/Linux)

    iD8DBQE/krELBwgxlylUsJARAlBxAJ4jrd5MPWctbDwm1vMd+xFJrf8qQwCgj1cl
    9n6170yqNBqafToplA563Kk=
    =MZVV
    -----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: David Herman: "Re: [SLE] Python and Pysol"

    Relevant Pages

    • Re: PySol not working on WinXP, SP2
      ... > I upgraded to SP2 and pysol fails silently. ... Running 'python pysol.pyw' ... > Ivan Van Laningham ...
      (comp.lang.python)
    • Re: [SLE] Python and Pysol
      ... On Sat, 2003-10-18 at 05:14, Marshall Heartley wrote: ... why not upgrade pysol and see if it works with the new Python? ... > created the links needed for Python. ... "If con is the opposite of pro, is Congress the opposite of progress?" ...
      (SuSE)
    • [SLE] Python and Pysol
      ... I've been wanting to learn Python so I upgraded to the latest version ... from the Python website but now Pysol will not work. ... which was installed from the RPM on the SuSE DVD. ...
      (SuSE)
    • Re: [SLE] Python and Pysol
      ... >> I tried upgrading but that didn't help either. ... I made a minor change to the Pysol script ... Add "2.2" to the end of the word python so it comes out looking like ...
      (SuSE)
    • Re: [SLE] Python and Pysol
      ... > 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)