PyMiniRacer
PyMiniRacer copied to clipboard
The required file "libmini_racer.dylib" can't be found in mac M1
I am using the macbook M1, and python version is 3.9
Steps to reproduce
When I import a package named akshare which uses the py_mini_racer as a requirement, the error occured as the following:
File "/opt/homebrew/lib/python3.9/site-packages/py_mini_racer/py_mini_racer.py", line 125, in _build_ext_handle raise RuntimeError("Native library not available at {}".format(EXTENSION_PATH)) RuntimeError: Native library not available at /opt/homebrew/lib/python3.9/site-packages/py_mini_racer/libmini_racer.dylib
I checked the file path, and found there is no file named libmini_racer.dylib but a file named libmini_racer.muslc.so.
Expected behavior
The import akshare can be successful
Actual behavior
RuntimeError occured
System configuration
PyMiniRacer version: 0.6.0 Python version: 3.9.5
I checked again and found there was no suitable whl installation package for mac M1 using pip.
Can you please compile an install package for the arm architecture? Thanks a lot
I am using the macbook M1, and python version is 3.9
Steps to reproduce
When I import a package named akshare which uses the py_mini_racer as a requirement, the error occured as the following:
File "/opt/homebrew/lib/python3.9/site-packages/py_mini_racer/py_mini_racer.py", line 125, in _build_ext_handle raise RuntimeError("Native library not available at {}".format(EXTENSION_PATH)) RuntimeError: Native library not available at /opt/homebrew/lib/python3.9/site-packages/py_mini_racer/libmini_racer.dylib
I checked the file path, and found there is no file named libmini_racer.dylib but a file named libmini_racer.muslc.so.
Expected behavior
The import akshare can be successful
Actual behavior
RuntimeError occured
System configuration
PyMiniRacer version: 0.6.0 Python version: 3.9.5
It's a good question and waiting
Any workarounds?
Howto build v8 on M1 https://joyeecheung.github.io/blog/2021/08/27/binding-v8-on-an-m1-macbook/
Build for Apple M1 fork https://github.com/studyhub-co/PyMiniRacer
My result, you can try to use it: libmini_racer.dylib.zip
Build for Apple M1 fork https://github.com/studyhub-co/PyMiniRacer
My result, you can try to use it: libmini_racer.dylib.zip
Perfect! It works! I just met the problem yesterday and today I see your newest solution here. Thank you so much!
Build for Apple M1 fork https://github.com/studyhub-co/PyMiniRacer
My result, you can try to use it: libmini_racer.dylib.zip
Thanks for your work!
Build for Apple M1 fork https://github.com/studyhub-co/PyMiniRacer
My result, you can try to use it: libmini_racer.dylib.zip
Thanks for your work!
Found there is a guy using windows met the same question, maybe the missing package is not only for Mac M1
Build for Apple M1 fork https://github.com/studyhub-co/PyMiniRacer
My result, you can try to use it: libmini_racer.dylib.zip
Thank you for your work!! You totally solved my problem!
I have the same problem with windows. RuntimeError: Native library not available at D:\Program Files\python\lib\site-packages\py_mini_racer\mini_racer.dll Exception ignored in: <function MiniRacer.del at 0x0BB219C0>
I checked the file path, and found there is no file named mini_racer.dll but a file named libmini_racer.muslc.so.
Is anybody have the file named mini_racer.dll ? thanks.