PaddleHub UnicodeDecodeError: 'gbk' codec can't decode byte 0xae in position 9759: illegal multibyte sequence

ecfdbz9o  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(86)

Win10 Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32
运行窗口: 命令提示符(cmd)
pip install paddlepaddle==2.0.0rc
pip install paddlehub==2.0.0b
hub install senta_bilstm
Download https://bj.bcebos.com/paddlehub/paddlehub_dev/senta_bilstm_1.2.0.tar.gz
[#################################################] 100.00%
解压 C:\Users\A37.paddlehub\tmp\tmpd1lk73yb\senta_bilstm_1.2.0.tar.gz
[#################################################] 100.00%
Traceback (most recent call last):
File "d:\python\python36\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "d:\python\python36\lib\runpy.py", line 85, in *run_code
exec(code, run_globals)
File "D:\Python\Python36\Scripts\hub.exe
main*.py", line 7, in
File "d:\python\python36\lib\site-packages\paddlehub\commands\utils.py", line 69, in execute
return com'_entry'.execute(sys.argv[idx:])
File "d:\python\python36\lib\site-packages\paddlehub\commands\install.py", line 44, in execute
manager.install(name=name, version=version)
File "d:\python\python36\lib\site-packages\paddlehub\module\manager.py", line 188, in install
return self._install_from_name(name, version)
File "d:\python\python36\lib\site-packages\paddlehub\module\manager.py", line 263, in _install_from_name
return self._install_from_url(item['url'])
File "d:\python\python36\lib\site-packages\paddlehub\module\manager.py", line 256, in _install_from_url
return self._install_from_archive(file)
File "d:\python\python36\lib\site-packages\paddlehub\module\manager.py", line 358, in _install_from_archive
return self._install_from_directory(directory)
File "d:\python\python36\lib\site-packages\paddlehub\module\manager.py", line 322, in _install_from_directory
module_info = HubModule.load_module_info(directory)
File "d:\python\python36\lib\site-packages\paddlehub\module\module.py", line 233, in load_module_info
pycode = file.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0xae in position 9759: illegal multibyte sequence

cclgggtu

cclgggtu1#

感谢反馈,这个问题是由于编码原因导致的。我们已经在2.0.0-beta1版本中修复了这个问题。您可以通过以下命令来更新:

pip install paddlehub==2.0.0b1

相关问题