-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError when upgrading to 2.0.5 using upgrade.sh #1253
Comments
What version of Python are you running NetBox on? |
root@netbox:/opt/netbox# python3 --version |
Also just hit this. So apparently (at least on my dev 16.04 box), ubuntu ships with python and python3 but only pip. So the upgrade script chooses python3 but is forced to choose pip. So seems like the upgrade script needs to be changed to use python3 & pip3 OR python & pip, not one of each.
|
Awesome. Yeah, the Python 2/3 stuff is a mess. The upgrade script defaults to py3 as of 834c396 but it has no way to know which it should use if both versions are installed. |
WorkaroundHere's a temporary workaround for people running into this bug. Instead of running Python 2
Python 3
|
I've updated the script to a) only use Python3 if both |
Thank you @jeremystretch |
Updating via GIT from 2.0.4 to 2.0.5:
Error:
The text was updated successfully, but these errors were encountered: