Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CodeChecker parse error: plist_to_html/static/layout.html No such file or directory #3395

Closed
dazhouzhou opened this issue Aug 13, 2021 · 3 comments
Labels
bug 🐛 dependencies 📦 Pull requests that update a dependency file plist2html 🌏 tools 🛠️ Meta-tag for all the additional tools supplied with CodeChecker: plist2html, tu_collector, etc.

Comments

@dazhouzhou
Copy link

I install codechecker by pip.

pip3 install codechecker

I want to get html report.

CodeChecker parse --export html --output ./reports_html ./reports

error log:

Traceback (most recent call last):
  File "/home/xzz/.local/lib/python3.8/site-packages/codechecker_common/cli.py", line 175, in main
    sys.exit(args.func(args))
  File "/home/xzz/.local/lib/python3.8/site-packages/codechecker_analyzer/cmd/parse.py", line 819, in main
    PlistToHtml.HtmlBuilder(context.path_plist_to_html_dist,
  File "/home/xzz/.local/lib/python3.8/site-packages/plist_to_html/PlistToHtml.py", line 194, in __init__
    self._layout = Template(get_file_content(
  File "/home/xzz/.local/lib/python3.8/site-packages/plist_to_html/PlistToHtml.py", line 106, in get_file_content
    with open(file_path, 'r', encoding='utf-8', errors='replace') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/xzz/.local/lib/python3.8/site-packages/plist_to_html/static/layout.html'
@csordasmarton
Copy link
Contributor

@dazhouzhou this problem will be fixed in the next release by the #3357 PR.

@whisperity whisperity added bug 🐛 dependencies 📦 Pull requests that update a dependency file plist2html 🌏 tools 🛠️ Meta-tag for all the additional tools supplied with CodeChecker: plist2html, tu_collector, etc. labels Aug 15, 2021
@csordasmarton
Copy link
Contributor

I am closing this PR because it is fixed in #3357.

@pansila
Copy link

pansila commented Nov 22, 2021

I installed 6.18.0, still facing the same issue.

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/codechecker_common/cli.py", line 206, in main
    sys.exit(args.func(args))
  File "/usr/local/lib/python3.8/dist-packages/codechecker_analyzer/cmd/parse.py", line 410, in main
    html_builder = report_to_html.HtmlBuilder(
  File "/usr/local/lib/python3.8/dist-packages/codechecker_report_converter/report/output/html/html.py", line 134, in __init__
    self._layout = Template(get_file_content(
  File "/usr/local/lib/python3.8/dist-packages/codechecker_report_converter/report/output/html/html.py", line 90, in get_file_content
    with open(file_path, 'r', encoding='utf-8', errors='replace') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.8/dist-packages/codechecker_report_converter/report/output/html/static/layout.html'
CodeChecker analyzer version:
---------------------------------------------------------------
Kind                 | Version 
---------------------------------------------------------------
Base package version | 6.18.0 
Package build date   | 2021-11-12T13:13                        
Git commit ID (hash) | 153b0e09efc715fd16eee815eecf454f9f79f7f1
Git tag information  | 6.18 
---------------------------------------------------------------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 dependencies 📦 Pull requests that update a dependency file plist2html 🌏 tools 🛠️ Meta-tag for all the additional tools supplied with CodeChecker: plist2html, tu_collector, etc.
Projects
None yet
Development

No branches or pull requests

4 participants