Skip to content
← Back to Community
Displaying an Image...
Profile icon
EricBromstead

So this is what I have been trying...
https://repl.it/@EricBromstead/DearVigilantSandbox
Just as a test I used Garfield
But I get an Error:
Traceback (most recent call last):
File "python", line 2, in
FileNotFoundError: [Errno 2] No such file or directory: 'DarGarf.png'

Voters
Profile icon
SteveGregorio
Profile icon
AmesHenry
Profile icon
EricHuang28
Profile icon
Harshitupadhya2
Profile icon
JohnHunt3
Profile icon
Ariel102
Profile icon
babi752
Profile icon
fatima31
Profile icon
SaRiAhh
Profile icon
AalindTyagi1
Comments
hotnewtop
Profile icon
EverettErlandson

this is stupid

Profile icon
pyelias

It's a typo: /DaGarf.png vs DarGarf.png (make sure to remove the /).
Also, I don't think repl.it support displaying images in the console.

Profile icon
EricBromstead

@pyelias Oh so images? Darn. Welp whatever thank anyway :)

Profile icon
EricBromstead

OK I fix it so I dont get an error now but i get this printed instead:
<IPython.core.display.Image object>

Profile icon
JoshDaBosh

@EricBromstead i don't believe repl.it supports displaying images, as pyelias also said.

Profile icon
JoshDaBosh

Your filename is DaGarf.png not DarGarf.png

https://repl.it/@JoshDaBosh/DearVigilantSandbox