-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: module 'stone' has no attribute 'process' #15
Comments
Hi @ergo70, Thanks for your feedback. I tried on my side and in a Google Colab session, but it works well. Can you give me more details to reproduce this problem? Thanks! |
I tried with your minimal example: pip uninstall skin-tone-classifier skin-tone-classifier Version is 1.1.2 import stone image_path = "https://raw.githubusercontent.com/ChenglongMa/SkinToneClassifier/main/docs/demo.png" # Use the demo.png stored in my repo result = stone.process(image_path, image_type="color", return_report_image=False) Traceback (most recent call last): Maybe because I try it on Windows 11? |
I now tried it on WSL2 Ubuntu 22.04.3 LTS / Python 3.10.12 and it works without problems. As said, the stone.exe Script also works on Windows. The error occurs only when I try the library in code. |
Hi @ergo70, Are you using Anaconda, Miniconda, or pure Python? BTW, are there other folders or modules in your project named Thanks! |
Obviously, I had a stone.py leftover from earlier tests. Now it works... ;-\ Sorry for tripping over this. |
Hi @ergo70, I'm glad your problem was solved. Have a nice day :) |
The command line Version works, but:
I followed the instructions for using the library.
pip install skin-tone-classifier --upgrade
import stone
result = stone.process('xxx.jpg', image_type='color')
But then:
AttributeError: module 'stone' has no attribute 'process'
Python 3.10.11
The text was updated successfully, but these errors were encountered: