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

Import error using Python 3.11.0 #63

Closed
GennadyShelukhin opened this issue Oct 28, 2022 · 4 comments · Fixed by #65
Closed

Import error using Python 3.11.0 #63

GennadyShelukhin opened this issue Oct 28, 2022 · 4 comments · Fixed by #65

Comments

@GennadyShelukhin
Copy link

I try using this library in Python 3.11.0 and I get an import error:

    import exrex
../../../env/lib/python3.11/site-packages/exrex.py:25: in <module>
    from re import sre_parse, U
E   ImportError: cannot import name 'sre_parse' from 're'
@sebix
Copy link
Contributor

sebix commented Oct 29, 2022

Does using re._parser instead work?

@GennadyShelukhin
Copy link
Author

It doesn't work as it is now. python/cpython#91308

@sondrelg
Copy link

@asciimoo are you still maintaining this package? Don't want to nag you, but this issue is also blocking us from upgrading to Python 3.11, so want to know whether we should look for other ways of solving the issue 🙂

@Shapedsundew9
Copy link

+1 on this. Proposed fix is good for 3.11.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants