#1 Le 23/11/2014, à 21:59
- xunil2003
Problème avec les versions de python et les versions de Kubuntu
Bonsoir,
tout est dans le titre. J'ai un petit problème avec les versions de python et les versions de Kubuntu.
Sur un poste Kubuntu 14.04 LTS x86, avec python 2.7.6, mon appli fonctionne sans problème.
Mais dès que je l'utilise sur un autre poste Kubuntu 12.04 LTS x64, avec python 2.7.3, j'ai ce message qui s'affiche :
laurent@MSI-GT683:~/python/TV-Samsung$ python samsung-fenetre-image-4.py
Le compte utilisateur est : /home/laurent/
Le chemin complet au fichier de configuration cfg est : /home/laurent/.test2/config.cfg
Le répertoire /home/laurent/.test2 existe déja.
Le fichier /home/laurent/.test2/config.cfg existe déja.
Traceback (most recent call last):
File "samsung-fenetre-image-4.py", line 618, in <module>
image_bouton_on_off = add_image("/home/laurent/python/TV-Samsung/t-on_off.png")
File "samsung-fenetre-image-4.py", line 165, in add_image
return ImageTk.PhotoImage(image_button)
File "/usr/local/lib/python2.7/dist-packages/PIL/ImageTk.py", line 116, in __init__
self.paste(image)
File "/usr/local/lib/python2.7/dist-packages/PIL/ImageTk.py", line 166, in paste
im.load()
File "/usr/local/lib/python2.7/dist-packages/PIL/ImageFile.py", line 189, in load
d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 385, in _getdecoder
raise IOError("decoder %s not available" % decoder_name)
IOError: decoder zip not available
laurent@MSI-GT683:~/python/TV-Samsung$
Quelle différence y a t'il entre python 2.7.6 et 2.7.3 ?
Que faut il faire ?
Merci.
Dernière modification par xunil2003 (Le 23/11/2014, à 22:21)
- AMD R9 5950x 64 Go Ram / Intel Pentium I7 960 - 12 Go Ram - 6 T0 - Kubuntu 12.04 x64 / Kubuntu 14.04 x64 / Kubuntu 16.04 x64 / Kubuntu 18.04 x64 / Kubuntu 20.04 x64 / Mint
- DreamPlug Multi Boot / Marvel 1.22 Ghz / Architecture ARM / 512 Mo Ram / Carte-sd 16 Go class 10 / 5 Watts / Debian Squeeze 2.6.39.4
- Raspberry PI 1 / Raspberry PI 2 / Raspberry PI 3 / Raspberry PI 4 : 4Gb
JE SUIS CHARLIE
Hors ligne