Answer the question
In order to leave comments, you need to log in
What causes a SyntaxError in a Django library?
Hello. When deploying a django project developed on Ubuntu on a server with Debian 7.8 (wheezy), I encountered a problem: one of the django libraries crashes with a SyntaxError error.
We are talking about django-autoslug. Both janga and the library itself were installed via pip. The only obvious differences on the servers are the python version. The development was on 3.4, on the server 3.2.
Specific error text:
python3 /usr/local/lib/python3.2/dist-packages/autoslug/utils.py
File "/usr/local/lib/python3.2/dist-packages/autoslug/utils.py", line 172
def _slugify(value, delim=u'-', encoding=''):
^
SyntaxError: invalid syntax
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question