Please add support for python 3.10
See original GitHub issueFeature Request
System information
ONNX version (you are using): 1.10.1
What is the problem that this feature solves?
Please detail the discrepancy with our current functionality. When I ran it with python 3.10 and this code:
reduce_min_node = onnx.helper.make_node('ReduceMin', [tensor], [tensor + '_ReduceMin'], reduce_min_name, keepdims=keepdims)
I got the following error:
File "/home/chasun/.local/lib/python3.10/site-packages/onnx/helper.py", line 115, in make_node
node.attribute.extend(
File "/home/chasun/.local/lib/python3.10/site-packages/google/protobuf/internal/containers.py", line 413, in extend
for message in elem_seq:
File "/home/chasun/.local/lib/python3.10/site-packages/onnx/helper.py", line 116, in <genexpr>
make_attribute(key, value)
File "/home/chasun/.local/lib/python3.10/site-packages/onnx/helper.py", line 364, in make_attribute
is_iterable = isinstance(value, collections.Iterable)
AttributeError: module 'collections' has no attribute 'Iterable'
Describe the alternatives you have considered
Do not use python 3.10
Describe the feature
Why is this feature necessary? What does it accomplish? To support new python versions
Will this influence the current api?
If yes, how?
No
Feature Area
Which area in ONNX does this impact? (e.g. model usage, backend, best practices, converters, shape_inference, version_converter, training, test, operators):
Are you willing to contribute it (Y/N):
No. There has been a PR. #3106
Notes
Any additional information
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Please add Python 3.10 support #254 - USEPA/WNTR - GitHub
As reported in #194, it is possible to generate the necessary library for Python 3.10 in the sources of the latest release: set...
Read more >What's New In Python 3.10 — Python 3.11.1 documentation
An import-time DeprecationWarning has now been added to all three of these modules. base64¶. Add base64.b32hexencode() and base64.b32hexdecode() to support the ...
Read more >Please add support for Python 3.10.8 - Google Groups
Traceback (most recent call last): File "/usr/share/tuxedo/wmi-ui/starter.py", line 8, in <module> from mainwindow import MainWindow
Read more >Python 3.10 support table for most popular Python packages
Python 3.10 is a currently supported version of Python . This site shows Python 3.10 support for the 360 most downloaded packages on...
Read more >When should you upgrade to Python 3.11?
Please add the directory containing pg_config to the $PATH or specify the ... until they had Python 3.9 support, and 3 months after...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @snnn, Thank you for catching this. I also have an existing PR covers it: https://github.com/onnx/onnx/pull/3674
@jcwchen Thx now it works so there was a conflict of version I guess ! Problem solved 😃