ponty/pyunpack

Bug with Chinese character on windows 10

Opened this issue · 0 comments

PS E:\Project*\test> & E:/Installed/Python/Python37-32/python.exe e:/Project//test/unzipfile1.py
Traceback (most recent call last):
File "e:/Project/***/test/unzipfile1.py", line 7, in
Archive('软件 安排 编辑.rar').extractall('./module/temp')
File "E:\Installed\Python\Python37-32\lib\site-packages\pyunpack_init_.py", line 113, in extractall
self.extractall_patool(directory, patool_path)
File "E:\Installed\Python\Python37-32\lib\site-packages\pyunpack_init_.py", line 74, in extractall_patool
raise PatoolError("patool can not unpack\n" + str(p.stderr))
pyunpack.PatoolError: patool can not unpack

********** Oops, I did it again. *************

You have found an internal error in patool. Please write a bug report
at https://github.com/wummel/patool/issues/ and include at least the information below:

Not disclosing some of the information below due to privacy reasons is ok.
I will try to help you nonetheless, but you have to give me something
I can work with ;) .

<class 'UnicodeEncodeError'> 'charmap' codec can't encode characters in position 63-64: character maps to
Traceback (most recent call last):
File "E:\Installed\Python\Python37-32\Scripts\patool", line 213, in main
res = globals()"run_%s" % args.command
File "E:\Installed\Python\Python37-32\Scripts\patool", line 33, in run_extract
patoolib.extract_archive(archive, verbosity=args.verbosity, interactive=args.interactive, outdir=args.outdir)
File "E:\Installed\Python\Python37-32\lib\site-packages\patoolib_init_.py", line 683, in extract_archive
util.log_info("Extracting %s ..." % archive)
File "E:\Installed\Python\Python37-32\lib\site-packages\patoolib\util.py", line 516, in log_info
print("patool:", msg, file=out)
File "E:\Installed\Python\Python37-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 63-64: character maps to
System info:
patool 1.12
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)] on win32

sys.argv ['E:\Installed\Python\Python37-32\Scripts\patool', '--non-interactive', 'extract', 'E:\Project\**\test\\u8f6f\u4ef6 \u5b89\u6392 \u7f16\u8f91.rar', '--outdir=E:\Project\****\test\module\temp']
LANG = 'en_US.UTF-8'

******** patool internal error, over and out ********