Skip to content

[Bug] Dulwich >=1.2.0 no longer contains a .contrib module #178

@noel-nf

Description

@noel-nf

Describe the bug
In an environment with airflow-dbt-python==3.5.0 and dulwich==1.2.1 (latest versions at the time of writing this), dulwich no longer contains a contrib module and I get a ModuleNotFoundError:

ModuleNotFoundError: No module named 'dulwich.contrib'

File "/home/airflow/.local/lib/python3.13/site-packages/airflow_dbt_python/hooks/dbt.py", line 291 in dbt_directory

File "/home/airflow/.local/lib/python3.13/site-packages/airflow_dbt_python/hooks/dbt.py", line 336 in prepare_directory

File "/home/airflow/.local/lib/python3.13/site-packages/airflow_dbt_python/hooks/dbt.py", line 146 in download_dbt_project

File "/home/airflow/.local/lib/python3.13/site-packages/airflow_dbt_python/hooks/dbt.py", line 118 in get_fs_hook

File "/home/airflow/.local/lib/python3.13/site-packages/airflow_dbt_python/hooks/fs/__init__.py", line 158 in get_fs_hook

File "/home/airflow/.local/lib/python3.13/site-packages/airflow_dbt_python/hooks/fs/git.py", line 8 in <module>

Airflow

  • Version: 3.2.1
  • Provider: self-hosted, K8S + Helm

Dbt

  • Version: 1.11.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions