darvid / python-hyperscan

🐍 A CPython extension for the Hyperscan regular expression matching library.
https://python-hyperscan.readthedocs.io/en/latest/
MIT License
165 stars 28 forks source link

Can't import from hyperscan in python 3.12 #98

Closed ekneg54 closed 9 months ago

ekneg54 commented 10 months ago

I was able to install via pip, but if I try to import hyperscan, python complains about it can't find the module hyperscan._hyperscan as seen here:

image
betterlch commented 10 months ago

Have a try: https://github.com/darvid/python-hyperscan/issues/30#issuecomment-1605627150

ekneg54 commented 10 months ago

yes... this does the job. but could we get an installable package? we redistribute hyperscan in our product and it is a poor solution to manually do this renaming after install :-/

ekneg54 commented 10 months ago

by running our tests we saw, that the import error disappeared but die lib is not working anymore. It does nothing.

darvid commented 9 months ago

please try one of the 3.12 wheels from here: https://github.com/darvid/python-hyperscan/actions/runs/6918986174

I will try to get CI updated soon to force push them to the current release in PyPI, currently no other changes have been made to warrant a new library version, otherwise normally the wheels would be uploaded with a new release.

ekneg54 commented 9 months ago

thank you... We will wait for the force push

darvid commented 9 months ago

wheels pushed

ekneg54 commented 9 months ago

thank you very much... seems to work