Open ZihengQiu opened 2 months ago
If I run the python code in ros as a node, the same error will caused by rospy.init("_nodename"):
Traceback (most recent call last):
File "/home/khadas/qiuzh/projects/NX-Object-Detection/src/yolov8_ros/script/pose_detect_node.py", line 166, in <module>
rospy.init_node("pose_detect_pose")
File "/opt/ros/noetic/lib/python3/dist-packages/rospy/client.py", line 309, in init_node
rospy.core.configure_logging(resolved_node_name)
File "/opt/ros/noetic/lib/python3/dist-packages/rospy/core.py", line 405, in configure_logging
_log_filename = rosgraph.roslogging.configure_logging('rospy', level, filename=filename)
File "/opt/ros/noetic/lib/python3/dist-packages/rosgraph/roslogging.py", line 192, in configure_logging
logging.config.fileConfig(config_file, disable_existing_loggers=False)
File "/home/khadas/miniconda3/envs/npu-env-1.4/lib/python3.8/logging/config.py", line 79, in fileConfig
handlers = _install_handlers(cp, formatters)
File "/home/khadas/miniconda3/envs/npu-env-1.4/lib/python3.8/logging/config.py", line 148, in _install_handlers
h.setLevel(level)
File "/home/khadas/miniconda3/envs/npu-env-1.4/lib/python3.8/logging/__init__.py", line 916, in setLevel
self.level = _checkLevel(level)
File "/home/khadas/miniconda3/envs/npu-env-1.4/lib/python3.8/logging/__init__.py", line 198, in _checkLevel
raise ValueError("Unknown level: %r" % level)
ValueError: Unknown level: 'DEBUG'
Interestingly, the error will disappear if I comment
from rknnlite.api import RKNNLite
, and shows:
NameError: name api is not found
, even with torch imported.
So, from my perspective of view, the error is related to rknnlite.api rather than torch.
hi brother,I also encountered this problem, and my solution was to change the torch version to 1.13, which was successfully resolved in the end
description
Running python in rk3588 gives error:
The first line of the python code is as follows:
I have tried to search for the error but still have no idea what's the potential solution. I try to downgrade python from version 3.9 to 3.8, but the error still occurs.
environment
conda list
gives following result:and command
strings /usr/lib/librknnrt.so | grep -i "librknnrt"
gives