PyMiniRacer icon indicating copy to clipboard operation
PyMiniRacer copied to clipboard

Native library not available at /usr/local/lib/python3.7/dist-packages/py_mini_racer/libmini_racer.glibc.so

Open zgpnuaa opened this issue 4 years ago • 3 comments

I use py-mini-racer in debian 10.6 on my 64 bit mobile, but there's error as follow.

`usr/local/lib/python3.7/dist-packages/akshare/stock_feature/stock_a_pb.py in 315 } 316 """ --> 317 ctx = py_mini_racer.MiniRacer() 318 ctx.eval(hash_code) 319 token = ctx.call("hex", datetime.now().date().isoformat()).lower()

/usr/local/lib/python3.7/dist-packages/py_mini_racer/py_mini_racer.py in init(self) 176 def init(self): 177 if self.class.ext is None: --> 178 self.class.ext = _build_ext_handle() 179 180 self.ctx = self.ext.mr_init_context(" ".join(self.v8_flags).encode("utf-8"))

/usr/local/lib/python3.7/dist-packages/py_mini_racer/py_mini_racer.py in _build_ext_handle() 123 124 if EXTENSION_PATH is None or not os.path.exists(EXTENSION_PATH): --> 125 raise RuntimeError("Native library not available at {}".format(EXTENSION_PATH)) 126 127 _ext_handle = ctypes.CDLL(EXTENSION_PATH)

RuntimeError: Native library not available at /usr/local/lib/python3.7/dist-packages/py_mini_racer/libmini_racer.glibc.so `

zgpnuaa avatar Aug 31 '21 01:08 zgpnuaa

I happen to receive the same issue on any platform, are there any dependencies that needs to be installed in order for this to work?

stefanm8 avatar Jun 10 '22 10:06 stefanm8

My guess is your device is an aarch64 based one?

JulesLiu avatar Oct 02 '22 08:10 JulesLiu

My guess is your device is an aarch64 based one?

yes. in my phone, pydroid3 app appear this error.

zgpnuaa avatar Oct 02 '22 09:10 zgpnuaa