upgrade.sh doesn't pull setuptools>=36 #3997

Closed
opened 2025-12-29 18:32:32 +01:00 by adam · 1 comment
Owner

Originally created by @SA0TAY on GitHub (Aug 19, 2020).

Environment

  • Python version: 3.8.5
  • NetBox version: 2.8.9

Steps to Reproduce

  1. Upgrade from v2.6.3 to v2.8.9 using git
  2. Run upgrade.sh. (I also pulled django-auth-ldap since we use LDAP, but I don't know if it's needed for reproducing this issue)
  3. Try to visit e. g. a tenant page.

Expected Behaviour

The tenant page should open.

Observed Behaviour

The following exception is thrown:

<class 'pkg_resources.VersionConflict'>

(setuptools 33.1.1 (/opt/netbox/venv/lib/python3.8/site-packages), Requirement.parse('setuptools>=36'))

Workaround

Either adding setuptools>=36 to requirements.txt and running upgrade.sh again or just running pip install setuptools>=36 within the environment fixed the error.

Proposed solution

Add setuptools>=36 to requirements.txt.

Originally created by @SA0TAY on GitHub (Aug 19, 2020). <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report, and that any plugins have been disabled. --> ### Environment * Python version: 3.8.5 * NetBox version: 2.8.9 <!-- Describe in detail the exact steps that someone else can take to reproduce this bug using the current stable release of NetBox. Begin with the creation of any necessary database objects and call out every operation being performed explicitly. If reporting a bug in the REST API, be sure to reconstruct the raw HTTP request(s) being made: Don't rely on a client library such as pynetbox. --> ### Steps to Reproduce 1. Upgrade from v2.6.3 to v2.8.9 using git 2. Run `upgrade.sh`. (I also pulled `django-auth-ldap` since we use LDAP, but I don't know if it's needed for reproducing this issue) 3. Try to visit e. g. a tenant page. <!-- What did you expect to happen? --> ### Expected Behaviour The tenant page should open. <!-- What happened instead? --> ### Observed Behaviour The following exception is thrown: ``` <class 'pkg_resources.VersionConflict'> (setuptools 33.1.1 (/opt/netbox/venv/lib/python3.8/site-packages), Requirement.parse('setuptools>=36')) ``` ### Workaround Either adding `setuptools>=36` to `requirements.txt` and running `upgrade.sh` again or just running `pip install setuptools>=36` within the environment fixed the error. ### Proposed solution Add `setuptools>=36` to `requirements.txt`.
adam closed this issue 2025-12-29 18:32:32 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 27, 2020):

This appears to be an issue with your local environment. Try upgrading pip and then recreating the virtual environment. If you still need further assistance, please post to the mailing list.

@jeremystretch commented on GitHub (Aug 27, 2020): This appears to be an issue with your local environment. Try upgrading pip and then recreating the virtual environment. If you still need further assistance, please post to the [mailing list](https://groups.google.com/forum/#!forum/netbox-discuss).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3997