Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code stoped working
#1
Hello
I am new coding. I have a code that goes out to a particular web site to download png images. It has been work normal for about a year now. But Wednesday I run the script like normal but for some reason it wont work anymore. I just keep getting this error:

IOError: [Errno 2] No such file or directory: 'https://www.mem'

But nothing has changed. Has anyone out there encountered this issue?

Thanks
OldMan57
Reply
#2
Without knowing your code, nobody will be able to help you.
Reply
#3
(Jul-18-2025, 12:57 PM)OldMan57 Wrote: IOError: [Errno 2] No such file or directory: 'https://www.mem'

https://www.mem is not a file.

I guess you're trying something like this:
with open("https://www.mem") as fd:
    print(fd.read(1024))
Error:
Traceback (most recent call last): File "<python-input-0>", line 1, in <module> with open("https://www.mem") as fd: ~~~~^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'https://www.mem'
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020