dlt-hub / dlt-hub/dlt-init-openapi

Newly generated pipeline fails with `ImportError: cannot import name 'OAuth2ClientCredentials'`

Open
#130 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
39
Forks
8
PR merge metrics
No merged PRs in 30d

Description

A freshly generated pipeline with:

```
dlt-init-openapi affinity --url https://raw.githubusercontent.com/planet-a-ventures/affinity-node/refs/heads/main/openapi/2024-11-18.json --global-limit 2
```
yields
```
Traceback (most recent call last):
File "/Users/joscha/dev/dlt-test/affinity_pipeline/affinity_pipeline.py", line 3, in
from affinity import affinity_source
File "/Users/joscha/dev/dlt-test/affinity_pipeline/affinity/__init__.py", line 5, in
from rest_api import rest_api_source
File "/Users/joscha/dev/dlt-test/affinity_pipeline/rest_api/__init__.py", line 39, in
from .config_setup import (
File "/Users/joscha/dev/dlt-test/affinity_pipeline/rest_api/config_setup.py", line 47, in
from dlt.sources.helpers.rest_client.auth import (
ImportError: cannot import name 'OAuth2ClientCredentials' from 'dlt.sources.helpers.rest_client.auth' (/Users/joscha/dev/dlt-test/.devenv/state/venv/lib/python3.11/site-packages/dlt/sources/helpers/rest_client/auth.py)
```
on running the pipeline. Possibly related to an outdated dlt version?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.