netbox-community / netbox

The premier source of truth powering network automation. Open source under Apache 2. Try NetBox Cloud free: https://netboxlabs.com/free-netbox-cloud/
http://netboxlabs.com/oss/netbox/
Apache License 2.0
16.11k stars 2.58k forks source link

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

Closed reduzent closed 8 months ago

reduzent commented 8 months ago

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
jeremystretch commented 8 months ago

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

reduzent commented 8 months ago

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