Webots:ImportError:DLL加载失败:找不到指定的模块

时间:2011-06-21 12:12:43

标签: python robotics robot

我正在使用一个名为Webots的程序,我想让一些Python脚本正常工作,但是当我运行该软件附带的示例脚本时,我收到一条错误消息。

错误讯息:

[slave] Traceback (most recent call last):
[slave]   File "C:\Program Files(x86)\Webots\projects\languages\python\controllers\slave\slave.py", line 9, in <module>
[slave]     from controller import DifferentialWheels,Camera,DistanceSensor,Receiver
[slave]   File "C:\Program Files (x86)\Webots\lib\python\controller.py", line 25, in <module>
[slave]     _controller = swig_import_helper()
[slave]   File "C:\Program Files (x86)\Webots\lib\python\controller.py", line 21, in swig_import_helper
[slave]     _mod = imp.load_module('_controller', fp, pathname, description)
[slave] ImportError: DLL load failed: The specified module could not be found.
[slave] Traceback (most recent call last):
[slave]   File "C:\Program Files (x86)\Webots\projects\languages\python\controllers\slave\slave.py", line 9, in <module>
[slave]     from controller import DifferentialWheels,Camera,DistanceSensor,Receiver
[slave]   File "C:\Program Files (x86)\Webots\lib\python\controller.py", line 25, in <module>
[slave]     _controller = swig_import_helper()
[slave]   File "C:\Program Files (x86)\Webots\lib\python\controller.py", line 21, in swig_import_helper
[slave]     _mod = imp.load_module('_controller', fp, pathname, description)
[slave] ImportError: DLL load failed: The specified module could not be found.
[slave] Traceback (most recent call last):
[slave]   File "C:\Program Files (x86)\Webots\projects\languages\python\controllers\slave\slave.py", line 9, in <module>
[slave]     from controller import DifferentialWheels,Camera,DistanceSensor,Receiver
[slave]   File "C:\Program Files (x86)\Webots\lib\python\controller.py", line 25, in <module>
[slave]     _controller = swig_import_helper()
[slave]   File "C:\Program Files (x86)\Webots\lib\python\controller.py", line 21, in swig_import_helper
[slave]     _mod = imp.load_module('_controller', fp, pathname, description)
[slave] ImportError: DLL load failed: The specified module could not be found.
[driver] Traceback (most recent call last):
[driver]   File "C:\Program Files (x86)\Webots\projects\languages\python\controllers\driver\driver.py", line 8, in <module>
[driver]     from controller import Supervisor,Emitter,Node,Field
[driver]   File "C:\Program Files (x86)\Webots\lib\python\controller.py", line 25, in <module>
[driver]     _controller = swig_import_helper()
[driver]   File "C:\Program Files (x86)\Webots\lib\python\controller.py", line 21, in swig_import_helper
[driver]     _mod = imp.load_module('_controller', fp, pathname, description)
[driver] ImportError: DLL load failed: The specified module could not be found.

请告诉我有什么问题以及如何解决。

0 个答案:

没有答案