Issue
Can someone help me fix this issue:
File "/Users/mac/PycharmProjects/NoteBot/main.py", line 5
PATH =
^
SyntaxError: invalid syntax
Solution
I think you are trying to run the PS5 bot using the inbuilt python that comes on your mac, i.e., probably Python2.7.
The issue is the author of the bot used a feature introduced in Python 3.5 called type hints.
So you need to change the version of Python that Pycharm is using to a version above 3.5 (google this). Or just run the script from the Terminal app using:
python3 /Users/mac/PycharmProjects/NoteBot/main.py
Note: You may need to install selenium etc. again here using pip3
. Pycharm probably will handle this for you if you get it to point at a Python3 installation.
Furthermore, if you want to learn to program in Python yourself after you snag a PS5 you may want to look into pyenv.
Answered By - Sash Sinha
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.