pyreportjasper icon indicating copy to clipboard operation
pyreportjasper copied to clipboard

Script stops at "process_report"

Open PhunkyBob opened this issue 2 years ago • 6 comments

Describe the bug I try the exemple found in https://github.com/acesseonline/exemples_report At pyreportjasper.process_report(), my program stops without error. No PDF file is produced.

To Reproduce Steps to reproduce the behavior:

  1. git clone https://github.com/acesseonline/exemples_report.git
  2. With VSCode, run debug on run.py with break point on line 33 (pyreportjasper.process_report()).
  3. When breakpoint reached, "Step".

Expected behavior Program continues to next line (output_file = output_file + '.pdf').

Actual behavior Program stops, without any warning.

Desktop:

  • OS: Windows 11
  • Python 3.10.5 (32 bits)
  • pyreportjasper version 2.1.2
  • openjdk 17.0.3 2022-04-19 (32 bits)
  • JVM Amazon Corretto

Jaspersoft Studio:

  • TIBCO Jaspersoft® Studio 6.19.1 - Visual Designer for JasperReports 6.19.1.

PhunkyBob avatar Jul 13 '22 16:07 PhunkyBob

Debug stop

image

Report generated

image

jadsonbr avatar Jul 13 '22 16:07 jadsonbr

Unfortunatly, not for me... It stops without any error.

PhunkyBob avatar Jul 13 '22 17:07 PhunkyBob

What is the output in the terminal?

jadsonbr avatar Jul 13 '22 18:07 jadsonbr

Nothing. It stops as if the script finished at this line.

PhunkyBob avatar Jul 13 '22 18:07 PhunkyBob

More what was displayed in the terminal, regardless of whether it stopped at the break point or not, it shows execution data in the terminal what is it displaying?

jadsonbr avatar Jul 13 '22 18:07 jadsonbr

I've just added

    print("BEFORE")

and

    print("AFTER")

Nothing is displayed (except my "BEFORE" print) in the terminal.

PhunkyBob avatar Jul 13 '22 18:07 PhunkyBob

@jadsonbr same issue for me  

code doesn't move forward after process_report but for me its works if you put it in a standalone script I will suggest you run the function without django just like the basic script.

It doesn't work in django it just stops couldn't move further process_report()

Screenshot 2023-06-19 at 11 12 38 AM

PankajLal99 avatar Jun 19 '23 05:06 PankajLal99

Try updating the library version.

jadsonbr avatar Dec 29 '23 11:12 jadsonbr

pyreportjasper 2.1.3 + Python 3.11.7 + Corretto 21 = It works!

PhunkyBob avatar Jan 02 '24 10:01 PhunkyBob