-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SyntaxError: invalid syntax #1
Comments
did you edit any of the text in that file at all? |
No, only the text in the config file. |
Hm. What version of python are you on? I just got this running a few minutes ago and it worked fine. Though I did have to modify that file a bit to remove a deprecated method further down. Check out my fork |
Python v3.4 Downloaded your fork. Now I get this: File "discord_xbl_status.py", line 7 |
What version of python? |
I'm confused. Package manager says: Python v3.4 But when I run python it says: 2.7.6 Any yes, I know you need 3.4+ for the script to work. So the error is obviously not the script itself. My bad. |
Check your PATH variable. Make sure it's pointing to the newer python version |
Should running "python3 discord_xbl_status.py" also work? Checking the PATH variable now. |
It could, not terribly sure on that one. |
Strange. No matter if I use your old or your new file, the error message is now a different one (< !DOCTYPE html>) |
Man, I give up. Thanks for your help. I get the same error in Windows (Python 3.6) and Ubuntu (Python 3.4) now. I desperately wanted this work, since its the only script of this kind I could find anywhere. So sad it's all so complicated :( |
Sorry I couldn't help more. I'm not quite sure what the issue is. |
Is the script working for you in both Windows and Linux (what distro do you use)? |
I'm on Windows 10. I just ran it through the command line. |
@Zorpix after updating the deprecated method did you run into any other issues? I get an unhandled event |
Hi Austin,
I'd really like to use your script and I have almost no clue what I'm doing, but I've installed everything as per your instructions and now get an error when executing the file as follows:
File "discord_xbl_status.py", line 40
def init(self, config: XblPresenceMonitorConfig, event_loop=None):
^
SyntaxError: invalid syntax
Did I do something wrong and if so, how can it be fixed?
The text was updated successfully, but these errors were encountered: