probleme langage python
Répondre à la discussion
Affichage des résultats 1 à 4 sur 4

probleme langage python



  1. #1
    cool74210

    probleme langage python


    ------

    bonjour j ai cette erreur si une personne peux m aider merci
    /content/first-order-model

    ---------------------------------------------------------------------------

    Code:
    FileNotFoundError                         Traceback (most recent call last)
    
    <ipython-input-3-e21dc707b840> in <module>()
         30 warnings.filterwarnings("ignore")
         31 
    ---> 32 source_image = imageio.imread('/content/'+Nom_Fichier_Image)
         33 reader = imageio.get_reader('/content/'+Nom_Fichier_Video)
         34 
    
    3 frames
    
    /usr/local/lib/python3.7/dist-packages/imageio/core/request.py in _parse_uri(self, uri)
        271                 # Reading: check that the file exists (but is allowed a dir)
        272                 if not os.path.exists(fn):
    --> 273                     raise FileNotFoundError("No such file: '%s'" % fn)
        274             else:
        275                 # Writing: check that the directory to write to does exist
    
    FileNotFoundError: No such file: '/content/content/DeepFake_From_Single_Image/data/reynolds1.png'

    -----
    Dernière modification par JPL ; 21/05/2022 à 13h53. Motif: ajout de la balise Code (#) pour garder l’indentation

  2. #2
    pm42

    Re : probleme langage python

    Oui, ça te dit que le fichier n'existe pas. 1ère chose : vérifier si /content/content/DeepFake_From_Single_Image/data/reynolds1.png existe et est accessible.

    2ème chose : vérifier si par hasard, le /content/content ne devrait pas être /content.

  3. #3
    cool74210

    Re : probleme langage python

    pourtant le fichier existe

  4. #4
    cool74210

    Re : probleme langage python

    j ai trouver merci

  5. A voir en vidéo sur Futura

Discussions similaires

  1. Langage python
    Par Talife dans le forum Programmation et langages, Algorithmique
    Réponses: 6
    Dernier message: 03/11/2017, 08h16
  2. Problème compréhension fonctionnement langage Python
    Par extremgear dans le forum Programmation et langages, Algorithmique
    Réponses: 10
    Dernier message: 27/04/2017, 09h12
  3. Problème langage python (datetime)
    Par Michael_87 dans le forum Programmation et langages, Algorithmique
    Réponses: 3
    Dernier message: 20/04/2015, 15h32
  4. langage Python
    Par watrish dans le forum Programmation et langages, Algorithmique
    Réponses: 12
    Dernier message: 11/11/2014, 15h09
  5. langage Python
    Par Bladejo95 dans le forum Logiciel - Software - Open Source
    Réponses: 4
    Dernier message: 08/12/2006, 17h22