-
Notifications
You must be signed in to change notification settings - Fork 277
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
和 akshare 的依赖有冲突 #122
Comments
没有m1环境,有点难测试 |
我是 m2,一开始报的同样错误 手动下载 libmini_racer.dylib 放到目录下解决了 |
和你一样的问题,我这边这么处理后好了 |
系统:macos M1
现象:pip install adata 之后报错
‘’‘
/opt/miniconda3/envs/quant/bin/python /Users/lrd/code/pycode/iquant/demo/jqd1/akd1.py
Traceback (most recent call last):
File "/Users/lrd/code/pycode/iquant/demo/jqd1/akd1.py", line 5, in
import akshare as ak
File "/opt/miniconda3/envs/quant/lib/python3.9/site-packages/akshare/init .py", line 4533, in
from akshare.stock_feature.stock_a_pe_and_pb import (
File "/opt/miniconda3/envs/quant/lib/python3.9/site-packages/akshare/stock_feature/stock_a_pe_and_pb.py", line 320, in
js_functions = py_mini_racer.MiniRacer()
File "/opt/miniconda3/envs/quant/lib/python3.9/site-packages/py_mini_racer/py_mini_racer.py", line 178, in init
self.class .ext = _build_ext_handle()
File "/opt/miniconda3/envs/quant/lib/python3.9/site-packages/py_mini_racer/py_mini_racer.py", line 132, in _build_ext_handle
_ext_handle.mr_eval_context.argtypes = [
File "/opt/miniconda3/envs/quant/lib/python3.9/ctypes/init .py", line 387, in getattr
func = self.getitem (name)
File "/opt/miniconda3/envs/quant/lib/python3.9/ctypes/init .py", line 392, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: dlsym(0x84930e90, mr_eval_context): symbol not found
Exception ignored in: <function MiniRacer.del at 0x16bdd0280>
Traceback (most recent call last):
File "/opt/miniconda3/envs/quant/lib/python3.9/site-packages/py_mini_racer/py_mini_racer.py", line 315, in del
self.ext.mr_free_context(getattr(self, "ctx", None))
AttributeError: 'NoneType' object has no attribute 'mr_free_context'
Process finished with exit code 1
def del (self):
self.ext.mr_free_context(getattr(self, "ctx", None))
’‘’
解决方案:
pip uninstall py_mini_racer
pip uninstall mini-racer
pip install mini-racer
然而 akshare 恢复了,但是 adata 依然不可用。 py_mini_racer 是覆盖了mini-racer的方法或功能?
The text was updated successfully, but these errors were encountered: