obskyr / colorgram.py

A Python module for extracting colors from images. Get a palette of any picture!
MIT License
447 stars 50 forks source link

Error: File is not in the directory #17

Open Mubeen-Ul-Hassan opened 8 months ago

Mubeen-Ul-Hassan commented 8 months ago

Screenshot 2024-01-08 190109 I have import "colorgram" module in my program, but it shows the error that file or directory is not found. As on my observation there is a bug which is casuing this issue. I have one project folder and in that there are some other folders and in that folder, I had import the "colorgram" module but it shows error when file is run. But observation is that it not work properly in nested folders. But when I create a folder on desktop and in that folder I create a file and place my sample image there, but this time it shows no error.

So I think it show error when this module is call in the nested folder. Or may I am the only one facing this issue.

FooKaiShen commented 6 months ago

i have the same issue too 😢

Lundychannn commented 4 months ago

Same here. I use nested folders all the time for better management on files, but the error reports that the path where colorgram is installed is the directory of these folders. And even though I change the directory to the specific folder, the error will become 'PIL.UnidentifiedImageError: cannot identify image file' instead...🥲