Filenotfounderror errno 2 no such file or directory python error Solved

Поділитися
Вставка
  • Опубліковано 11 вер 2024

КОМЕНТАРІ • 100

  • @SeluDisplay
    @SeluDisplay 2 роки тому +16

    got em both in the same folder and still not working :(

  • @brianbwoma9947
    @brianbwoma9947 3 роки тому +18

    so far nobody is able to solve this problem. what you are expalining is very basic

    • @jonathanbell7468
      @jonathanbell7468 3 роки тому +2

      bro same. No tutorial has helped me yet. did you figure it out yet?

    • @brianbwoma9947
      @brianbwoma9947 3 роки тому +1

      @@jonathanbell7468 yes I did. The solution is ensuring you include the whole path of the file from the root if you get what I mean

    • @eiizekathryn
      @eiizekathryn 3 роки тому +1

      @@brianbwoma9947 could you explain more? im having this problem and my assignment is due tonight

    • @ShuvajitSaha-gs1fy
      @ShuvajitSaha-gs1fy 3 місяці тому +1

      ​@@brianbwoma9947Bro how did you sort out the problem?? Please help right now as I'm solving questions for cbse boards 2024-25.

  • @MYURBANESSENTIAL.
    @MYURBANESSENTIAL. Рік тому +2

    Its not working bro its showing this :- C:\Users\ICON\AppData\Local\Programs\Python\Python311\python.exe: can't open file 'C:\\Users\\ICON\\sp.py': [Errno 2] No such file or directory
    If if I tried in cmd It shows :- An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.

  • @CrizzID
    @CrizzID Рік тому +1

    How can this happen from the next day to the other without having changed anything? Drives me nuts. Thanks though.

  • @virtualpsycogamer9629
    @virtualpsycogamer9629 Рік тому +1

    mera to fir bhi solve nahi ho rha I tried both methods with VSCODE

  • @rayhanuthama5626
    @rayhanuthama5626 2 роки тому +2

    Thank you sir, this could also applied for my colab project

  • @montoyaalexis9130
    @montoyaalexis9130 2 роки тому +4

    Helped me big time. Thank you kind sir.

  • @27omkarmahindrakar54
    @27omkarmahindrakar54 3 роки тому +1

    isn't there a way to solve this without writing the complete path
    Like if we have a 'b' or 'n' in our file name it will not open like it python will read it (
    ) as a next line

  • @wrestlingmovesets1072
    @wrestlingmovesets1072 3 місяці тому

    hi! I have a question. I'm looking at Window (C:) and I do not have any of the text files. I do have python installed but i'm wondering if maybe i installed the wrong version or if I'm doing something wrong. any help would be appreciated

    • @unitedtoptech6288
      @unitedtoptech6288  3 місяці тому +1

      Can you paste your python code? I can look into it

    • @wrestlingmovesets1072
      @wrestlingmovesets1072 3 місяці тому

      @@unitedtoptech6288thank you for the reply! how do I do that? i can't find the text on my pc. i've re-installed & repaired python on & off about 3 times to be sure. I don't see any folders that says PYTHON EXAMPLE and PYTHON TEXT. that's where I got lost because they don't exist in my PC

    • @unitedtoptech6288
      @unitedtoptech6288  3 місяці тому

      I cannot understand what you mean by python example or text file?

  • @autarroy
    @autarroy 2 роки тому

    Hi, After I create an exe file, using auto-py-to-exe, I get an error message:
    Failed to execute script'Practice_Tkinter_file' due to unhandled exception:[Errno2] No such file or directory:'image/kids.jpg'
    I have more images i my map but some of the can convert and some cant and getting the error message.
    Can you help me?

  • @yashsharma9947
    @yashsharma9947 3 роки тому +2

    I'm having the file in the same folder still it throws the same error and when i copy the path then it throws unicode error

    • @unitedtoptech6288
      @unitedtoptech6288  3 роки тому +1

      Also check if u have added file extension

    • @yashkalme1172
      @yashkalme1172 2 роки тому +1

      late reply but path ke pehle r daal jaise r'C:
      ew file\data.txt'

    • @yashsharma9947
      @yashsharma9947 2 роки тому

      @@unitedtoptech6288 Thanks but i already did that

    • @yashsharma9947
      @yashsharma9947 2 роки тому

      @@yashkalme1172 hmm have heard about it gonna try it next time
      But i solved this problem by adding double slash instead of single one and it worked
      Like C:\\program files\\python programming.txt

    • @tutran3532
      @tutran3532 2 роки тому

      @@yashsharma9947 lol. I have the same error with you and i tried to make it like u . It worked , tks bro ;v

  • @876Abb
    @876Abb Рік тому

    So weird! My "read me folder" doesn't even have any files in it not even a text file and this issue drove me bunkers!, but moving the empty folder into the .py folder solved my problem. Thank you!

  • @hangmanCode7064
    @hangmanCode7064 2 роки тому

    I tryed this but what if I want to add something like a backround to a game? Please help me.

  • @BOGDES83
    @BOGDES83 3 роки тому +6

    you need to add double backslashes after C: (Ex: C:\\Users\Username\Desktop\.... ")

  • @matiasespinoza-deyden3165
    @matiasespinoza-deyden3165 4 місяці тому

    my problem was that I by mistake wrote an extra .txt
    so I was calling file.txt, but it was named file.txt.txt
    seems like the notepad files dont show the .txt like .py

  • @eternalodball6426
    @eternalodball6426 2 роки тому

    idk but in linux it's not getting solved providing the full path works however i wanted to provide
    it in the same folder so anyone else can use my script too . here's my code :-
    username = open("user.txt","w")
    also am 1000% sure that my txt file is in same folder , idk if it's bug or what

  • @anonymouss_96
    @anonymouss_96 3 роки тому

    I am using spyder in anaconda this error occurs on json and .h5 file can you please help me how to handle that error Filenotfound

  • @OmkarKanade-ye5ui
    @OmkarKanade-ye5ui Рік тому

    Big help sir, Thank you.

  • @Neymarfanboy11
    @Neymarfanboy11 5 місяців тому

    thank you sir now my code works

  • @crystalstar8771
    @crystalstar8771 2 роки тому +2

    Thanks so much! This was my issue.

  • @Growthefy
    @Growthefy Рік тому +1

    Problem Solved!!! Thank You 👍

  • @abhijeetabhyankar9272
    @abhijeetabhyankar9272 Рік тому

    Try this once uninstall flask and install it again it worked on my riddle.

  • @andi4593
    @andi4593 Рік тому

    Thanks bro u saved my life

  • @vinovino9112
    @vinovino9112 2 роки тому

    Thank you so much sir.

  • @ciromontes8924
    @ciromontes8924 2 роки тому

    thankyou, the solution is abs patjh thankyou!

  • @earnesttechie1494
    @earnesttechie1494 Рік тому

    Thank you very much

  • @chiragsrivastava5280
    @chiragsrivastava5280 2 роки тому

    Thank you so much sir

  • @salmanahmad6512
    @salmanahmad6512 3 роки тому +1

    Lagend man. Thanks

  • @LordSandwichII
    @LordSandwichII 7 місяців тому

    But it IS in the same folder! 😭

  • @dhyandhyan8502
    @dhyandhyan8502 Місяць тому

    Double slash is required

  • @anikatasnim2072
    @anikatasnim2072 27 днів тому

    Thanks. worked in second process

  • @zufii5030
    @zufii5030 Рік тому

    thanks sir

  • @finnn.6028
    @finnn.6028 2 роки тому

    helped nothing still have the error

  • @maheshkrishna7005
    @maheshkrishna7005 8 місяців тому

    sir thank you for this

  • @blake_thrx4913
    @blake_thrx4913 3 роки тому +2

    you're amazing

  • @m_raj5205
    @m_raj5205 2 роки тому +1

    Thank u sooooo muchh!!✌

  • @devoteebhakt
    @devoteebhakt 2 роки тому

    Really thanks bhaiya

  • @zaidalzanoon4877
    @zaidalzanoon4877 2 роки тому +1

    I appreciate this so much

  • @user-wn6zn9ew6j
    @user-wn6zn9ew6j Рік тому

    Thank you , this is really save me

  • @sidraqueen5164
    @sidraqueen5164 3 роки тому

    how to solve this problem in phpmyadmin

  • @sidharthasarkar6557
    @sidharthasarkar6557 2 роки тому

    Thank u bhaiya ❤️

  • @cutiserzero963
    @cutiserzero963 2 роки тому

    Thank you

  • @aadityabhattacharya1811
    @aadityabhattacharya1811 3 роки тому

    Amazing video thanks

  • @drinkingwater6395
    @drinkingwater6395 Рік тому

    Thank you it helped

  • @0deaths095
    @0deaths095 6 місяців тому

    you are a saint

  • @cbtananya
    @cbtananya 2 роки тому

    Thanks a lot

  • @eugenefrancisco1029
    @eugenefrancisco1029 3 роки тому

    Thanks brother

  • @carterfaltys5825
    @carterfaltys5825 2 роки тому

    Thank you soooo much!!! :)

  • @ademabdi8831
    @ademabdi8831 Рік тому

    india za best

  • @Hubert4
    @Hubert4 2 роки тому

    thank you boss

  • @codewithQam
    @codewithQam 3 роки тому

    thank you

  • @ekanshrao2463
    @ekanshrao2463 2 роки тому

    Thanks

  • @NashraSultana-kl1ci
    @NashraSultana-kl1ci Рік тому

    thanks a bunch

  • @gshyam4102
    @gshyam4102 2 роки тому

    Tq buddy

  • @GOPRO14496
    @GOPRO14496 Рік тому

    Problem not solved sir

    • @unitedtoptech6288
      @unitedtoptech6288  Рік тому

      Are you working with normal python files or any other library?

  • @Vinz-Tamil
    @Vinz-Tamil 11 місяців тому

    tamil la bro ?

  • @ahmadshayan
    @ahmadshayan 2 роки тому

    Thanks :)

  • @ademabdi8831
    @ademabdi8831 Рік тому

    w video

  • @nuqlear1189
    @nuqlear1189 3 місяці тому

    workingggg

  • @Gamershub219i
    @Gamershub219i 29 днів тому

    why is it always indians

  • @JohnCarter-ek9qb
    @JohnCarter-ek9qb 3 роки тому

    ❤️

  • @idraw48
    @idraw48 3 роки тому

    Bro i have already

  • @ademabdi8831
    @ademabdi8831 Рік тому

    i love uu

  • @samirkassir9859
    @samirkassir9859 2 роки тому

    Bhebak

  • @weshall8974
    @weshall8974 2 роки тому

    Thank you sir a lot

  • @medazizlengliz5457
    @medazizlengliz5457 3 роки тому

    thanks sir

  • @bruhmando4730
    @bruhmando4730 2 роки тому

    Thanks bro