shareplum
shareplum copied to clipboard
syntaxError while import
While making an old code compatible for python3 I got the error below
Traceback (most recent call last):
File "/home/lmycode.py", line 33, in
What could be the reason for the failure?
Same issue here.
What is your import statement and what python version are you using?
from shareplum import Site Was using python2 but since it's deprecating, needed it to be compatible with python 3 as well
I'm not sure why you are seeing this problem. Can you assure you have the latest version?
I am using Python v3.5 but the code worked fine in v2.7
If you pip install shareplum --upgrade, do you still see the issue?
Same issue here with Python v3.5 !!
It exits even after $ pip3 install shareplum --upgrade but the error message seem a bit different now File "/home/likhithn/.local/lib/python3.5/site-packages/shareplum/errors.py", line 4 super().init(f"{msg} : {details}") ^ SyntaxError: invalid syntax
Shareplum requires Python 3.6+, it does not support Python 3.5.
Python 3.5 is in end-of-life, it will not receive ANY updates starting next month, not even for security issues. Do not use Python 3.5 anymore. Update and you can enjoy shareplum.