Closed chanicpanic closed 2 years ago
lark.grammars is declared as a package in setup.py, but lark/grammars is missing an __init__.py.
lark.grammars
lark/grammars
__init__.py
Without it, attempting something like Lark.open_from_package("lark.grammars", "lark.lark") fails.
Lark.open_from_package("lark.grammars", "lark.lark")
Thanks!
Just fyi, what I usually do is Lark.open_from_package("lark", "grammars/lark.lark")
Lark.open_from_package("lark", "grammars/lark.lark")
But there's no harm in having it both ways.
lark.grammars
is declared as a package in setup.py, butlark/grammars
is missing an__init__.py
.Without it, attempting something like
Lark.open_from_package("lark.grammars", "lark.lark")
fails.