-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Python3.9 installation errors #30
Comments
were you able to resolve this? the second error is probably because you installed libhs from a package manager rather than building from source. Debian/Ubuntu have <5.1 in the stable channels but this binding requires 5.2 or higher, so you probably need to build from source. |
I noticed the stable versions of libhyperscan for Debian and macOS are different (should be v5.1 on Debian/Ubuntu and v5.4 on MacOS), so I hope that the Debian one will be updated (sooner or later...). At the moment, I'm using a workaround where I download hyperscan==0.2.0 on MacOS and hyperscan==0.1.5 on Debian. Nevertheless, what I still don't get, it's why on Debian, given the "working" environment with stable libhyperscan5, hyperscan==0.1.5 only works with python3.7 and python3.8, and fails with python3.9. In this case, the corresponding package in pypi should be updated as Requires: Python >=3.5, <3.9 |
I'm using 3.9 on my personal machine, and the wheels are built on each cpython version currently supported, and you can see a successful run here. so 3.9 is supported and working, I think you just need to build a more recent version of Hyperscan from source on Debian. |
I built hyperscan from source (using docker container
At this stage, I'm not sure whether it is related to this pip package or to hyperscan itself. |
did you install hyperscan to |
I installed it in |
ah, you need to build Hyperscan with |
Hi, after building hyperscan from source following your indications I managed to test the python package successfully. So, I think we can close the issue. Thanks for the help. |
Hi @darvid I got this error when install hyperscan==0.3, I used python3.8, this is my Dockerfile
|
@yiwiz-sai use and note that all those build requirements and libhyperscan are no longer needed, this package is linked statically now so installing the wheel should just work. |
@darvid I used I got:
|
I also tried to install this new version of
|
ah looks like
|
@darvid solved ! thanks ! |
This solves NOTHING . I created clean env to test that |
v0.1.5 is based on old libhyperscan v4. If you recently installed the As for BTW the name of the issue is misleading because the issue is not really dealing with python3.9, but with some OS (first it was Debian, then the discussion moved to MacOS) and the version of the library they support. @darvid: |
Well it should work as simple as |
Only the 0.3 version has binaries included (I tried with ubuntu and works). |
is there a way to get this resolved on MacOS ? |
I currently don't have the bandwidth to look into this right now, apologies (#44) all I will add, and I know this isn't the ideal fix, but you should be able to run your application in a docker container. |
Hello, I compiled and installed hyperscan 5.4.0(before is master 5.4.1) on Centos7.9
Python version is 3.10.9, after install hyperscan , run import hyperscan, it can't find the pcakages.
anything worng? |
@betterlch I'm having the same issue, but I think it deserves its own issue. I opened #55 |
met the same issue, have u solved it? @betterlch |
Just rename _hyperscan.pyi to _hyperscan.py |
@betterlch , the python script works after rename the file, but it alway returns None for the complied DB `import hyperscan db = hyperscan.Database() I am using brew install hyperscan to install hyperscan, python 3.10, MacOS v11.6.8, do I need to install hyperscan from source code? |
I'm not sure, I havn't try it because I don't have macbook ^_^. |
I think we can close this issue. |
Hi, I'm facing the following error when trying to install hyperscan==0.1.5 from pip (I will give more context below).
I'm using docker, image
python:3.9-slim-buster
. I have already installedlibhyperscan5
(and all the other dependencies needed) and made sure that setuptools is installed and upgraded (I have v53.0.0).I have made a test also for hyperscan==0.2.0 and no errors are raised during the installation. Yet, every time I import hyperscan in my code, I get the same error described in #28
Nevertheless, and it is a big question mark to me, the setup MacOS (11.2) + python3.9 + hyperscan library installed from brew + pip install hyperscan==0.2.0 perfectly works
The text was updated successfully, but these errors were encountered: