【发布时间】:2015-01-26 02:35:32
【问题描述】:
我最近安装了 predictionio 以获取关于 vagrant box 的建议。我对它很陌生。当我尝试运行它的 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
关于如何知道这里出了什么问题的任何想法?任何帮助表示赞赏。
【问题讨论】:
标签: python exception error-handling prediction