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

import error - version 0.11 #30

Closed
nitin-kakkar opened this issue Apr 8, 2021 · 2 comments
Closed

import error - version 0.11 #30

nitin-kakkar opened this issue Apr 8, 2021 · 2 comments

Comments

@nitin-kakkar
Copy link

hi @xnuinside
Hope you are doing well

i am getting following error while importing simple_ddl_parser. Could you please check

Python 3.7.7 (default, Mar 10 2020, 15:43:33) 
[Clang 11.0.0 (clang-1100.0.33.17)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from simple_ddl_parser import DDLParser
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/Dev/venv/lib/python3.7/site-packages/simple_ddl_parser/__init__.py", line 1, in <module>
    from simple_ddl_parser.ddl_parser import DDLParser, parse_from_file
  File "/Users/Dev/venv/lib/python3.7/site-packages/simple_ddl_parser/ddl_parser.py", line 3, in <module>
    from simple_ddl_parser.parser import Parser
  File "/Users/Dev/venv/lib/python3.7/site-packages/simple_ddl_parser/parser.py", line 3, in <module>
    from typing import Dict, List, Optional, Tuple, Literal
ImportError: cannot import name 'Literal' from 'typing' (/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/typing.py)
@xnuinside
Copy link
Owner

xnuinside commented Apr 8, 2021

@nitin-kakkar, dozens of 'sorry' I forgot that Literal only from 3.8 - please check 0.11.1, just released the fix. First that I will do in holidays - tests run under several python versions :) sorry again

@nitin-kakkar
Copy link
Author

thanks for quick fix @xnuinside .. really appreciate it.. you can close the issue

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