diff --git a/README.cn.md b/README.cn.md index 3af30651062851af971bc141d47108e300f2868b..9e757f4a405f4c9bd69289b4663879420a4870f9 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 cbde58e0ac91f970c43e07845380b531b4c46ecf..4bbf3f32c9892ef8ff78d0b2e15d3850e5e42ec9 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 e0ee5dd74feb08533397d6437391560386055fdf..da27acbd417787ec40e320fcadb5a41d1762a7ab 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 704a01d1954530f7c7ac1b651abf9b6260563cd6..f25899b16e10af0e8774f1efb6e8d30d53cdf6b4 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 58475aba03b4b6cde8c612fc0f91f0067a550810..58e89971ddde6594080829f586680cd6d8ddfa97 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 c2cd19d6a24414eba2ac1def9c2307f8b9ee2a48..ffcf15243f51ec17d2c357044ad6c504859d74bd 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