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

ImportError: cannot import name 'get_origin' #22

Closed
timbmg opened this issue Sep 17, 2022 · 1 comment
Closed

ImportError: cannot import name 'get_origin' #22

timbmg opened this issue Sep 17, 2022 · 1 comment

Comments

@timbmg
Copy link

timbmg commented Sep 17, 2022

When I run import datargs I get:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/mnt/beegfs/work/baumgaertner/gen-bioasq/.venv/lib64/python3.6/site-packages/datargs/__init__.py", line 1, in <module>
    from .make import parse, arg, make_parser, argsclass
  File "/mnt/beegfs/work/baumgaertner/gen-bioasq/.venv/lib64/python3.6/site-packages/datargs/make.py", line 58, in <module>
    from typing import (
ImportError: cannot import name 'get_origin'
@timbmg
Copy link
Author

timbmg commented Sep 17, 2022

Seems like get_origin was only introduced in python 3.8. So it won't work with earlier python versions.

@timbmg timbmg closed this as completed Sep 17, 2022
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

1 participant