Python 3.6 syntax error line 184/185 in settings.py? #6673
Answered
by
candlerb
4fd81048-Brian
asked this question in
Q&A
-
Maybe this is because I'm using Python 3.6, on Centos 7.9, but settings.py line 184 and 185 are causing me a syntax error with manage.py nbshell. If I remove the "f" it gets past that (but fails at from urllib.parse import urlsplit ImportError: No module named parse which is a different issue)
|
Beta Was this translation helpful? Give feedback.
Answered by
candlerb
Jun 28, 2021
Replies: 1 comment 2 replies
-
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:
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
4fd81048-Brian
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: