Skip to content
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

Not able to run! #32

Open
blackspeck opened this issue Oct 12, 2020 · 3 comments
Open

Not able to run! #32

blackspeck opened this issue Oct 12, 2020 · 3 comments

Comments

@blackspeck
Copy link

Im not able to run user_overview.py I get this error message

File "tinker/user_overview.py“, line 2, in <module>
    from libs.bunq_lib import BunqLib
  File "/bunqtink/tinker/libs/bunq_lib.py", line 8, in <module>
    from bunq.sdk.client import Pagination
  File "/bunqtink/.venv/lib/python3.6/site-packages/bunq/__init__.py", line 6, in <module>
    from bunq.sdk.json import converter
  File "/bunqtink/.venv/lib/python3.6/site-packages/bunq/sdk/json/converter.py", line 1
    from __future__ import annotations
    ^
SyntaxError: future feature annotations is not defined
@schluchter
Copy link

I have encountered the same problem. When I go into converter.py and remove the offending import line
from __future__ import annotations, the file can still be run.

However, I then get an error of
Traceback (most recent call last): File "tinker/user_overview.py", line 2, in <module> from libs.bunq_lib import BunqLib File "/Users/Leiter/Developer/bunq-tinker/tinker/libs/bunq_lib.py", line 8, in <module> from bunq.sdk.client import Pagination File "/Users/Leiter/.local/share/virtualenvs/bunq-tinker-MGcC4iM-/lib/python3.6/site-packages/bunq/__init__.py", line 6, in <module> from bunq.sdk.json import converter File "/Users/Leiter/.local/share/virtualenvs/bunq-tinker-MGcC4iM-/lib/python3.6/site-packages/bunq/sdk/json/converter.py", line 22, in <module> class JsonAdapter(Generic[T]): File "/Users/Leiter/.local/share/virtualenvs/bunq-tinker-MGcC4iM-/lib/python3.6/site-packages/bunq/sdk/json/converter.py", line 67, in JsonAdapter adapter: Type[JsonAdapter]) -> None: NameError: name 'JsonAdapter' is not defined

@fleaz
Copy link

fleaz commented Apr 1, 2021

Hey,

it looks like both of you are using Python 3.6 in the virtualenvs. According to PEP-563, annotations is only available since Python 3.7 therefore the import is failing in your environments.

@schluchter
Copy link

@fleaz Yes, that's definitely it. The Pipfile specifies 3.6 as a requirement. Bumping up the version in the Pipfile should fix this.

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

No branches or pull requests

3 participants