How do I fix this error? trying to import an image in python

ValueError: source code string cannot contain null bytes

How do I fix this error?
please help

Hey @phenschell2026 welcome!

Showing an image in python would be very difficult if you can, I think you can’t actually do it!

Hi @phenschell2026 well you can display an image but it depends what library you are using.

Can you share a link to your Repl please so other users in the community can take a look and share some ideas?

Here is my repl link:

main.py - Super Mario - Replit

I found the code online, but it didn’t come with the image, so I am trying to import the image