Missing dependency on requirements.txt #8656

Closed
opened 2025-12-29 20:39:29 +01:00 by adam · 4 comments
Owner

Originally created by @aseques on GitHub (Sep 21, 2023).

Originally assigned to: @arthanson on GitHub.

NetBox version

develop

Python version

3.8

Steps to Reproduce

On commit d87235af2f from 20230426 an import of the module requests was added into netbox/settings.py

It needs to be added into the general requirements.txt because it's missing on default installs

ModuleNotFoundError: No module named 'requests'

Expected Behavior

Update should have taken care of this new dependency

Observed Behavior

ModuleNotFoundError: No module named 'requests'

Originally created by @aseques on GitHub (Sep 21, 2023). Originally assigned to: @arthanson on GitHub. ### NetBox version develop ### Python version 3.8 ### Steps to Reproduce On commit d87235af2fc560731802ba475018b13a0c82af5c from 20230426 an import of the module requests was added into netbox/settings.py It needs to be added into the general requirements.txt because it's missing on default installs `ModuleNotFoundError: No module named 'requests'` ### Expected Behavior Update should have taken care of this new dependency ### Observed Behavior `ModuleNotFoundError: No module named 'requests'`
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 20:39:29 +01:00
adam closed this issue 2025-12-29 20:39:29 +01:00
Author
Owner

@jeremystretch commented on GitHub (Sep 21, 2023):

Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports.

@jeremystretch commented on GitHub (Sep 21, 2023): Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports.
Author
Owner

@jeremystretch commented on GitHub (Sep 21, 2023):

requests is not specifically called out in requirements.txt but is pulled in via two required packages, so if you have installed NetBox per the documentation this condition should not occur.

@jeremystretch commented on GitHub (Sep 21, 2023): `requests` is not specifically called out in `requirements.txt` but is pulled in via two required packages, so if you have installed NetBox per the documentation this condition should not occur.
Author
Owner

@jeremystretch commented on GitHub (Oct 5, 2023):

We've added requests to requirements.txt, although it's still not clear how the situation above developed.

@jeremystretch commented on GitHub (Oct 5, 2023): We've added `requests` to `requirements.txt`, although it's still not clear how the situation above developed.
Author
Owner

@aseques commented on GitHub (Oct 11, 2023):

Thansk @jeremystretch unfortunately I wasn't able to create reproducible setup but I'm glad it's fixed now

@aseques commented on GitHub (Oct 11, 2023): Thansk @jeremystretch unfortunately I wasn't able to create reproducible setup but I'm glad it's fixed now
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8656