incomptibility between djangorestframework-extentions and python3

Hi! i've been working on a project for an year. I used to use python2.7, but today i decided to upgrade it to python3.6. i've also upgraded pip, but when i run the command : *pip3 install djangorestframework-extensions *it gets the error: ERROR: Command errored out with exit status 1: command: /home/anamaria/workspace/licenta/AllFest2/festivals/myenv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-x3v6z7qz/djangorestframework-extensions/setup.py'"'"'; __file__='"'"'/tmp/pip-install-x3v6z7qz/djangorestframework-extensions/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-x3v6z7qz/djangorestframework-extensions/pip-egg-info cwd: /tmp/pip-install-x3v6z7qz/djangorestframework-extensions/ Complete output (6 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-x3v6z7qz/djangorestframework-extensions/setup.py", line 48 print "You probably want to also tag the version now:" ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("You probably want to also tag the version now:")? ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. i've reinstalled django and djangorestframework using python3. but it keeps showing the error.

That's a problem with djangorestframework-extensions library, which is a third party library, and not maintained by us. Looking at PyPI, last release for the framework was 2012, so perhaps it's not maintained anymore. https://pypi.org/project/djangorestframework-extensions/ On Thu, Mar 5, 2020 at 1:50 PM Anamaria Afanasov <anamariaafanasov@gmail.com> wrote:
Hi! i've been working on a project for an year. I used to use python2.7, but today i decided to upgrade it to python3.6. i've also upgraded pip, but when i run the command : *pip3 install djangorestframework-extensions *it gets the error: ERROR: Command errored out with exit status 1: command: /home/anamaria/workspace/licenta/AllFest2/festivals/myenv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-x3v6z7qz/djangorestframework-extensions/setup.py'"'"'; __file__='"'"'/tmp/pip-install-x3v6z7qz/djangorestframework-extensions/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-x3v6z7qz/djangorestframework-extensions/pip-egg-info cwd: /tmp/pip-install-x3v6z7qz/djangorestframework-extensions/ Complete output (6 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-x3v6z7qz/djangorestframework-extensions/setup.py", line 48 print "You probably want to also tag the version now:" ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("You probably want to also tag the version now:")? ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
i've reinstalled django and djangorestframework using python3. but it keeps showing the error. _______________________________________________ docs mailing list -- docs@python.org To unsubscribe send an email to docs-leave@python.org https://mail.python.org/mailman3/lists/docs.python.org/
participants (2)
-
Anamaria Afanasov
-
Mariatta