knowledge_representation_pytorch icon indicating copy to clipboard operation
knowledge_representation_pytorch copied to clipboard

运行报ConnectionError

Open hatleon opened this issue 6 years ago • 2 comments

(1)你好,运行你的代码报 [Errno 111] 。我是新建data文件夹,然后把FB15K文件夹拷贝过去。运行指令为:transE_pytorch.py -d FB15k -np 1 。我看了你的transE配置参数没看到相关HTTPConnection。升级了requests包也没用;

(2)错误提示行:trainCurve = agent.register(trainHyperparameters, 'train loss', overwrite=True) r = requests.get(url, auth = self.auth, data = data);

(3)错误内容:requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=5000): Max retries exceeded with url: /register (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fdf7c5909b0>: Failed to establish a new connection: [Errno 111] Connection refused',))。

hatleon avatar May 17 '18 07:05 hatleon

你好,可能是你运行的时候未打开hyperboard。 hyperboard的启动方法为:打开终端,输入hyperboard-run --port 端口号。 更多关于hyperboard的安装与使用,请参考https://github.com/WarBean/hyperboard

jimmywangheng avatar May 17 '18 14:05 jimmywangheng

(1)谢谢 @jimmywangheng 运行hyperboard-run打开了server;

(2)默认会在当前文件夹生成很多record文件,所以新建一个空文件夹再运行hyperboard-run指令;

(3)报一些错误HyperBorad agent failed to append: record is already deleted!,可能的解决是新建空文件夹再运行hyperboard-run。

hatleon avatar May 18 '18 02:05 hatleon