为什么导入语句失败?

2024-06-07 08:49:15 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经创建了一个barebones Python程序,以便逐步了解使用包库的机制。我整个程序的代码只包含几个导入语句:

#!/usr/bin/env python

import sys
import copy
import rospy
import moveit_commander

我对Python没有经验。当我运行上面的代码时,我得到了由“moveit\u commander”导入触发的以下错误。我导入模块的方式是否有问题,或者我是否应该怀疑“moveit\u commander”模块中有问题?你知道吗

terminate called after throwing an instance of
'boost::exception_detail::clone_impl<boost::exception_detail::error_info_inject    or<boost::lock_error> >'
what():  boost: mutex lock failed in pthread_mutex_lock: Invalid argument
Aborted (core dumped)

Tags: 模块代码import程序lockexceptionerrorcommander

热门问题