gpt4 book ai didi

python - Python异常: error: [Errno 10054] An existing connection was forcibly closed by the remote host

转载 作者:行者123 更新时间:2023-12-03 08:55:16 25 4
gpt4 key购买 nike

我最近安装了预测在 Vagrant 盒子上的建议。我是新来的。当我尝试运行其python示例文件import_eventserver时,遇到以下错误:

C:\HashiCorp\Vagrant\PredictionIO-Vagrant-0.8.2\MyRecommendation>python data/imp
ort_eventserver.py --access_key some_access_key
Namespace(access_key='some_access_key', file='./data/sample_movielens_data.txt', url='http://localhost:7070')

汇入资料...
Traceback (most recent call last):
File "data/import_eventserver.py", line 76, in <module>
import_events(client, args.file)
File "data/import_eventserver.py", line 45, in import_events
target_entity_id=data[1]
File "C:\Anaconda\lib\site-packages\predictionio-0.8.3-py2.7.egg\predictionio\
__init__.py", line 243, in create_event
event_time).get_response()
File "C:\Anaconda\lib\site-packages\predictionio-0.8.3-py2.7.egg\predictionio\
connection.py", line 113, in get_response
self._response = self.rfunc(tmp_response)
File "C:\Anaconda\lib\site-packages\predictionio-0.8.3-py2.7.egg\predictionio\
__init__.py", line 120, in _acreate_resp
(response.error, response.request))
predictionio.NotCreatedError: Exception happened: [Errno 10054] An existing conn
ection was forcibly closed by the remote host for request POST /events.json?acce
ssKey=some_access_key {'eventTime': '2015-01-26T02:16:36.285+0000', 'entityType': 'user', 'targetEntityType': '
item', 'targetEntityId': '2', 'entityId': '0', 'event': 'buy'} /events.json?acce
ssKey=enFymhjuV3ighOz9R3u3FuiWSHNgWch241WbaTaXpdXyNJbKp5tYWO5IplkxUvR7?eventTime
=2015-01-26T02%3A16%3A36.285%2B0000&entityType=user&targetEntityType=item&target
EntityId=2&entityId=0&event=buy

关于如何知道这里出什么问题的任何想法?任何帮助表示赞赏。

最佳答案

此错误与Prediction IO API没有关系。您收到的错误消息显示从连接池中提取了一个连接,并且与服务器的连接已丢失。
错误可以重现吗? Arent,您遇到网络问题了吗?请检查组件之间的网络连接。
我刚刚在装有Wagrant的Mac上尝试并安装了带Python的Mac,一切正常。

关于python - Python异常: error: [Errno 10054] An existing connection was forcibly closed by the remote host,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28144052/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com