Skip to content

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

@joscha

Description

@joscha

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 <module>
    from affinity import affinity_source
  File "/Users/joscha/dev/dlt-test/affinity_pipeline/affinity/__init__.py", line 5, in <module>
    from rest_api import rest_api_source
  File "/Users/joscha/dev/dlt-test/affinity_pipeline/rest_api/__init__.py", line 39, in <module>
    from .config_setup import (
  File "/Users/joscha/dev/dlt-test/affinity_pipeline/rest_api/config_setup.py", line 47, in <module>
    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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions