pytreemap icon indicating copy to clipboard operation
pytreemap copied to clipboard

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 354389: ordinal not in range(128)

Open ZhongJianpeng opened this issue 3 years ago • 0 comments

pytm-cli -i data.json
Traceback (most recent call last): File "/usr/local/bin/pytm-cli", line 11, in load_entry_point('pytm-cli==0.0.2', 'console_scripts', 'pytm-cli')() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/init.py", line 489, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/init.py", line 2843, in load_entry_point return ep.load() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/init.py", line 2434, in load return self.resolve() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/init.py", line 2440, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "/Users/zhongjianpeng/Library/Python/2.7/lib/python/site-packages/pytreemap.py", line 9, in TPL = Environment().from_string(TEMPLATE) File "/Users/zhongjianpeng/Library/Python/2.7/lib/python/site-packages/jinja2/environment.py", line 941, in from_string return cls.from_code(self, self.compile(source), globals, None) File "/Users/zhongjianpeng/Library/Python/2.7/lib/python/site-packages/jinja2/environment.py", line 628, in compile source = self._parse(source, name, filename) File "/Users/zhongjianpeng/Library/Python/2.7/lib/python/site-packages/jinja2/environment.py", line 539, in _parse return Parser(self, source, name, encode_filename(filename)).parse() File "/Users/zhongjianpeng/Library/Python/2.7/lib/python/site-packages/jinja2/parser.py", line 45, in init self.stream = environment._tokenize(source, name, filename, state) File "/Users/zhongjianpeng/Library/Python/2.7/lib/python/site-packages/jinja2/environment.py", line 572, in _tokenize source = self.preprocess(source, name, filename) File "/Users/zhongjianpeng/Library/Python/2.7/lib/python/site-packages/jinja2/environment.py", line 565, in preprocess text_type(source), UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 354389: ordinal not in range(128)

ZhongJianpeng avatar May 28 '21 08:05 ZhongJianpeng