-
Notifications
You must be signed in to change notification settings - Fork 16
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
SyntaxError: invalid syntax #1
Labels
bug
Something isn't working
Comments
Thank you for the issue! 👍 As specified, you should have at least Python 3.10, you have 3.9. Can you use 3.10 and tell me if it works for you? |
Upgraded to 3.10 and got the following error. Traceback (most recent call last):
File "C:\Users\Matt\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\Matt\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\Matt\AppData\Local\Programs\Python\Python310\Scripts\diagrams-as-code.exe\__main__.py", line 4, in <module>
File "C:\Users\Matt\AppData\Local\Programs\Python\Python310\lib\site-packages\diagrams_as_code\entrypoint.py", line 21, in <module>
from diagrams_as_code.schema import (
File "C:\Users\Matt\AppData\Local\Programs\Python\Python310\lib\site-packages\diagrams_as_code\schema.py", line 15, in <module>
class YamlDiagramStyle(BaseModel):
File "C:\Users\Matt\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic\_internal\_model_construction.py", line 173, in __new__
set_model_fields(cls, bases, config_wrapper, types_namespace)
File "C:\Users\Matt\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic\_internal\_model_construction.py", line 372, in set_model_fields
fields, class_vars = collect_model_fields(cls, bases, config_wrapper, types_namespace, typevars_map=typevars_map)
File "C:\Users\Matt\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic\_internal\_fields.py", line 97, in collect_model_fields
type_hints = get_cls_type_hints_lenient(cls, types_namespace)
File "C:\Users\Matt\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic\_internal\_typing_extra.py", line 212, in get_cls_type_hints_lenient
hints[name] = eval_type_lenient(value, globalns, localns)
File "C:\Users\Matt\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic\_internal\_typing_extra.py", line 221, in eval_type_lenient
value = _make_forward_ref(value, is_argument=False, is_class=True)
TypeError: ForwardRef.__init__() got an unexpected keyword argument 'is_class' |
@mr-shorten, hm, interesting. Can I ask you to try 3.11 as well? Just to double-check. Please! 🙏 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Getting the following error when trying to make a diagram from Example web-services-on-premise.yaml
Pip v23.2.1
Python v3.9.0
GraphViz v8.1.0
The text was updated successfully, but these errors were encountered: