Comments (11)
你怎么安装的?直接pip install -r requirements.txt
就行了。你创建个虚拟python环境安装吧。你这些错误都是以前依赖间相互冲突的错误。
from rasa_chatbot_cn.
额,你bert_as_server需要起个bert的服务的,不然这个component用不起来
from rasa_chatbot_cn.
我刚安装过rasa-core 是可以单独运行的 然后安装的这个工程 报了这么多错误 版本的依赖关系这么严重吗?
from rasa_chatbot_cn.
我创建了一个虚拟环境后 运行run 报这个错误
File "d:\programdata\anaconda3\envs\rasa1\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 978, in _gcd_import
File "", line 961, in _find_and_load
File "", line 936, in _find_and_load_unlocked
File "", line 205, in _call_with_frames_removed
File "", line 978, in _gcd_import
File "", line 961, in _find_and_load
File "", line 948, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'policy'
During handling of the above exception, another exception occurred:
from rasa_chatbot_cn.
你看下我README最后,Q&A,可能是那个问题
from rasa_chatbot_cn.
@GaoQ1 需要添加哪些路径到PYTHONPATH这个变量下呢?
已经解决了 多谢gaoq1
需要添加一下当前工程的路径到pythonpath中
from rasa_chatbot_cn.
在运行trian NLU的时候 又遇到如下错误了 ,还望指点一二,多谢
Training NLU model...
Traceback (most recent call last):
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\bert_serving\client_init_.py", line 206, in arg_wrapper
return func(self, *args, **kwargs)
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\bert_serving\client_init_.py", line 232, in server_status
return jsonapi.loads(self.recv(req_id).content[1])
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\bert_serving\client_init.py", line 164, in recv
raise e
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\bert_serving\client_init.py", line 153, in _recv
response = self.receiver.recv_multipart()
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\zmq\sugar\socket.py", line 470, in recv_multipart
parts = [self.recv(flags, copy=copy, track=track)]
File "zmq\backend\cython\socket.pyx", line 788, in zmq.backend.cython.socket.Socket.recv
File "zmq\backend\cython\socket.pyx", line 824, in zmq.backend.cython.socket.Socket.recv
File "zmq\backend\cython\socket.pyx", line 191, in zmq.backend.cython.socket._recv_copy
File "zmq\backend\cython\socket.pyx", line 186, in zmq.backend.cython.socket._recv_copy
File "zmq\backend\cython\checkrc.pxd", line 19, in zmq.backend.cython.checkrc._check_rc
zmq.error.Again: Resource temporarily unavailable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "d:\programdata\anaconda3\envs\rasa1\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "d:\programdata\anaconda3\envs\rasa1\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "D:\ProgramData\Anaconda3\envs\rasa1\Scripts\rasa.exe_main.py", line 9, in
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\rasa_main.py", line 70, in main
cmdline_arguments.func(cmdline_arguments)
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\rasa\cli\train.py", line 84, in train
kwargs=extract_additional_arguments(args),
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\rasa\train.py", line 40, in train
kwargs=kwargs,
File "d:\programdata\anaconda3\envs\rasa1\lib\asyncio\base_events.py", line 467, in run_until_complete
return future.result()
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\rasa\train.py", line 135, in train_async
kwargs=kwargs,
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\rasa\train.py", line 188, in _do_training
fixed_model_name=fixed_model_name,
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\rasa\train.py", line 382, in train_nlu_with_validated_data
config, nlu_data_directory, train_path, fixed_model_name="nlu"
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\rasa\nlu\train.py", line 81, in train
trainer = Trainer(nlu_config, component_builder)
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\rasa\nlu\model.py", line 151, in init
self.pipeline = self.build_pipeline(cfg, component_builder)
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\rasa\nlu\model.py", line 163, in build_pipeline
component = component_builder.create_component(component_cfg, cfg)
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\rasa\nlu\components.py", line 459, in create_component
component = registry.create_component_by_config(component_config, cfg)
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\rasa\nlu\registry.py", line 196, in create_component_by_config
return component_class.create(component_config, config)
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\rasa\nlu\components.py", line 244, in create
return cls(component_config)
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\rasa_nlu_gao\featurizers\bert_vectors_featurizer.py", line 61, in init
identity=identity
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\bert_serving\client_init.py", line 451, in init
self.available_bc = [BertClient(**kwargs) for _ in range(max_concurrency)]
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\bert_serving\client_init.py", line 451, in
self.available_bc = [BertClient(**kwargs) for _ in range(max_concurrency)]
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\bert_serving\client_init.py", line 108, in init
s_status = self.server_status
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\bert_serving\client_init.py", line 215, in arg_wrapper
_raise(t_e, _e)
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\bert_serving\client_py3_var.py", line 9, in _raise
raise t_e from _e
TimeoutError: no response from the server (with "timeout"=10000 ms), please check the following:is the server still online? is the network broken? are "port" and "port_out" correct? are you encoding a huge amount of data whereas the timeout is too small for that?
from rasa_chatbot_cn.
@GaoQ1 多谢回复 如何启用bert这个服务呢? 不熟悉还请指导一下
from rasa_chatbot_cn.
我那个踩坑记里面有写
from rasa_chatbot_cn.
@GaoQ1 多谢 已经可以了
from rasa_chatbot_cn.
使用rasa X的时候 报如下的错误
(rasa1) E:\nlp\project\rasa_chatbot_cn>rasa x -m models --endpoints configs/endpoints.yml
Traceback (most recent call last):
File "d:\programdata\anaconda3\envs\rasa1\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "d:\programdata\anaconda3\envs\rasa1\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "d:\ProgramData\Anaconda3\envs\rasa1\Scripts\rasa.exe_main.py", line 9, in
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\rasa_main.py", line 70, in main
cmdline_arguments.func(cmdline_arguments)
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\rasa\cli\x.py", line 291, in rasa_x
run_locally(args)
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\rasa\cli\x.py", line 315, in run_locally
_validate_rasa_x_start(args, project_path)
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\rasa\cli\x.py", line 262, in _validate_rasa_x_start
_validate_domain(os.path.join(project_path, DEFAULT_DOMAIN_PATH))
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\rasa\cli\x.py", line 275, in _validate_domain
Domain.load(domain_path)
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\rasa\core\domain.py", line 73, in load
other = cls.from_path(path, skill_imports)
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\rasa\core\domain.py", line 87, in from_path
domain = cls.from_file(path)
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\rasa\core\domain.py", line 100, in from_file
return cls.from_yaml(rasa.utils.io.read_file(path))
File "d:\programdata\anaconda3\envs\rasa1\lib\site-packages\rasa\utils\io.py", line 125, in read_file
return f.read()
File "d:\programdata\anaconda3\envs\rasa1\lib\codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc4 in position 373: invalid continuation byte
有什么建议没?谢谢
from rasa_chatbot_cn.
Related Issues (20)
- show_tokens_to_client HOT 3
- make train仍报错 HOT 2
- 如何对接前后端?
- tensorflow 版本的问题? HOT 1
- 训练rasa_nlu出错 HOT 5
- make run-cmdline报错。RuntimeError: this event loop is already running. HOT 2
- 关于nlu.json数据格式的两点问题。
- rasa能配置mysql嘛 我看见你在endpoints.yml里配置的是mongodb
- 你项目有百度网盘嘛 我不知道为什么下你的这个下面老是下载不下来 HOT 1
- 闲聊模块问题 HOT 1
- rasa train出错 HOT 3
- rasa shell bot load之后出错 HOT 2
- 请问下楼主这个可以直接对话吗还需要自己准备数据训练吗 HOT 3
- docker也运行不起来 HOT 1
- 关于docker和mongodb HOT 1
- 您好,请教一个form进行slot填充的问题 HOT 1
- ModuleNotFoundError: No module named 'rasa_core_sdk' HOT 8
- 您好,我是刚学rasa的小白,rasa shell时,遇到这个问题,请问如何解决?
- rasa train --domain domain.yml --data data --config config.yml --out models 运行报错
- 有没有关键字屏蔽功能 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rasa_chatbot_cn.