Webots: ImportError: сбой загрузки DLL: не найден конкретный модуль - PullRequest
1 голос
/ 21 июня 2011

Я работаю с программой 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.

Скажите, пожалуйста, что не так и как это исправить.

...