OpenXbox / xbox-webapi-python

A python library to authenticate with Xbox Live via your Microsoft Account and provides Xbox related Web-API.
https://pypi.python.org/pypi/xbox-webapi
MIT License
176 stars 45 forks source link

Authentication error #1

Closed kufhjer closed 6 years ago

kufhjer commented 6 years ago

When trying to authenticate I receive the error below. Installed via PIP.

Traceback (most recent call last): File "/usr/local/bin/xbox_authenticate", line 7, in <module> from xbox.webapi.scripts.authenticate import main File "/usr/local/lib/python2.7/dist-packages/xbox/webapi/scripts/authenticate.py", line 6, in <module> from xbox.webapi.authentication.manager import AuthenticationManager File "/usr/local/lib/python2.7/dist-packages/xbox/webapi/authentication/manager.py", line 24, in <module> from xbox.webapi.authentication.two_factor import TwoFactorAuthentication File "/usr/local/lib/python2.7/dist-packages/xbox/webapi/authentication/two_factor.py", line 8, in <module> from xbox.webapi.common.enum import Enum File "/usr/local/lib/python2.7/dist-packages/xbox/webapi/common/enum.py", line 23 class Enum(metaclass=EnumType): ^ SyntaxError: invalid syntax

kufhjer commented 6 years ago

Update: Never mind, I see it is executing from version 2.7 instead of 3.

tuxuser commented 6 years ago

Hi, Indeed, python >= 3.4 is required. Does authentication work for you now?

kufhjer commented 6 years ago

Upgrading the workspace as we speak, will let you know.

kufhjer commented 6 years ago

Yes, it is working, thanks for the fast reply.