obskyr / colorgram.py

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

module 'colorgram' has no attribute 'extract' #12

Open jgitao opened 3 years ago

jgitao commented 3 years ago

upon installing colorgram successfully and calling colorgram.extract using pycharm it pop-up a message:

colors = colorgram.extract('image.jpg',30)

AttributeError: module 'colorgram' has no attribute 'extract'

Do you know what I'm missing?

gmaiab commented 3 years ago

Hi! What is your file name? If your python file name is "colorgram.py" (the same name as the package), try renaming it as something else and check if the problem persists.