Aller au contenu
View in the app

A better way to browse. Learn more.

Next

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Résolu]-[Python](program exited with code: 1)

Featured Replies

Posté(e)

Avis aux Pythonistas du forum

J'ai cette erreur: (program exited with code: 1) dans mon code avec python 3.5:

Traceback (most recent call last):
File "monprog.py", line 11, in <module>
from PIL import Image, ImageTk  # Module PIL
ImportError: cannot import name ImageTk

 

#!/usr/bin/python3
# -*- coding: utf8 -*-

from Tkinter import *
import os
from PIL import Image, ImageTk
import Tkinter.messagebox
import Tkinter.filedialog

 

Pourtant le module PIL est bien installé (Debian)

Des idées ?

Merci

 

Modifié par Ricard

Posté(e)

Salut Ricard,

PIL n'est disponible que pour python2, cela dit, un fork a été créé sous le nom de Pillow pour la version 3 de python.

 

Posté(e)
  • Auteur

Ha ok merci beaucoup. Je m'arrache les cheveux depuis des heures là dessus.

Faut que je remette ma doc à jour...

Gros bisous à toi.:iloveyou:

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.