dlt-hub / dlt-hub/dlt-init-openapi
pkg_resources deprecated
- Dominant language
- Python
- Stars
- 39
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
New user testing this out, so sorry for any misunderstandings. I'm trying to follow the guide here -> https://dlthub.com/docs/dlt-ecosystem/verified-sources/openapi-generator for reference.
Running:
```$ dlt-init-openapi pokemon --url https://raw.githubusercontent.com/dlt-hub/dlt-init-openapi/devel/tests/cases/e2e_specs/pokeapi.yml --global-limit 2```
Gave
```
Traceback (most recent call last):
File "/home/kevin/.local/bin/dlt-init-openapi", line 5, in
from dlt_init_openapi.cli import app
File "/home/kevin/.local/lib/python3.12/site-packages/dlt_init_openapi/__init__.py", line 16, in
from .parser.openapi_parser import OpenapiParser
File "/home/kevin/.local/lib/python3.12/site-packages/dlt_init_openapi/parser/openapi_parser.py", line 18, in
from dlt_init_openapi.parser.endpoints import EndpointCollection
File "/home/kevin/.local/lib/python3.12/site-packages/dlt_init_openapi/parser/endpoints.py", line 10, in
from dlt_init_openapi.parser.models import DataPropertyPath, SchemaWrapper
File "/home/kevin/.local/lib/python3.12/site-packages/dlt_init_openapi/parser/models.py", line 9, in
from dlt.common.utils import digest128
File "/home/kevin/.local/lib/python3.12/site-packages/dlt/__init__.py", line 34, in
from dlt.pipeline import (
File "/home/kevin/.local/lib/python3.12/site-packages/dlt/pipeline/dbt.py", line 9, in
from dlt.helpers.dbt import (
File "/home/kevin/.local/lib/python3.12/site-packages/dlt/helpers/dbt/__init__.py", line 3, in
import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'
```
So I found this thread -> https://stackoverflow.com/questions/7446187/no-module-named-pkg-resources which mentions that pkg_resources was removed from setuptools in version 82. I downgraded setuptools to v81 and it spits out this warning:
```
The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
```
Contributor guide
Assessment
This issue has not been assessed yet.