Skip to content
This repository has been archived by the owner on May 21, 2023. It is now read-only.

What version of Python does this API need to run on? #5

Open
huazaizhang opened this issue Apr 18, 2023 · 0 comments
Open

What version of Python does this API need to run on? #5

huazaizhang opened this issue Apr 18, 2023 · 0 comments

Comments

@huazaizhang
Copy link

What version of Python does this API need to run on? I tried running it on a Python 3.8 environment and it threw an error.
@zeroday0619

File "/Users/zhangweihua/work/workspace/python3workspace/Nintendo_Switch_Online_API_Bridge/nso_bridge/__init__.py", line 3, in <module> from nso_bridge.nsa import NintendoSwitchAccount File "/Users/zhangweihua/work/workspace/python3workspace/Nintendo_Switch_Online_API_Bridge/nso_bridge/nsa.py", line 10, in <module> from nso_bridge.models import ServiceToken, UserInfo File "/Users/zhangweihua/work/workspace/python3workspace/Nintendo_Switch_Online_API_Bridge/nso_bridge/models/__init__.py", line 1, in <module> from nso_bridge.models.accounts import Accounts, Login, ServiceToken File "/Users/zhangweihua/work/workspace/python3workspace/Nintendo_Switch_Online_API_Bridge/nso_bridge/models/accounts.py", line 74, in <module> class Login(BaseModel): File "pydantic/main.py", line 178, in pydantic.main.ModelMetaclass.__new__ File "pydantic/typing.py", line 399, in pydantic.typing.resolve_annotations """Special type construct to mark class variables. File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/typing.py", line 270, in _eval_type return t._evaluate(globalns, localns) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/typing.py", line 518, in _evaluate eval(self.__forward_code__, globalns, localns), File "<string>", line 1, in <module> TypeError: unsupported operand type(s) for |: 'ModelMetaclass' and 'NoneType'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant