Skip to content

NameError: Error fill report: Erro fill internal: net.sf.jasperreports.engine.JRRuntimeException: Error initializing graphic environment. #172

@bugcy013

Description

@bugcy013

Describe the bug
Getting Error when running run.py

NameError: Error fill report: Erro fill internal: net.sf.jasperreports.engine.JRRuntimeException: Error initializing graphic environment.

To Reproduce
Steps to reproduce the behavior:

root@cs-ubuntu-0228:~/exemples_report# lsb_release
.git/             .gitignore        README.rst        reports/          requirements.txt  resources/        run.py
root@cs-ubuntu-0228:~/exemples_report# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.1 LTS
Release:	20.04
Codename:	focal
root@cs-ubuntu-0228:~/exemples_report# java --version
openjdk 18 2022-03-22
OpenJDK Runtime Environment (build 18+36-2087)
OpenJDK 64-Bit Server VM (build 18+36-2087, mixed mode, sharing)
root@cs-ubuntu-0228:~/exemples_report# python3 --version
Python 3.8.10

console prints

root@cs-ubuntu-0228:~/exemples_report# python3 run.py
OpenJDK 64-Bit Server VM warning: Archived non-system classes are disabled because the java.system.class.loader property is specified (value = "org.update4j.DynamicClassLoader"). To use archived non-system classes, this property must not be set
Traceback (most recent call last):
  File "run.py", line 40, in <module>
    example_csv()
  File "run.py", line 33, in example_csv
    pyreportjasper.process_report()
  File "/usr/local/lib/python3.8/dist-packages/pyreportjasper/pyreportjasper.py", line 192, in process_report
    raise error
NameError: Error fill report: Erro fill internal: net.sf.jasperreports.engine.JRRuntimeException: Error initializing graphic environment.

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