[SOLVED] Pysol won't launch after installing updates

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
xdicey
Level 4
Level 4
Posts: 474
Joined: Wed Sep 16, 2015 2:42 pm

[SOLVED] Pysol won't launch after installing updates

Post by xdicey »

I was using Pysol today but after installed some Level 3 updates, Pysol won't launch. I uninstalled and reinstalled it via Synaptic but the same thing. Just a brief flash of its splash and nothing.

Any suggestions how to fix this, please?

thx
Last edited by xdicey on Fri Sep 30, 2016 11:43 pm, edited 2 times in total.
-QUAD CORE Intel Core i7-4700MQ CPU (-HT-MCP-) 2.40GHz x4
-16GB RAM, 1 TB SSHD
-Graphics Card: Intel 4th Gen Core Processor Integrated Graphics Controller

User avatar
richyrich
Level 19
Level 19
Posts: 9063
Joined: Mon May 04, 2009 8:31 pm

Re: Pysol won't launch after installing updates

Post by richyrich »

If you start it from the terminal, does the terminal give any error messages?

xdicey
Level 4
Level 4
Posts: 474
Joined: Wed Sep 16, 2015 2:42 pm

Re: Pysol won't launch after installing updates

Post by xdicey »

rich,
Uh, oh. I have never started anything in my very short Linux life from terminal. :). May I have the magic words for that- pretty please? :D
-QUAD CORE Intel Core i7-4700MQ CPU (-HT-MCP-) 2.40GHz x4
-16GB RAM, 1 TB SSHD
-Graphics Card: Intel 4th Gen Core Processor Integrated Graphics Controller

User avatar
richyrich
Level 19
Level 19
Posts: 9063
Joined: Mon May 04, 2009 8:31 pm

Re: Pysol won't launch after installing updates

Post by richyrich »

pysol :-)

xdicey
Level 4
Level 4
Posts: 474
Joined: Wed Sep 16, 2015 2:42 pm

Re: Pysol won't launch after installing updates

Post by xdicey »

O Lord, I can't believe this. That's all I needed to do? I ought to be ashamed :oops: but being shameless in 'learning' I'm not. Thanks rich, but no go. Have a look see.

Code: Select all

xdicey@ ~ $ pysol
No command 'pysol' found, did you mean:
 Command 'pymol' from package 'pymol' (universe)
pysol: command not found
xdicey~ $ PySol Fan Club Edition
PySol: command not found
xdicey ~ $ 
-QUAD CORE Intel Core i7-4700MQ CPU (-HT-MCP-) 2.40GHz x4
-16GB RAM, 1 TB SSHD
-Graphics Card: Intel 4th Gen Core Processor Integrated Graphics Controller

User avatar
richyrich
Level 19
Level 19
Posts: 9063
Joined: Mon May 04, 2009 8:31 pm

Re: Pysol won't launch after installing updates

Post by richyrich »

pysolfc

xdicey
Level 4
Level 4
Posts: 474
Joined: Wed Sep 16, 2015 2:42 pm

Re: Pysol won't launch after installing updates

Post by xdicey »

Ah, stuff's showing now.

Code: Select all

xdicey~ $ pysolfc
Traceback (most recent call last):
  File "/usr/games/pysolfc", line 32, in <module>
    sys.exit(main(sys.argv))
  File "/usr/share/games/pysolfc/pysollib/main.py", line 359, in main
    r = pysol_init(app, args)
  File "/usr/share/games/pysolfc/pysollib/main.py", line 335, in pysol_init
    app.loadImages4()
  File "/usr/share/games/pysolfc/pysollib/app.py", line 763, in loadImages4
    v[i] = loadImage(v[i])
  File "/usr/share/games/pysolfc/pysollib/tile/tkutil.py", line 276, in makeImage
    im = PIL_Image(file)
  File "/usr/share/games/pysolfc/pysollib/tile/tkutil.py", line 253, in __init__
    image = Image.open(file).convert('RGBA')
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2028, in open
    raise IOError("cannot identify image file")
