通过运行python -m rasa_core_sdk.endpoint --actions actions
为a Rasa chatbot启动动作服务器时,它告诉我ModuleNotFoundError
的模块有一个'robot.libraries'
,即使我Aready已经下载了{{ 1}}模块:
robot
但是在下载(chaenv36) PS C:\Users\antoi\Documents\Programming\Nathalie\7_2_2019\ChatbotRASA_Room-reservation> python -m rasa_core_sdk.endpoint --actions actions
python : INFO:__main__:Starting action endpoint server...
At line:1 char:1
+ python -m rasa_core_sdk.endpoint --actions actions
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (INFO:__main__:S...point server...:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
ERROR:rasa_core_sdk.executor:Failed to register package 'actions'.
Traceback (most recent call last):
File "C:\Users\antoi\Documents\Programming\Nathalie\7_2_2019\ChatbotRASA_Room-reservation\chaenv36\lib\site-packages\rasa_core_sdk\
executor.py", line 144, in register_package
self._import_submodules(package)
File "C:\Users\antoi\Documents\Programming\Nathalie\7_2_2019\ChatbotRASA_Room-reservation\chaenv36\lib\site-packages\rasa_core_sdk\
executor.py", line 131, in _import_submodules
package = importlib.import_module(package)
File "C:\Python36\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "C:\Users\antoi\Documents\Programming\Nathalie\7_2_2019\ChatbotRASA_Room-reservation\actions.py", line 8, in <module>
from booking import make_a_booking
File "C:\Users\antoi\Documents\Programming\Nathalie\7_2_2019\ChatbotRASA_Room-reservation\booking.py", line 7, in <module>
from robot.libraries.DateTime import convert_time
ModuleNotFoundError: No module named 'robot.libraries'
INFO:__main__:Action endpoint is up and running. on ('0.0.0.0', 5055)
时,它表示没有找到robot.libraries的匹配发行版:
robot.libraries