Updating datasource from git repo fails: "No module named 'dulwich'" #9245

Closed
opened 2025-12-29 20:47:26 +01:00 by adam · 2 comments
Owner

Originally created by @reduzent on GitHub (Feb 14, 2024).

Deployment Type

Self-hosted

NetBox Version

v3.7.2

Python Version

3.11

Steps to Reproduce

  1. Configure a new data source of the type "Git"
  2. Update the data source by clicking the "Sync" button

Expected Behavior

The job should complete without errors.

It used to work with older versions of netbox. However, I don't know which is the last version that still worked.

Observed Behavior

The job fails with the following error:

SyncError("There was an error initializing the backend. A dependency needs to be installed: No module named 'dulwich'")

The issue can be worked-around by entering the venv and installing the module 'dulwich' manually with:

pip install dulwich
Originally created by @reduzent on GitHub (Feb 14, 2024). ### Deployment Type Self-hosted ### NetBox Version v3.7.2 ### Python Version 3.11 ### Steps to Reproduce 1. Configure a new data source of the type "Git" 2. Update the data source by clicking the "Sync" button ### Expected Behavior The job should complete without errors. It used to work with older versions of netbox. However, I don't know which is the last version that still worked. ### Observed Behavior The job fails with the following error: ``` SyncError("There was an error initializing the backend. A dependency needs to be installed: No module named 'dulwich'") ``` The issue can be worked-around by entering the venv and installing the module 'dulwich' manually with: ``` pip install dulwich ```
adam closed this issue 2025-12-29 20:47:26 +01:00
Author
Owner

@jeremystretch commented on GitHub (Feb 14, 2024):

dulwich is no longer installed by default. Please see the v3.6 release notes.

@jeremystretch commented on GitHub (Feb 14, 2024): `dulwich` is no longer installed by default. Please see the [v3.6 release notes](https://docs.netbox.dev/en/stable/release-notes/version-3.6/#breaking-changes).
Author
Owner

@reduzent commented on GitHub (Feb 14, 2024):

Ah, i see. Thanks for the heads-up and sorry for the noise.

@reduzent commented on GitHub (Feb 14, 2024): Ah, i see. Thanks for the heads-up and sorry for the noise.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9245