Open brainfo opened 2 years ago
@brainfo, I think you are using intervaltree 2.x. Since intervaltree 3.0.0 (released in 2018) the MutableSet has been imported like this:
try:
from collections.abc import MutableSet # Python 3?
except ImportError:
from collections import MutableSet
We have been using intervaltree
3.1.0 on Python 3.10 and 3.11 and it has been working fine.
since collections in py 3.10 put MutableSet, MutableMapping, etc. in collections.abc insert these lines
from https://stackoverflow.com/questions/74006130/attributeerror-module-collections-has-no-attribute-mutableset in interveltree.py would get over this version problem.