IOError: cannot identify image file
Exception AttributeError: "PIL_Image instance has no attribute '_PhotoImage__photo'" in <bound method PIL_Image.__del__ of <pysollib.tile.tkutil.PIL_Image instance at 0x7f1ec5d3e9e0>> ignored
xdicey ~ $ 
-QUAD CORE Intel Core i7-4700MQ CPU (-HT-MCP-) 2.40GHz x4
-16GB RAM, 1 TB SSHD
-Graphics Card: Intel 4th Gen Core Processor Integrated Graphics Controller

User avatar
richyrich
Level 19
Level 19
Posts: 9063
Joined: Mon May 04, 2009 8:31 pm

Re: Pysol won't launch after installing updates

Post by richyrich »

Do you have a hidden folder (.pysolfc) in your home folder ? Just use your File Manager and go to the menu to "show hidden files" (or Ctrl+h)
If yes, delete it, and when you start Pysol next, it will re-create it.

xdicey
Level 4
Level 4
Posts: 474
Joined: Wed Sep 16, 2015 2:42 pm

Re: Pysol won't launch after installing updates

Post by xdicey »

Python3-pil, and its pkgs, is one of the updates. Could that contribute to the problem? See attached.
Last edited by xdicey on Thu Sep 29, 2016 12:51 am, edited 1 time in total.
-QUAD CORE Intel Core i7-4700MQ CPU (-HT-MCP-) 2.40GHz x4
-16GB RAM, 1 TB SSHD
-Graphics Card: Intel 4th Gen Core Processor Integrated Graphics Controller

xdicey
Level 4
Level 4
Posts: 474
Joined: Wed Sep 16, 2015 2:42 pm

Re: Pysol won't launch after installing updates

Post by xdicey »

richyrich wrote:Do you have a hidden folder (.pysolfc) in your home folder ? Just use your File Manager and go to the menu to "show hidden files" (or Ctrl+h)
If yes, delete it, and when you start Pysol next, it will re-create it.
Deleted it. No go. same thing.
-QUAD CORE Intel Core i7-4700MQ CPU (-HT-MCP-) 2.40GHz x4
-16GB RAM, 1 TB SSHD
-Graphics Card: Intel 4th Gen Core Processor Integrated Graphics Controller

xdicey
Level 4
Level 4
Posts: 474
Joined: Wed Sep 16, 2015 2:42 pm

Re: Pysol won't launch after installing updates

Post by xdicey »

Any other suggestions, please?
-QUAD CORE Intel Core i7-4700MQ CPU (-HT-MCP-) 2.40GHz x4
-16GB RAM, 1 TB SSHD
-Graphics Card: Intel 4th Gen Core Processor Integrated Graphics Controller

User avatar
richyrich
Level 19
Level 19
Posts: 9063
Joined: Mon May 04, 2009 8:31 pm

Re: Pysol won't launch after installing updates

Post by richyrich »

I'm at a loss too! :? Did you also re-install the pysolfc-cardsets?

Update:
There is a bug in Tkinter where the image will be garbage collected if you just assign it to a local variable and use it in create_image.
Ref: http://infohost.nmt.edu/tcc/help/pubs/pil/image-tk.html

xdicey
Level 4
Level 4
Posts: 474
Joined: Wed Sep 16, 2015 2:42 pm

Re: Pysol won't launch after installing updates

Post by xdicey »

Thanks rich. I did install the card sets but still no go.
I checked out this bit from the results

Code: Select all

 File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2028, in open
    raise IOError("cannot identify image file")
IOError: cannot identify image file
Exception AttributeError: "PIL_Image instance has no attribute '_PhotoImage__photo'" in <bound method PIL_Image.__del__ of <pysollib.tile.tkutil.PIL_Image instance at 0x7f3ce0582248>> ignored
and came across the info in your link today at work. Wasn't sure what it should mean to me though.

Since Pysol is no longer being maintained, is there any real reason to have it in the repos? If it's no danger to my system, could I just uninstall / leave it be then? I installed aisleriot -not as nice as Pysol but it works.
-QUAD CORE Intel Core i7-4700MQ CPU (-HT-MCP-) 2.40GHz x4
-16GB RAM, 1 TB SSHD
-Graphics Card: Intel 4th Gen Core Processor Integrated Graphics Controller

