Skip to content

Python 3.6 syntax error line 184/185 in settings.py? #6673

Answered by candlerb
4fd81048-Brian asked this question in Q&A
Discussion options

You must be logged in to vote

If you look at your backtrace, rather clearly you are running this under python 2.7 - and hence the error.

To run nbshell, you need to activate your virtualenv first:

cd /opt/netbox
. venv/bin/activate
python3 netbox/manage.py nbshell

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@4fd81048-Brian
Comment options

@candlerb
Comment options

Answer selected by 4fd81048-Brian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants