Jacinle icon indicating copy to clipboard operation
Jacinle copied to clipboard

Support python 3.10

Open cq01 opened this issue 3 years ago • 0 comments

Hi, I'm trying to run Jacinle in python 3.10, but it can't work.

What happen

When running in python 3.10, report

AttributeError: module 'collections' has no attribute 'Sequence'

Why happen

collections.[Sequence|Mapping|Set] moved into collections.abc, according to python docs

How I fix this

Just replace all collections.[Sequence|Mapping|Set] with collections.abc.[Sequence|Mapping|Set]

Python version

This should work since python>=3.3, according to python docs but this not supported in python 2.7

cq01 avatar Oct 19 '22 11:10 cq01