FS#77393 - python-omegaconf 2.3.0-1 import causes TypeError
Attached to Project:
Community Packages
Opened by Mateen Ulhaq (YodaEmbedding) - Sunday, 05 February 2023, 01:14 GMT
Last edited by Toolybird (Toolybird) - Sunday, 05 February 2023, 06:43 GMT
Opened by Mateen Ulhaq (YodaEmbedding) - Sunday, 05 February 2023, 01:14 GMT
Last edited by Toolybird (Toolybird) - Sunday, 05 February 2023, 06:43 GMT
|
Details
Description:
Importing omegaconf causes TypeError. Additional info: * python-omegaconf 2.3.0-1 * python-antlr4 4.11.1-1 Steps to reproduce: Run `python -c 'import omegaconf'`. --- Full output: ```bash λ python -c 'import omegaconf' Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python3.10/site-packages/omegaconf/__init__.py", line 1, in <module> from .base import Container, DictKeyType, Node, SCMode, UnionNode File "/usr/lib/python3.10/site-packages/omegaconf/base.py", line 11, in <module> from ._utils import ( File "/usr/lib/python3.10/site-packages/omegaconf/_utils.py", line 34, in <module> from .grammar_parser import SIMPLE_INTERPOLATION_PATTERN, parse File "/usr/lib/python3.10/site-packages/omegaconf/grammar_parser.py", line 12, in <module> from .grammar_visitor import ( # type: ignore File "/usr/lib/python3.10/site-packages/omegaconf/grammar_visitor.py", line 25, in <module> from omegaconf.grammar.gen.OmegaConfGrammarLexer import OmegaConfGrammarLexer File "/usr/lib/python3.10/site-packages/omegaconf/grammar/gen/OmegaConfGrammarLexer.py", line 204, in <module> class OmegaConfGrammarLexer(Lexer): File "/usr/lib/python3.10/site-packages/omegaconf/grammar/gen/OmegaConfGrammarLexer.py", line 206, in OmegaConfGrammarLexer atn = ATNDeserializer().deserialize(serializedATN()) File "/home/mulhaq/.local/lib/python3.10/site-packages/antlr4/atn/ATNDeserializer.py", line 61, in deserialize self.reset(data) File "/home/mulhaq/.local/lib/python3.10/site-packages/antlr4/atn/ATNDeserializer.py", line 91, in reset temp = [ adjust(c) for c in data ] File "/home/mulhaq/.local/lib/python3.10/site-packages/antlr4/atn/ATNDeserializer.py", line 91, in <listcomp> temp = [ adjust(c) for c in data ] File "/home/mulhaq/.local/lib/python3.10/site-packages/antlr4/atn/ATNDeserializer.py", line 89, in adjust v = ord(c) TypeError: ord() expected string of length 1, but int found ``` |
This task depends upon
Closed by Toolybird (Toolybird)
Sunday, 05 February 2023, 06:43 GMT
Reason for closing: Not a bug
Additional comments about closing: Reporter says "Sorry, the user-installed package antlr4-python3-runtime-4.9.3 was causing problems."
Sunday, 05 February 2023, 06:43 GMT
Reason for closing: Not a bug
Additional comments about closing: Reporter says "Sorry, the user-installed package antlr4-python3-runtime-4.9.3 was causing problems."
Comment by
Mateen Ulhaq (YodaEmbedding) -
Sunday, 05 February 2023, 01:19 GMT
Resolved by uninstalling user home installed packages.