Coder Social home page Coder Social logo

Comments (5)

QY-AI avatar QY-AI commented on July 18, 2024

本地elasticsearch服务有没有启动,windows下我用的6.7没问题

from crimekgassitant.

badbabys avatar badbabys commented on July 18, 2024

loaded 300785 word embedding, finished
question:我要离婚
Traceback (most recent call last):
File "D:\Anaconda3\lib\site-packages\urllib3\connection.py", line 141, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File "D:\Anaconda3\lib\site-packages\urllib3\util\connection.py", line 83, in create_connection
raise err
File "D:\Anaconda3\lib\site-packages\urllib3\util\connection.py", line 73, in create_connection
sock.connect(sa)
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Anaconda3\lib\site-packages\elasticsearch\connection\http_urllib3.py", line 220, in perform_request
method, url, body, retries=Retry(False), headers=request_headers, **kw
File "D:\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "D:\Anaconda3\lib\site-packages\urllib3\util\retry.py", line 333, in increment
raise six.reraise(type(error), error, _stacktrace)
File "D:\Anaconda3\lib\site-packages\urllib3\packages\six.py", line 686, in reraise
raise value
File "D:\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 601, in urlopen
chunked=chunked)
File "D:\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 357, in _make_request
conn.request(method, url, **httplib_request_kw)
File "D:\Anaconda3\lib\http\client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "D:\Anaconda3\lib\http\client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "D:\Anaconda3\lib\http\client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "D:\Anaconda3\lib\http\client.py", line 1026, in _send_output
self.send(msg)
File "D:\Anaconda3\lib\http\client.py", line 964, in send
self.connect()
File "D:\Anaconda3\lib\site-packages\urllib3\connection.py", line 166, in connect
conn = self._new_conn()
File "D:\Anaconda3\lib\site-packages\urllib3\connection.py", line 150, in _new_conn
self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x000001ADE9A11780>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:/pycharm/CrimeKgAssitant-master/crime_qa.py", line 137, in
final_answer = handler.search_main(question)
File "D:/pycharm/CrimeKgAssitant-master/crime_qa.py", line 105, in search_main
candi_answers = self.search_es(question)
File "D:/pycharm/CrimeKgAssitant-master/crime_qa.py", line 42, in search_es
res = self.search_specific(question)
File "D:/pycharm/CrimeKgAssitant-master/crime_qa.py", line 35, in search_specific
searched = self.es.search(index=self._index,body=query_body, size=20)
File "D:\Anaconda3\lib\site-packages\elasticsearch\client\utils.py", line 84, in wrapped
return func(*args, params=params, **kwargs)
File "D:\Anaconda3\lib\site-packages\elasticsearch\client_init
.py", line 811, in search
"GET", _make_path(index, "_search"), params=params, body=body
File "D:\Anaconda3\lib\site-packages\elasticsearch\transport.py", line 318, in perform_request
status, headers_response, data = connection.perform_request(method, url, params, body, headers=headers, ignore=ignore, timeout=timeout)
File "D:\Anaconda3\lib\site-packages\elasticsearch\connection\http_urllib3.py", line 232, in perform_request
raise ConnectionError("N/A", str(e), e)
elasticsearch.exceptions.ConnectionError: ConnectionError(<urllib3.connection.HTTPConnection object at 0x000001ADE9A11780>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x000001ADE9A11780>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。)

同样是报错

from crimekgassitant.

ychqq13 avatar ychqq13 commented on July 18, 2024

求问 该怎么启动elasticsearch服务

from crimekgassitant.

Traceve avatar Traceve commented on July 18, 2024

把端口号加上引号

from crimekgassitant.

lris617 avatar lris617 commented on July 18, 2024

请问,问题解决了吗,我也是这样报错

from crimekgassitant.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.