|
系统为官方出厂自带debian,板载rknntoolkit为1.6.0,驱动为1.7.0
目前想升级python版Rockx测试,按照官方步骤使用sudo apt-get install -y rockx-rk3399pro成功安装1.6.0版本
pip3 install --user rockx -i http://repo.rock-chips.com/pypi/simple --trusted-host=repo.rock-chips.com
这步只有1.2.0版本,跳过使用离线包安装
尝试1.4.4版本安装报错如下,提示
Traceback (most recent call last):
File "rockx_carplate.py", line 33, in <module>
carplate_det_handle = RockX(RockX.ROCKX_MODULE_CARPLATE_DETECTION, target_device=args.device)
File "/usr/local/lib/python3.7/dist-packages/rockx/RockX.py", line 235, in __init__
self.rockx_base = RockXBase()
File "/usr/local/lib/python3.7/dist-packages/rockx/RockXBase.py", line 218, in __init__
RockXBase._load_library()
File "/usr/local/lib/python3.7/dist-packages/rockx/RockXBase.py", line 504, in _load_library
POINTER(rockx_tensor_t),POINTER(rockx_image_t)]
File "/usr/lib/python3.7/ctypes/__init__.py", line 369, in __getattr__
func = self.__getitem__(name)
File "/usr/lib/python3.7/ctypes/__init__.py", line 374, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/local/lib/python3.7/dist-packages/rockx/sdk/rockx-rk3399pro-Linux/lib64/librockx.so: undefined symbol: rockx_carplate_align_v2
尝试1.6.1版本报错如下,提示
Traceback (most recent call last):
File "rockx_carplate.py", line 34, in <module>
carplate_det_handle = RockX(RockX.ROCKX_MODULE_CARPLATE_DETECTION, target_device=args.device, rockx_data_dir=args.rockx_data_dir)
File "/usr/local/lib/python3.7/dist-packages/rockx/RockX.py", line 215, in __init__
self.rockx_base = RockXBase()
File "/usr/local/lib/python3.7/dist-packages/rockx/RockXBase.py", line 244, in __init__
RockXBase._load_library()
File "/usr/local/lib/python3.7/dist-packages/rockx/RockXBase.py", line 554, in _load_library
CDLL(rt_path)
File "/usr/lib/python3.7/ctypes/__init__.py", line 356, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /usr/local/lib/python3.7/dist-packages/rockx/sdk/rockx-None-Linux/lib64/librknnrt.so: cannot open shared object file: No such file or directory
请问如何解决
|
|