-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Labels
questionFurther information is requestedFurther information is requested
Description
When redirecting output to a file in human format, the following error occurs:
python -m johnnydep johnnydep --output-format human -f ALL > johnnydep.log
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\py3.13.2_test\Lib\site-packages\johnnydep\__main__.py", line 4, in <module>
main()
~~~~^^
File "C:\py3.13.2_test\Lib\site-packages\johnnydep\cli.py", line 140, in main
print(rendered, file=stdout)
~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "C:\py3.13.2_test\Lib\site-packages\colorama\ansitowin32.py", line 47, in write
self.__convertor.write(text)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "C:\py3.13.2_test\Lib\site-packages\colorama\ansitowin32.py", line 177, in write
self.write_and_convert(text)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "C:\py3.13.2_test\Lib\site-packages\colorama\ansitowin32.py", line 205, in write_and_convert
self.write_plain_text(text, cursor, len(text))
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\py3.13.2_test\Lib\site-packages\colorama\ansitowin32.py", line 210, in write_plain_text
self.wrapped.write(text[start:end])
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "C:\py3.13.2\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 5138-5140: character maps to <undefined>
Add another argument to allow writing the output to a file, which then can handle this
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested