Ask coding questions

← Back to all posts
3
Displaying an Image...
EricBromstead (5)

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 <module>
FileNotFoundError: [Errno 2] No such file or directory: 'DarGarf.png'

Commentshotnewtop
1
EricBromstead (5)

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

1
JoshDaBosh (64)

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

1
pyelias (657)

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.

1
EricBromstead (5)

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