1

我正在使用一个名为 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.

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

4

0 回答 0