pybroker
pybroker copied to clipboard
"Native library not available" error
Hi there! I tried to run a sample code and got this error: "RuntimeError: Native library not available at ... /Users/usr/opt/anaconda3/envs/pybroker39/lib/python3.9/site-packages/py_mini_racer/libmini_racer.dylib
Anyone had the same issue before?
Which notebook do you see this on?
It looks like libmini_racer is required by AKShare. If you don't plan to use AKShare, then it shouldn't cause a problem.
Hi there! I tried to run a sample code and got this error: "RuntimeError: Native library not available at ... /Users/usr/opt/anaconda3/envs/pybroker39/lib/python3.9/site-packages/py_mini_racer/libmini_racer.dylib
Anyone had the same issue before?
Hi If you are macOS users it may appear! I will add some docs for it!
Which notebook do you see this on?
It looks like libmini_racer is required by AKShare. If you don't plan to use AKShare, then it shouldn't cause a problem.
It's a error for macos,I will write a PR for this!
Hi @albertandking,
Was https://github.com/edtechre/pybroker/pull/42 the fix for this issue?
@edtechre @albertandking Thank you all for response! I do use MAC OS system to run the sample notebook, and tend to use AKshare. If you could propose a solution that would be really helpful for MAC users. Thanks!
@robustness-data Can you update PyBroker and try again? This may have been fixed with https://github.com/edtechre/pybroker/pull/42
@edtechre Not fixed. same issue.
@vikasgola This only affects the usage of the AKShare DataSource, correct?
@vikasgola I have updated PyBroker to move the AKShare DataSource to a separate module. This should now no longer be an issue unless you explicitly import AKShare.
If you still need to use AKShare, see this issue for details on how to resolve.
@edtechre @albertandking Thank you all for response! I do use MAC OS system to run the sample notebook, and tend to use AKshare. If you could propose a solution that would be really helpful for MAC users. Thanks!
I apologize for the late response. The official documentation of Akshare has a tutorial on configuring the M-series processors, but it is in Chinese; here, I will briefly introduce how to set it up.
- download the lib here: https://jfds-1252952517.cos.ap-chengdu.myqcloud.com/akshare/software/pyminiracer/libmini_racer.dylib
- put the lib here: /Users/
/Library/Python/<python_version>/lib/python/site-packages/py_mini_racer;You can find the specific download path for third-party Python packages on your own machine.
@vikasgola I have updated PyBroker to move the AKShare DataSource to a separate module. This should now no longer be an issue unless you explicitly import AKShare.
This is a good temporary solution to the problem.
Thank you all