Skip to content

Image pathname error #10

Open
Open

Description

@sacha-l

I can't seem to figure out why I keep getting this error:
is not a valid pathname to an image.

Any idea why this is happening? I've tried variations of file path names, with " " and without.. I'm on a Linux machine.

Activity

  1. DoubleFL3X commented on Jan 23, 2021

    @DoubleFL3X
    • In the first line change
      import PIL to from PIL import Image
    • and in line 29 remove this PIL.
  2. bljptrpl commented on Jun 12, 2023

    @bljptrpl

    Following @DoubleFL3X
    and you input the following

    ./pic.jpg
    or
    /home/derp/Desktop/github/py-scripts/ascii/pic.jpg

  3. Git2prashant commented on Jan 5, 2026

    @Git2prashant

    If you'll try the same code in Google colab , uploading your image in its content folder (main folder) and using its path to generate the ascii image , this code will work smoothly without any issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions