Description
Hello, I just upgraded my ubuntu box to 24.10 which I guess updated Python to 3.12.
I can't import guessit anymore as I get a straight error below just by doing a very simple import.
Any ideas?
Thanks a lot!
`Python 3.12.7 (main, Nov 6 2024, 18:29:01) [GCC 14.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import guessit
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3/dist-packages/guessit/init.py", line 8, in
from .api import guessit, GuessItApi
File "/usr/lib/python3/dist-packages/guessit/api.py", line 17, in
from .rules import rebulk_builder
File "/usr/lib/python3/dist-packages/guessit/rules/init.py", line 11, in
from .properties.episodes import episodes
File "/usr/lib/python3/dist-packages/guessit/rules/properties/episodes.py", line 16, in
from .title import TitleFromPosition
File "/usr/lib/python3/dist-packages/guessit/rules/properties/title.py", line 11, in
from .language import (
File "/usr/lib/python3/dist-packages/guessit/rules/properties/language.py", line 77, in
NON_SPECIFIC_LANGUAGES = frozenset([UNDETERMINED, MULTIPLE])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/babelfish/language.py", line 155, in hash
return hash(str(self))
^^^^^^^^^
File "/usr/lib/python3/dist-packages/babelfish/language.py", line 178, in str
s = self.alpha2
^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/babelfish/language.py", line 150, in getattr
return language_converters[name].convert(alpha3, country, script)
~~~~~~~~~~~~~~~~~~~^^^^^^
File "/usr/lib/python3/dist-packages/babelfish/converters/init.py", line 243, in getitem
for ep in iter_entry_points(self.entry_point):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/babelfish/compat.py", line 28, in iter_entry_points
return entry_points().select(group=group, **kwargs)
^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/metadata/init.py", line 913, in entry_points
return EntryPoints(eps).select(**params)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/metadata/init.py", line 911, in
dist.entry_points for dist in _unique(distributions())
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/metadata/_itertools.py", line 16, in unique_everseen
k = key(element)
^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/metadata/init.py", line 835, in _normalized_name
or super().normalized_name
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/metadata/init.py", line 462, in normalized_name
return Prepared.normalize(self.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/metadata/init.py", line 762, in normalize
return re.sub(r"[-.]+", "-", name).lower().replace('-', '')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/re/init.py", line 186, in sub
return _compile(pattern, flags).sub(repl, string, count)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'NoneType'`