Updating datasource from git repo fails: "No module named 'dulwich'" #17780
Replies: 2 comments
-
If that error message isn't clear enough: you need to run
(possibly as root) to fix the problem. To make the solution permanent (including through future upgrades), edit or create The documentation also mentions this here although without telling you exactly how to install the package. |
Beta Was this translation helpful? Give feedback.
-
@candlerb I fixed it, yes and local_requirements is also a way to fix, but shouldn't it be included? I see that from v3.6.0 (2023-08-30) it isn't installed by default, will include in local_requirements then. The boto3 and dulwich packages are no longer installed automatically. If needed for S3/git remote data backend support, add them to local_requirements.txt to ensure their installation. |
Beta Was this translation helpful? Give feedback.
-
Deployment Type
Self-hosted
Triage priority
N/A
NetBox Version
4.1.4
Python Version
3.10
Steps to Reproduce
Configure a new data source of the type "Git"
Update the data source by clicking the "Sync" button
Expected Behavior
The job should complete without errors.
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
Beta Was this translation helpful? Give feedback.
All reactions