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

DBT requires Python 3.6.2+ #2360

Closed
5 tasks
Fokko opened this issue Apr 27, 2020 · 0 comments · Fixed by #2361
Closed
5 tasks

DBT requires Python 3.6.2+ #2360

Fokko opened this issue Apr 27, 2020 · 0 comments · Fixed by #2361
Labels
bug Something isn't working

Comments

@Fokko
Copy link
Contributor

Fokko commented Apr 27, 2020

Describe the bug

A clear and concise description of what the bug is. What command did you run? What happened?

From a confused user on Slack, which used Python 3.6.0, got the following error:

Traceback (most recent call last):
  File "/tmp/venv/bin/dbt", line 5, in <module>
    from dbt.main import main
  File "/tmp/venv/lib/python3.6/site-packages/dbt/main.py", line 10, in <module>
    import dbt.version
  File "/tmp/venv/lib/python3.6/site-packages/dbt/version.py", line 5, in <module>
    import dbt.exceptions
  File "/tmp/venv/lib/python3.6/site-packages/dbt/exceptions.py", line 3, in <module>
    from typing import NoReturn, Optional
ImportError: cannot import name 'NoReturn'

As the NoReturn is introduced in Python 3.6.2: https://docs.python.org/3/library/typing.html#typing.NoReturn

Steps To Reproduce

In as much detail as possible, please provide steps to reproduce the issue. Sample data that triggers the issue, example model code, etc is all very helpful here.

Run DBT 0.16.1 with Python <3.6.2:

Python 3.6.0:

MacBook-Pro-van-Fokko:home-analytics fokkodriesprong$ docker run -t -i python:3.6.0 python -c "from typing import NoReturn"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name 'NoReturn'

Python 3.6.1:

MacBook-Pro-van-Fokko:home-analytics fokkodriesprong$ docker run -t -i python:3.6.1 python -c "from typing import NoReturn"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name 'NoReturn'

Python 3.6.2:

MacBook-Pro-van-Fokko:home-analytics fokkodriesprong$ docker run -t -i python:3.6.2 python -c "from typing import NoReturn"

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots and log output

If applicable, add screenshots or log output to help explain your problem.

System information

Which database are you using dbt with?

  • postgres
  • redshift
  • bigquery
  • snowflake
  • other (specify: ____________)

The output of dbt --version:

root@8a3491679f36:/# dbt --version
installed version: 0.16.1
   latest version: 0.16.1

The operating system you're using:

OSX, see docker examples above

Additional context

Add any other context about the problem here.

@Fokko Fokko added bug Something isn't working triage labels Apr 27, 2020
@Fokko Fokko changed the title DBT requires Python 3.6.4+ DBT requires Python 3.6.2+ Apr 27, 2020
@drewbanin drewbanin removed the triage label Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants