Skip to content

Won't work with Python 3.6.x #7

@brianlie-tokopedia

Description

@brianlie-tokopedia

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions