Skip to content

Windows 10 HTML report will not generate #231

@Christiansarkodie

Description

@Christiansarkodie

This is on version 0.4.6 on Windows 10. I have tested with both Python 3.7 and Python 3.9. When running a scan I cannot get the HTML file to generate. the JSON file generates fine:

Traceback (most recent call last):
File "c:\users*\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users*
\appdata\local\programs\python\python39\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users********\AppData\Roaming\Python\Python39\Scripts\cloudsplaining.exe_main
.py", line 7, in
File "C:\Users*\AppData\Roaming\Python\Python39\site-packages\cloudsplaining\bin\cli.py", line 34, in main
cloudsplaining()
File "C:\Users*
\AppData\Roaming\Python\Python39\site-packages\click\core.py", line 1128, in call
return self.main(args, **kwargs)
File "C:\Users*
\AppData\Roaming\Python\Python39\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "C:\Users*
\AppData\Roaming\Python\Python39\site-packages\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users*
\AppData\Roaming\Python\Python39\site-packages\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users*
\AppData\Roaming\Python\Python39\site-packages\click\core.py", line 754, in invoke
return __callback(args, **kwargs)
File "C:\Users*
\AppData\Roaming\Python\Python39\site-packages\cloudsplaining\command\scan.py", line 119, in scan
f.write(rendered_html_report)
File "c:\users*
**\appdata\local\programs\python\python39\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u1e7e' in position 1131175: character maps to

Thanks for any help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions