[Bug]: cannot import sub module of anomalib: no module named "anomalib.XXX" #1699
Replies: 5 comments 1 reply
-
Hi, this is an issue as the main branch is already on v1 while the one from pip is still 0.7. Follow the instructions here https://github.com/openvinotoolkit/anomalib#-installation under tab "install from source" to get the latest v1 update where engine is available. |
Beta Was this translation helpful? Give feedback.
-
@leopardyao, how do you get the notebook? Download it from the main branch? as @blaz-r pointed out, you have two options: Use v0.7.0In this case, you could download anomalib via pypi. However, to use the notebooks, you need to use the specific branch. For example; Use v1.0.0devIf you would like to try the new v1 stuff, then you will need to install the library from source Let us know if this fixes your issue. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@shanmugamani1023, can you delete anomalib and install again? Seems like there is conflict in your versions. |
Beta Was this translation helpful? Give feedback.
-
I'm moving this to discussion, we can continue there. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I installed anomalib with pip install anomalib[full] with no errors. When I type "import anomalib" I get no errors.
However, if I begin to import sub modules or run the "gettstarted" notebook,
I will get ModuleNotFoundError: No module named 'anomalib.engine' or etc.
not sure where I did wrong.
Dataset
N/A
Model
N/A
Steps to reproduce the behavior
python -m venv anomalib_env
"from anomalib.engine import Engine"
OS information
OS information:
Expected behavior
I expect I can import submodule
Screenshots
Pip/GitHub
pip
What version/branch did you use?
main
Configuration YAML
I did not change any configuration
Logs
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions