Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v0.2.1 breaks Python 3.9 by using match statement #1442

Open
xavriley opened this issue Feb 24, 2025 · 0 comments
Open

Release v0.2.1 breaks Python 3.9 by using match statement #1442

xavriley opened this issue Feb 24, 2025 · 0 comments
Labels

Comments

@xavriley
Copy link

Describe the issue as clearly as possible:

I'm not sure what the intended Python version support is, but you have python>=3.9 in the pyproject.toml so I assume its still supported.

If I try to run a generation with outlines.generate.regex using outlines==0.2.1 I get an error due to the use of match here:

match (min_count, max_count):

match is Python 3.10 and above - downgrading outlines with:

pip install "outlines==0.1.14"

worked for me

Steps/code to reproduce the bug:

outlines.generate.regex(...)

Expected result:

No error should be thrown

Error message:

Outlines/Python version information:

outlines == 0.2.1
Python == 3.9.19

Context for the issue:

No response

@xavriley xavriley added the bug label Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant