Unable to sync Git data source: UnboundLocalError #9383

Closed
opened 2025-12-29 20:49:10 +01:00 by adam · 1 comment
Owner

Originally created by @markkuleinio on GitHub (Mar 22, 2024).

Deployment Type

Self-hosted

NetBox Version

v3.7.4

Python Version

3.11

Steps to Reproduce

  1. Go to Operations - Data Sources - Add
  2. Name = Test, Type = Git, URL = https://github.com/markkuleinio/lopc
  3. Create
  4. Sync

Expected Behavior

The repo is public and the URL syntax is as described in the help page, so it is expected that the data source is synced successfully.

Observed Behavior

Sync job fails with error:

UnboundLocalError("cannot access local variable '_' where it is not associated with a value")

Originally created by @markkuleinio on GitHub (Mar 22, 2024). ### Deployment Type Self-hosted ### NetBox Version v3.7.4 ### Python Version 3.11 ### Steps to Reproduce 1. Go to Operations - Data Sources - Add 2. Name = Test, Type = Git, URL = https://github.com/markkuleinio/lopc 3. Create 4. Sync ### Expected Behavior The repo is public and the URL syntax is as described in the help page, so it is expected that the data source is synced successfully. ### Observed Behavior Sync job fails with error: **UnboundLocalError("cannot access local variable '_' where it is not associated with a value")**
adam closed this issue 2025-12-29 20:49:10 +01:00
Author
Owner

@markkuleinio commented on GitHub (Mar 22, 2024):

LOL closing this, did not install dulwich package --> installed it and works fine.

@markkuleinio commented on GitHub (Mar 22, 2024): LOL closing this, did not install `dulwich` package --> installed it and works fine.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9383