FileNotFoundError: [Errno 2] No such file or directory: 'FSnm.png'

Hello I have found the solution for this, even if your files are in the same folder the error persists , the picture file or file that it says no directory found must not be in any folder, it should be directly on the first page, where you see when you open the repository, because irrespective of where the main file is, that’s where it is relative to.

I had a similar issue with a file not found error. I was puzzled.

I found out that I got the error from uploading the files to Github inside of a folder. Instead I had to upload the files to Github individually.

You can have folders such as pages etc. you just can’t have the main file, png etc. inside of a directory when you upload. I hope this helps.