Traceback (most recent call last):
File "/usr/local/bin/plprofiler", line 11, in
load_entry_point('plprofiler==4.1', 'console_scripts', 'plprofiler')()
File "/usr/local/lib/python3.8/dist-packages/plprofiler-4.1-py3.8.egg/plprofiler/plprofiler_tool.py", line 75, in main
return run_command(sys.argv[2:])
File "/usr/local/lib/python3.8/dist-packages/plprofiler-4.1-py3.8.egg/plprofiler/plprofiler_tool.py", line 846, in run_command
plp.report(report_data, output_fd)
File "/usr/local/lib/python3.8/dist-packages/plprofiler-4.1-py3.8.egg/plprofiler/plprofiler.py", line 1012, in report
report.generate(report_data, output_fd)
File "/usr/local/lib/python3.8/dist-packages/plprofiler-4.1-py3.8.egg/plprofiler/plprofiler_report.py", line 21, in generate
self.out(" %s" %(cgi.escape(config['title']), ))
AttributeError: module 'cgi' has no attribute 'escape'
Will submit the pull request to fix this shortly.
Regards,
Sachin
Hi,
I am hitting
AttributeError: module 'cgi' has no attribute 'escape'
while running sample test report with plprofiler.Environment: Ubuntu 20.04 (Focal), PostgreSQL-12.6, plprofiler code from git master branch.
Prepare sample database
Run sample plprofiler report
(1 rows) SELECT 1 (0.030 seconds)
Traceback (most recent call last): File "/usr/local/bin/plprofiler", line 11, in
load_entry_point('plprofiler==4.1', 'console_scripts', 'plprofiler')()
File "/usr/local/lib/python3.8/dist-packages/plprofiler-4.1-py3.8.egg/plprofiler/plprofiler_tool.py", line 75, in main
return run_command(sys.argv[2:])
File "/usr/local/lib/python3.8/dist-packages/plprofiler-4.1-py3.8.egg/plprofiler/plprofiler_tool.py", line 846, in run_command
plp.report(report_data, output_fd)
File "/usr/local/lib/python3.8/dist-packages/plprofiler-4.1-py3.8.egg/plprofiler/plprofiler.py", line 1012, in report
report.generate(report_data, output_fd)
File "/usr/local/lib/python3.8/dist-packages/plprofiler-4.1-py3.8.egg/plprofiler/plprofiler_report.py", line 21, in generate
self.out(" %s " %(cgi.escape(config['title']), ))
AttributeError: module 'cgi' has no attribute 'escape'