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

Won't work with Python 3.6.x #7

Open
brianlie-tokopedia opened this issue Nov 18, 2022 · 1 comment
Open

Won't work with Python 3.6.x #7

brianlie-tokopedia opened this issue Nov 18, 2022 · 1 comment

Comments

@brianlie-tokopedia
Copy link

Reproducing with these steps

  • Create a conda environment conda create -n sqlparser python=3.6
  • Activate conda environment conda activate sqlparser
  • Install using pip via python binary python -m pip install bigquery-sql-parser
  • Open a Python interpreter and try to import the package
>>> from bigquery_sql_parser import query
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/brian.lie/miniconda3/envs/parser/lib/python3.6/site-packages/bigquery_sql_parser/query.py", line 8, in <module>
    from .tokenizer import Tokenizer
  File "/Users/brian.lie/miniconda3/envs/parser/lib/python3.6/site-packages/bigquery_sql_parser/tokenizer.py", line 1
    from __future__ import annotations
    ^
SyntaxError: future feature annotations is not defined
@maztohir
Copy link
Owner

Hi @brianlie-tokopedia ,
I will check on it, but as of now, would you mind using python=3.8 as a temp solution?

Thanks for noticing on 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

2 participants