You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@WebcomCompany, your report does not contain sufficient information to identify the issue, so I can offer only some general observations:
Last Version Of IronPython 3.4.0 Error:
There is no 3.4.0 version of IronPython yet, so I assume you are working with 3.4.0b1
in c#:
{"invalid syntax"}
invalid syntax is a message of SyntaxError, so I assume this is the exception you are getting (as opposed to, e.g. NameError: name '__annotations__' is not defined or ImportError: No module named 'typing').
in Python Code:
_tensor_classes: Set[Type] = set()
This cannot be the source of the error because such statement does not produce SyntaxError (or any error for that matter) in IronPython 3.4:
IronPython 3.4.0b1 (3.4.0.0010)
[.NETCoreApp,Version=v6.0 on .NET 6.0.5 (64-bit)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> _tensor_classes: Set[Type] =set() # no error
>>> _tensor_classes
set()
Annotated assignment syntax has been introduced in Python 3.6 so you are trying to use a package designed for Python 3.6 (or later) with IronPython 3.4. Although IronPython 3.4 does include some partial support of later Python syntax (like annotated assignment syntax), module typing is not available. (Module typing is whence Set and Type come).
Support for type annotations is more complete in IronPython 3.6, but this version of IronPython is still under preparation to become the main development branch.
This Error From Torch Library
If you are trying to use package PyTorch with IronPython, then even IronPython 3.6 will not help you because PyTorch depends on Numpy and Numpy is presently not supported by IronPython.
### Last Version Of IronPython 3.4.0 Error:
in c#:
{"invalid syntax"}
in Python Code:
_tensor_classes: Set[Type] = set()
This Error From Torch Library
The text was updated successfully, but these errors were encountered: