Comments (10)
I'm having the same issue here, on a fresh new environment (On a Macbook Pro M2 Pro):
❯ pdm init
❯ pdm add hyperscan
Importing hyperscan immediately fails.
❯ pdm run python
Loading dotenv file /private/tmp/test/.env
Python 3.10.12 (main, Jul 31 2023, 18:01:49) [Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import hyperscan
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/valz/.local/share/pdm/venvs/test-EGPJwhIL-3.10/lib/python3.10/site-packages/hyperscan/__init__.py", line 3, in <module>
from hyperscan._ext import * # noqa: F401, F403
ImportError: dlopen(/Users/valz/.local/share/pdm/venvs/test-EGPJwhIL-3.10/lib/python3.10/site-packages/hyperscan/_ext.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_ch_alloc_scratch'
LMK if you want me to provide further information/tests
from python-hyperscan.
Tested too on mac M1, and it's working fine. Waiting for the release now :).
Thank you for your incredible work !
from python-hyperscan.
@darvid would you please push this?
from python-hyperscan.
https://pypi.org/project/hyperscan/
sorry for the delay
latest version is 0.7.7 (yep 7 extra patch increments) because i was 🤬 getting semantic-release working (for future me/maintainers/collaborators, manually publishing all these x-platform artifacts is a massive pita)
from python-hyperscan.
hmm iirc the tests passed on the ARM GH actions runner that built the wheels but I'll take a look
from python-hyperscan.
Thanks, please let me know if you need anything from my side.
I've not done anything crazy: just pip install and import it
from python-hyperscan.
sorry for the delay, could you please try one of the *_macosx_arm64
wheels from here? i think i might need to bump the release since PyPI doesn't let me replace existing versions of artifacts, so would be good to get a smoke test, although i think it should work now as the previous runner for the arm64 builds wasn't actually arm64 🤦
from python-hyperscan.
tested 3.12 on my M2 mbp so will push later assuming no further issues on macOS/arm64
from python-hyperscan.
Hi is the patch being merged soon?
from python-hyperscan.
sorry for the delay, could you please try one of the
*_macosx_arm64
wheels from here? i think i might need to bump the release since PyPI doesn't let me replace existing versions of artifacts, so would be good to get a smoke test, although i think it should work now as the previous runner for the arm64 builds wasn't actually arm64 🤦
No worries, just was able to make it work as well. Thanks for the work!
from python-hyperscan.
Related Issues (20)
- Add args for early termination of scanning if only need to find one match regex or just judging matched
- document release/publish process
- Illegal instruction crash on import HOT 1
- loadb docs example requires a mode
- switch to vectorscan HOT 2
- Request for maintainer(s) HOT 5
- multiprocessing problem.
- Memory leak in Database object when compiling, dumping and loading. HOT 15
- Strange "hyperscan.InvalidError: error code -1" HOT 6
- Named capture groups with Chimera
- install by Dockerfile
- v0.2.0 does not work with Python 3.10 HOT 5
- ModuleNotFoundError: No module named 'hyperscan._hyperscan'
- when it will be ready for windows ? HOT 1
- Please do a release HOT 1
- Problem with musl and fat runtime? HOT 5
- pypi don't have py3.9 whl release and tar.gz with source code HOT 2
- Python 3.10 using error
- Can't import from hyperscan in python 3.12 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-hyperscan.