From 1c976b752f33fdfce30512e567bd92423314e9df Mon Sep 17 00:00:00 2001 From: Nicky Chan Date: Tue, 4 Sep 2018 17:22:20 -0700 Subject: [PATCH] Update installation doc when protobuf version not updated (#494) --- README.cn.md | 4 +++- README.md | 4 +++- demo/paddle/TUTORIAL_CN.md | 3 ++- demo/paddle/TUTORIAL_EN.md | 5 +++-- docs/getting_started/installation_cn.md | 4 +++- docs/getting_started/installation_en.md | 4 +++- 6 files changed, 17 insertions(+), 7 deletions(-) diff --git a/README.cn.md b/README.cn.md index 3af30651..9e757f4a 100644 --- a/README.cn.md +++ b/README.cn.md @@ -79,7 +79,9 @@ visualdl --logdir=scratch_log --port=8080 # 访问 http://127.0.0.1:8080 ``` -如果以上步骤出现问题,很可能是因为python或pip不同版本或不同位置所致,以下安装方法能解决。 +如果出现`TypeError: __init__() got an unexpected keyword argument 'file'`, 是因为protobuf不是3.5以上,运行`pip install --upgrade protobuf`就能解决。 + +如果以上步骤还有出现其他问题,很可能是因为python或pip不同版本或不同位置所致,以下安装方法能解决。 ## 使用 virtualenv 安装 diff --git a/README.md b/README.md index cbde58e0..4bbf3f32 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,9 @@ visualdl --logdir=scratch_log --port=8080 # visit http://127.0.0.1:8080 ``` -If you run into issues in above steps, it could be error caused by environmental issues by different python or pip versions. +If you encounter the error `TypeError: __init__() got an unexpected keyword argument 'file'`, that is due to protobuf version is not 3.5+,simply run `pip install --upgrade protobuf` will fix the issue. + +If you run into any other issues in above steps, it could be error caused by environmental issues by different python or pip versions. Following installation methods might fix the issues. ## Install with Virtualenv diff --git a/demo/paddle/TUTORIAL_CN.md b/demo/paddle/TUTORIAL_CN.md index e0ee5dd7..da27acbd 100644 --- a/demo/paddle/TUTORIAL_CN.md +++ b/demo/paddle/TUTORIAL_CN.md @@ -9,7 +9,8 @@ 完整的演示程序可以在[这里](https://github.com/PaddlePaddle/VisualDL/blob/develop/demo/paddle/paddle_cifar10.py)下载。 -这程序是在Paddle v2 0.11版本上开发。可以用```pip install paddlepaddle``` 或 ```docker pull paddlepaddle/paddle:0.11.0```来安装。注意Paddle还没支持Python3。 +这程序是在Paddle v2 0.11版本上开发。可以用```pip install paddlepaddle``` 或 ```docker pull paddlepaddle/paddle:0.11.0```来安装。注意Paddle还没支持Python3和protobuf需要3.5+。 +如果出现`TypeError: __init__() got an unexpected keyword argument 'file'`, 是因为protobuf不是3.5以上,运行`pip install --upgrade protobuf`就能解决。 安装详细流程请看[这里](http://paddlepaddle.org/docs/0.11.0/documentation/cn/getstarted/build_and_install/index_en.html) 首先我们创建Loggers来记录不同种类的数据: diff --git a/demo/paddle/TUTORIAL_EN.md b/demo/paddle/TUTORIAL_EN.md index 704a01d1..f25899b1 100644 --- a/demo/paddle/TUTORIAL_EN.md +++ b/demo/paddle/TUTORIAL_EN.md @@ -8,8 +8,9 @@ This example is the modification with fluid PaddlePaddle's API from this officia The full demonstration code can be downloaded in [here](https://github.com/PaddlePaddle/VisualDL/blob/develop/demo/paddle/paddle_cifar10.py). -The script is based on Paddle v2 0.11. You can do ```pip install paddlepaddle``` or ```docker pull paddlepaddle/paddle:0.11.0```. Notice Paddle does not support Python3 yet and protobuf version needs to be 3.5+. For details, please -follow Paddle's installation guide [here](http://paddlepaddle.org/docs/0.11.0/documentation/en/getstarted/build_and_install/index_en.html) +The script is based on Paddle v2 0.11. You can do ```pip install paddlepaddle``` or ```docker pull paddlepaddle/paddle:0.11.0```. Notice Paddle does not support Python3 yet and protobuf version needs to be 3.5+. +If you encounter the error `TypeError: __init__() got an unexpected keyword argument 'file'`, that is due to protobuf version is not 3.5+,simply run `pip install --upgrade protobuf` will fix the issue. +For details, please follow Paddle's installation guide [here](http://paddlepaddle.org/docs/0.11.0/documentation/en/getstarted/build_and_install/index_en.html) First we initialize Loggers for different types of record as follows: diff --git a/docs/getting_started/installation_cn.md b/docs/getting_started/installation_cn.md index 58475aba..58e89971 100644 --- a/docs/getting_started/installation_cn.md +++ b/docs/getting_started/installation_cn.md @@ -14,7 +14,9 @@ visualdl --logdir=scratch_log --port=8080 # visit http://127.0.0.1:8080 ``` -如果以上步骤出现问题,很可能是因为python或pip不同版本或不同位置所致,以下安装方法能解决。 +如果出现`TypeError: __init__() got an unexpected keyword argument 'file'`, 是因为protobuf不是3.5以上,运行`pip install --upgrade protobuf`就能解决。 + +如果以上步骤还有出现其他问题,很可能是因为python或pip不同版本或不同位置所致,以下安装方法能解决。 ## 使用 virtualenv 安装 diff --git a/docs/getting_started/installation_en.md b/docs/getting_started/installation_en.md index c2cd19d6..ffcf1524 100644 --- a/docs/getting_started/installation_en.md +++ b/docs/getting_started/installation_en.md @@ -13,7 +13,9 @@ visualdl --logdir=scratch_log --port=8080 # visit http://127.0.0.1:8080 ``` -If you run into issues in above steps, it could be error caused by environmental issues by different python or pip versions. +If you encounter the error `TypeError: __init__() got an unexpected keyword argument 'file'`, that is due to protobuf version is not 3.5+,simply run `pip install --upgrade protobuf` will fix the issue. + +If you run into any other issues in above steps, it could be error caused by environmental issues by different python or pip versions. Following installation methods might fix the issues. ## Install with Virtualenv -- GitLab