环境
编程语言版本:python 2.7
操作系统:win10 64位
模块名:svn
svn checkout时报错
File "D:\Python27\lib\site-packages\svn\remote.py", line 20, in checkout
self.run_command('checkout', cmd)
File "D:\Python27\lib\site-packages\svn\common.py", line 54, in run_command
return self.external_command(cmd, environment=self.__env, **kwargs)
File "D:\Python27\lib\site-packages\svn\common_base.py", line 39, in external_command
return stdout.decode('').strip('\n').split('\n')
LookupError: unknown encoding:
file_path:D:\Python27\Lib\site-packages\svn\comman_base.py
起因windows平台执行checkout操作时报编码错误
return stdout.decode('').strip('\n').split('\n')改为
return stdout.decode('gbk').strip('\n').split('\n')得到
解决