got error when "pip install masked_ai"
ozbillwang opened this issue · 4 comments
Something wrong with the pip packaging.
Discarding https://files.pythonhosted.org/packages/1a/a3/df69128e571c66047edcc4d09d015f8c675d045cc6ed0fa61485545710cd/masked_ai-1.0.15.tar.gz (from https://pypi.org/simple/masked-ai/): Requested masked_ai from https://files.pythonhosted.org/packages/1a/a3/df69128e571c66047edcc4d09d015f8c675d045cc6ed0fa61485545710cd/masked_ai-1.0.15.tar.gz (from -r requirements.txt (line 3)) has inconsistent version: expected '1.0.15', but metadata has '0.0.0'
I can lock the version to 1.0.14
and pip install
is successful, then got second issue:
ImportError: cannot import name 'Masker' from 'masked_ai'
Hello, What os and python version are you running please?
I've just tested python3.11 on osx and this works for me (note pip3):
pip3 install install masked_ai
I can lock the version to
1.0.14
andpip install
is successful, then got second issue:ImportError: cannot import name 'Masker' from 'masked_ai'
@ozbillwang You have to import it as followed:
from masked_ai.masker import Masker
The chosen naming is pretty confusing but you won't get the class without specifying it like that. Atleast on windows i guess.