aboutcode-org / aboutcode-org/scancode-toolkit

"Deprecated"-UserWarning for "pkg_resources"

Offen
#4,590 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Python
Sterne
2.6k
Forks
791
Ø Merge
1 T. 12 Std.
Gemergte PRs (30 T.)
5

Beschreibung

### Description

Since a longer time I often get the following warning:

```
/home/tgodau/venv3.12-scancode/lib/python3.12/site-packages/typecode/_vendor/pygments/plugin.py:46: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
import pkg_resources
```

### How To Reproduce

Just scan a component with:

```
scancode -n 3 -clip --json-pp .json --license-text
```

### System configuration

> For bug reports, it really helps us to know:

* What OS are you running on? Linux, Ubuntu 24.04.3 LTS
* What version of scancode-toolkit was used to generate the scan file? v32.4.1 on Python 3.12 in a venv
* What installation method was used to install/run scancode? Clean pip install (https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html#pip-install)

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.