<class 'ImportError'> cannot import name 'CONNECTION_STATUS_PLANNED' #3541

Closed
opened 2025-12-29 18:29:47 +01:00 by adam · 3 comments
Owner

Originally created by @resource-not-found-blank on GitHub (Apr 6, 2020).

Environment

  • Python version: 3.6.9
  • NetBox version: 2.7.11

Steps to Reproduce

  1. Create file in /opt/netbox/netbox/reports (example: 626513a8b2/docs/additional-features/reports.md)
  2. Use from dcim.constants import CONNECTION_STATUS_PLANNED
  3. Open /extras/reports/

Expected Behavior

Open list reports.

Observed Behavior

Error:
<class 'ImportError'> cannot import name 'CONNECTION_STATUS_PLANNED'

Originally created by @resource-not-found-blank on GitHub (Apr 6, 2020). ### Environment * Python version: 3.6.9 * NetBox version: 2.7.11 ### Steps to Reproduce 1. Create file in _/opt/netbox/netbox/reports_ (example: https://github.com/netbox-community/netbox/blob/626513a8b20d07e6339605e2652aceaae29b8e7f/docs/additional-features/reports.md) 2. Use _from dcim.constants import CONNECTION_STATUS_PLANNED_ 3. Open _/extras/reports/_ ### Expected Behavior Open list reports. ### Observed Behavior Error: **<class 'ImportError'> cannot import name 'CONNECTION_STATUS_PLANNED'**
adam closed this issue 2025-12-29 18:29:47 +01:00
Author
Owner

@jeremystretch commented on GitHub (Apr 6, 2020):

Thank you for your interest in NetBox. GitHub issues are intended for reporting reproducible bugs and requesting features, and must be submitted using one of the templates provided here. For general discussion, questions, or assistance with installation issues, please post to our mailing list instead.

@jeremystretch commented on GitHub (Apr 6, 2020): Thank you for your interest in NetBox. GitHub issues are intended for reporting reproducible bugs and requesting features, and must be submitted using one of the templates provided [here](https://github.com/netbox-community/netbox/issues/new/choose). For general discussion, questions, or assistance with installation issues, please post to our [mailing list](https://groups.google.com/forum/#!forum/netbox-discuss) instead.
Author
Owner

@resource-not-found-blank commented on GitHub (Apr 6, 2020):

Hello. I did not understand why closed my issue. This page have example: from dcim.constants import CONNECTION_STATUS_PLANNED
After upgrade netbox - example broken.

@resource-not-found-blank commented on GitHub (Apr 6, 2020): Hello. I did not understand why closed my issue. [This page](https://github.com/netbox-community/netbox/blob/626513a8b20d07e6339605e2652aceaae29b8e7f/docs/additional-features/reports.md) have example: **from dcim.constants import CONNECTION_STATUS_PLANNED** After upgrade netbox - example broken.
Author
Owner

@DanSheps commented on GitHub (Apr 7, 2020):

@A888R, if you need assistance building a report, please go to the mailing list as specified and ask for assistance there.

@DanSheps commented on GitHub (Apr 7, 2020): @A888R, if you need assistance building a report, please go to the mailing list as specified and ask for assistance there.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3541