Closed ahvahsky2008 closed 3 years ago
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.7/dist-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/var/www/webvectors/webvectors.py", line 325, in misc_page
w = process_query(w)
File "/var/www/webvectors/webvectors.py", line 153, in process_query
poses = tag_ud(66666,userquery) # We tag using Stanford CoreNLP
File "/var/www/webvectors/lemmatizer.py", line 18, in tag_ud
data={'tokenizer': '', 'tagger': '', 'data': text}).content
File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
return request('post', url, data=data, json=json, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=66666): Max retries exceeded with url: /process (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f3093bc6690>: Failed to establish a new connection: [Errno 111] Connection refused'))
Hi! Two questions:
1) Do you use the latest version of WebVectors in your work? It seems that some code that you share is outdated (tagger_port
in config file was changed some time ago, for example). Please make sure you update WebVectors to the latest version.
2) Did you start the tagger daemon? Changing detect_tag
to True
is not enough to make it work, the tagger daemon should be started and listening to the port listed in the config file.
I try run word2vec_server.py. In logs its show that is started. I try connect to port 12666 with telnet - all works. But when i try connect to tagged_port 66666 - its no connection