-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Needs InvestigationIssues which are likely in scope but need investigation to figure out the causeIssues which are likely in scope but need investigation to figure out the causeinvalid
Description
Using Python 3.7
with built-in pkg_resources
when calling pkg_resources.iter_entry_points('pygments.lexers')
a UnicodeDecodeError
is raised:
Traceback (most recent call last):
File "D:\Software\Install\NoGreenInstall\Python37\lib\site-packages\pkg_resources\__init__.py", line 2698, in get_entry_map
ep_map = self._ep_map
File "D:\Software\Install\NoGreenInstall\Python37\lib\site-packages\pkg_resources\__init__.py", line 2669, in __getattr__
raise AttributeError(attr)
AttributeError: _ep_map
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Users\Administrator\.vscode-insiders\extensions\wakatime.vscode-wakatime-1.2.13\wakatime-master\wakatime\stats.py", line 121, in guess_lexer_using_filename
lexer = custom_pygments_guess_lexer_for_filename(file_name, text)
File "c:\Users\Administrator\.vscode-insiders\extensions\wakatime.vscode-wakatime-1.2.13\wakatime-master\wakatime\stats.py", line 307, in custom_pygments_guess_lexer_for_filename
for lexer in _iter_lexerclasses():
File "c:\Users\Administrator\.vscode-insiders\extensions\wakatime.vscode-wakatime-1.2.13\wakatime-master\wakatime\packages\pygments\lexers\__init__.py", line 233, in _iter_lexerclasses
for lexer in find_plugin_lexers():
File "c:\Users\Administrator\.vscode-insiders\extensions\wakatime.vscode-wakatime-1.2.13\wakatime-master\wakatime\packages\pygments\plugin.py", line 52, in find_plugin_lexers
for entrypoint in iter_entry_points(LEXER_ENTRY_POINT):
File "D:\Software\Install\NoGreenInstall\Python37\lib\site-packages\pkg_resources\__init__.py", line 645, in iter_entry_points
entries = dist.get_entry_map(group)
File "D:\Software\Install\NoGreenInstall\Python37\lib\site-packages\pkg_resources\__init__.py", line 2701, in get_entry_map
self._get_metadata('entry_points.txt'), self
File "D:\Software\Install\NoGreenInstall\Python37\lib\site-packages\pkg_resources\__init__.py", line 2408, in parse_map
for group, lines in data:
File "D:\Software\Install\NoGreenInstall\Python37\lib\site-packages\pkg_resources\__init__.py", line 3036, in split_sections
for line in yield_lines(s):
File "D:\Software\Install\NoGreenInstall\Python37\lib\site-packages\pkg_resources\__init__.py", line 2268, in yield_lines
for ss in strs:
File "D:\Software\Install\NoGreenInstall\Python37\lib\site-packages\pkg_resources\__init__.py", line 2627, in _get_metadata
for line in self.get_metadata_lines(name):
File "D:\Software\Install\NoGreenInstall\Python37\lib\site-packages\pkg_resources\__init__.py", line 1408, in get_metadata_lines
return yield_lines(self.get_metadata(name))
File "D:\Software\Install\NoGreenInstall\Python37\lib\site-packages\pkg_resources\__init__.py", line 1405, in get_metadata
return value.decode('utf-8') if six.PY3 else value
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 40: invalid start byte
Metadata
Metadata
Assignees
Labels
Needs InvestigationIssues which are likely in scope but need investigation to figure out the causeIssues which are likely in scope but need investigation to figure out the causeinvalid