Skip to content
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

pip3 instead of pip in install docs #1090

Closed
mzac opened this issue Apr 19, 2017 · 6 comments
Closed

pip3 instead of pip in install docs #1090

mzac opened this issue Apr 19, 2017 · 6 comments
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@mzac
Copy link

mzac commented Apr 19, 2017

Issue type: Bug report

Python version: 3
NetBox version: 1.9.5

While reading the install docs I decided to use Python 3 however getting to the step of 'pip install -r requirements.txt' this failed, the documentation needs to have 'pip3 install -r requirements.txt' added if you are using python3.

@jeremystretch
Copy link
Member

Can you please provide a detailed account of the installation procedure you followed?

@bellwood
Copy link
Contributor

There was a discussion in the Google group about this as well:

https://groups.google.com/forum/#!topic/netbox-discuss/Sc3Bp2glPqs

@jeremystretch jeremystretch added type: bug A confirmed report of unexpected behavior in the application and removed awaiting reply labels Apr 21, 2017
@jeremystretch
Copy link
Member

Turns out there are several issues when only Python 3 is installed (on Ubuntu, at least).

  • Ubuntu has different packages for psycopg2 under Python 2/3
  • Ubuntu does not provide /usr/bin/python (only /usr/bin/python3)
  • Ubuntu does not provide /usr/bin/pip (only /usr/bin/pip3)

@mzac
Copy link
Author

mzac commented Apr 21, 2017

Glad you found the fix :) I'm still quite new to python so I wasn't sure if I was missing something but it looks like I'll give it a retry on python 3 instead of python 2 now...

@bellwood
Copy link
Contributor

Prior to releasing v2.0 which will require Python3 we should make sure that the docs for both Ubuntu and RHEL/Cent are firm otherwise I can foresee a large inrush of related issues.

@jeremystretch
Copy link
Member

I've worked through a few Ubuntu and CentOS installations using Python 3 and I think this has been sorted. I'm going to close out this issue but please feel free to re-open or open a new one as appropriate for any outstanding issues.

Prior to releasing v2.0 which will require Python3

NetBox v2.0 won't require Python3 (although it's strongly encouraged). We'll still be on Django 1.11. Django 2.0 will drop support for Python3, but we probably won't move to Django 2.0 until sometime in early 2018. No promises, though.

lampwins pushed a commit to lampwins/netbox that referenced this issue Oct 13, 2017
lampwins pushed a commit to lampwins/netbox that referenced this issue Oct 13, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

3 participants