Dan-wanna-M / formatron

Formatron empowers everyone to control the format of language models' output with minimal overhead.
MIT License
163 stars 6 forks source link

ModuleNotFoundError: No module named 'grammar_generators' #16

Closed remichu-ai closed 2 months ago

remichu-ai commented 2 months ago

The 0.3.3 version had a bug as follow (the version that pip install). You may want to push an updated release to pypi. Install from source code doesnt have issue but many users might not be aware of this.

from formatron.formatter import FormatterBuilder
ModuleNotFoundError: No module named 'grammar_generators'
Dan-wanna-M commented 2 months ago

will look into this

Dan-wanna-M commented 2 months ago

@remichu-ai Should be fixed in v0.3.4 now. Python's import seems to have extremely weird behaviour.