User avatar
trytip
Level 12
Level 12
Posts: 4460
Joined: Tue Jul 05, 2016 1:20 pm

Re: Pysol won't launch after installing updates

Post by trytip »

@xdicey
my system is way older than yours and just installed to see if working, and pysolfc opens from terminal with no error at all. mint/mate 17.3 x64
open synaptic and search for pysolfc rightclick on it/ properties/dependencies. do you have them all installed? also you try it with a 4.4 kernel?
Image

xdicey
Level 4
Level 4
Posts: 474
Joined: Wed Sep 16, 2015 2:42 pm

Re: Pysol won't launch after installing updates

Post by xdicey »

trytip wrote:@xdicey
my system is way older than yours and just installed to see if working, and pysolfc opens from terminal with no error at all. mint/mate 17.3 x64
open synaptic and search for pysolfc rightclick on it/ properties/dependencies. do you have them all installed? also you try it with a 4.4 kernel?
Thanks trytip. I appreciate your chiming in here.
Thing is, I've been using it for so long and all was well until Wednesday evening I accepted some updates one of them was . . .PIL something or other.
Right after that I couldn't open Pysol anymore -considering I was playing it minutes before the update.
The 2 card sets are installed. I will double check on the dependencies when I with the computer later.

BTW did 17.3 get the same updates 17.2 did? If yes, did you install them and Pysol worked anyway?
-QUAD CORE Intel Core i7-4700MQ CPU (-HT-MCP-) 2.40GHz x4
-16GB RAM, 1 TB SSHD
-Graphics Card: Intel 4th Gen Core Processor Integrated Graphics Controller

xdicey
Level 4
Level 4
Posts: 474
Joined: Wed Sep 16, 2015 2:42 pm

Re: Pysol won't launch after installing updates

Post by xdicey »

Yaaayyy!!! [ doing the happy dance] The Pillow fairy arrived with an update and Pysol is back!

. . . Oh yes, I do have a life but after 8 hrs dealing with others' issues, I look forward to some Pysol quiet time. . .

Kernel 4.4.0-21 didn't do the trick. But lo, a Pillow update appeared and all is well.

Thanks to the 'Pillow fairy', richyrich, trytip and everyone else including those who just browse this thread. I'm super happy again :D.

Now is it okay to keep kernel 4.4.0-21 or should I go back to 3.xx? Or, did it bring the pillow update?
-QUAD CORE Intel Core i7-4700MQ CPU (-HT-MCP-) 2.40GHz x4
-16GB RAM, 1 TB SSHD
-Graphics Card: Intel 4th Gen Core Processor Integrated Graphics Controller

User avatar
richyrich
Level 19
Level 19
Posts: 9063
Joined: Mon May 04, 2009 8:31 pm

Re: Pysol won't launch after installing updates[SOLVED]

Post by richyrich »

Haha, I just received the update and came here to let you know! :lol:

I'd stick with the 4.4 series, and would even update to the latest 4.4.0.38 kernel, as it also has some bug fixes. This series is an LTS kernel, and will be around for a long time.

Good job with your stick-to-it-ness.
richy

xdicey
Level 4
Level 4
Posts: 474
Joined: Wed Sep 16, 2015 2:42 pm

Re: Pysol won't launch after installing updates[SOLVED]

Post by xdicey »

richyrich wrote:
Good job with your stick-to-it-ness.
richy
At work, I'm tagged 'The Burr in the Sock'. How sweetly disrespectful. But guess who gets the job done, on time, all the time, and with efficiency? :mrgreen:

Thank you so much. What you guys who help us may not know, that for some of us newbies -and perhaps others, for me at least, is when a post gets a response, whether it's a solution or not, it encourages the motivation to 'keep at it'. So a very big thanks to you and all :).
-QUAD CORE Intel Core i7-4700MQ CPU (-HT-MCP-) 2.40GHz x4
-16GB RAM, 1 TB SSHD
-Graphics Card: Intel 4th Gen Core Processor Integrated Graphics Controller

Post Reply

Return to “Software & Applications”