Skip to content
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

[Bug]: Issue occurs in setuptools version 70 + #2126

Closed
1 task done
harimkang opened this issue Jun 12, 2024 · 1 comment
Closed
1 task done

[Bug]: Issue occurs in setuptools version 70 + #2126

harimkang opened this issue Jun 12, 2024 · 1 comment

Comments

@harimkang
Copy link
Collaborator

Describe the bug

from pkg_resources import packaging

An error occurs in environment where setuptools is version 70 or higher. This is related to this issue. pypa/setuptools#4376

This can cause issues with newer builds.

Dataset

N/A

Model

N/A

Steps to reproduce the behavior

Install anomalib==1.1.0 with setuptools==70.0.0

pip install setuptools==70.0.0
pip install 'anomalib[core]==1.1.0'
anomalib train ***

OS information

OS information:

  • OS: [e.g. Ubuntu 20.04]
  • Python version: [e.g. 3.10.0]
  • Anomalib version: [e.g. 0.3.6]
  • PyTorch version: [e.g. 1.9.0]
  • CUDA/cuDNN version: [e.g. 11.1]
  • GPU models and configuration: [e.g. 2x GeForce RTX 3090]
  • Any other relevant information: [e.g. I'm using a custom dataset]

Expected behavior

Install without error

Screenshots

Problem with given class_path 'otx.algo.anomaly.padim.Padim':        
cannot import name 'packaging' from 'pkg_resources' (/mnt/hdd1/miniforge3/envs/py310-otx/lib/python3.10/site-packages/pkg_resources/__init__.py)

Pip/GitHub

pip

What version/branch did you use?

1.1.0

Configuration YAML

N/A

Logs

Problem with given class_path 'otx.algo.anomaly.padim.Padim':        
cannot import name 'packaging' from 'pkg_resources' (/mnt/hdd1/miniforge3/envs/py310-otx/lib/python3.10/site-packages/pkg_resources/__init__.py)

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ashwinvaidya17
Copy link
Collaborator

#2082 should solve this issue when it is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants