question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Please add support for python 3.10

See original GitHub issue

Feature 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jcwchencommented, Sep 16, 2021

Hi @snnn, Thank you for catching this. I also have an existing PR covers it: https://github.com/onnx/onnx/pull/3674

0reactions
piti-diablotincommented, Jan 7, 2022

@jcwchen Thx now it works so there was a conflict of version I guess ! Problem solved 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found