Open sajfb opened 1 year ago
As this link, after python 3.10, Sequence
has been moved to collections.abc
not collections
.
You can use MinkowskiEngine on Python 3.10 by editing the following files.
MinkowskiEngine/utils/quantization.py
MinkowskiEngine/MinkowskiCommon.py
MinkowskiEngine/MinkowskiCoordinateManager.py
MinkowskiEngine/MinkowskiKernelGenerator.py
MinkowskiEngine/MinkowskiTensorField.py
# You should edit the code that import Sequence as following code..
try:
from collections import Sequence
except ImportError:
from collections.abc import Sequence
I just try to import MinkowskiEngine, but it has a major problem with its package dependency!
This is the error that I get on torch.version : '1.13.1+cu117' and python 3.10.6
This issue pertains to Python 3.10 which the collections package got changed. MinkowskiEngine requires some updates regarding to Python upgrades.