无法训练RASA-CORE模型抛出回溯:from google.protobuf.pyext import _message ImportError:DLL加载失败:访问被拒绝

时间:2019-05-20 05:58:36

标签: python-3.x tensorflow makefile rasa-nlu rasa-core

windows 10 的Python 3.7.3 我正在尝试使用make commend训练我的rasa-core模型,并且将其扔到Windows commandprompt中的traceback下面:

我尝试以管理员身份运行CMD,然后训练rasa-core模型,但是它提供了相同的回溯。在互联网上找不到与rasacore相关的任何内容,因此不确定是否其他解决方案与此错误有关

C:\Users\mrawat\starter-pack-rasa-stack>make train-core
python -m rasa_core.train -d domain.yml -s data/stories.md -o models/current/dialogue -c policies.yml
Traceback (most recent call last):
  File "C:\Users\mrawat\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 183, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "C:\Users\mrawat\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 109, in _get_module_details
    __import__(pkg_name)
  File "C:\Users\mrawat\AppData\Local\Programs\Python\Python37\lib\site-packages\rasa_core\__init__.py", line 6, in <module>
    from rasa_core.test import test
  File "C:\Users\mrawat\AppData\Local\Programs\Python\Python37\lib\site-packages\rasa_core\test.py", line 19, in <module>
    from rasa_core.policies.form_policy import FormPolicy
  File "C:\Users\mrawat\AppData\Local\Programs\Python\Python37\lib\site-packages\rasa_core\policies\__init__.py", line 1, in <module>
    from rasa_core.policies.policy import Policy
  File "C:\Users\mrawat\AppData\Local\Programs\Python\Python37\lib\site-packages\rasa_core\policies\policy.py", line 3, in <module>
    import tensorflow as tf
  File "C:\Users\mrawat\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File "C:\Users\mrawat\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\__init__.py", line 52, in <module>
    from tensorflow.core.framework.graph_pb2 import *
  File "C:\Users\mrawat\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\core\framework\graph_pb2.py", line 6, in <module>
    from google.protobuf import descriptor as _descriptor
  File "C:\Users\mrawat\AppData\Local\Programs\Python\Python37\lib\site-packages\google\protobuf\descriptor.py", line 47, in <module>
    from google.protobuf.pyext import _message
ImportError: DLL load failed: Access is denied.
make: *** [train-core] Error 1

1 个答案:

答案 0 :(得分:0)

我相信protobuf 3.7.1与rasa-core入门包模型不兼容,降级protobuf == 3.6.0解决了我在Windows10机器中的问题。

pip install protobuf == 3.6.0

找到详细信息:Make train-core // Import Error : DDL Load failed