mat2 0.13.3 is unusable with TypeError
When trying to run mat2 on:
$ lsb_release -a
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
$ python3 --version
Python 3.7.3
I get this traceback :
Traceback (most recent call last):
File "./mat2", line 4, in <module>
__import__('pkg_resources').run_script('mat2==0.13.3', 'mat2')
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 666, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1446, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python3.7/dist-packages/mat2-0.13.3-py3.7.egg/EGG-INFO/scripts/mat2", line 14, in <module>
from libmat2 import parser_factory, UNSUPPORTED_EXTENSIONS
File "/usr/local/lib/python3.7/dist-packages/mat2-0.13.3-py3.7.egg/libmat2/parser_factory.py", line 45, in <module>
def get_parser(filename: str) -> tuple[Optional[T], Optional[str]]:
TypeError: 'type' object is not subscriptable
Which reminds me of #184 (closed) I guess it's the same kind of issue.
Edited by jvoisin