Git Product home page Git Product logo

Comments (1)

chezou avatar chezou commented on June 21, 2024

While tabula-py enforcing setting -Djava.awt.headless=true option for Darwin, it should not set on Linux.

tabula-py/tabula/io.py

Lines 408 to 410 in b24e3bd

if platform.system() == "Darwin":
if not any("java.awt.headless" in opt for opt in java_options):
java_options += ["-Djava.awt.headless=true"]

Looking at your output of tabula.environment_info(), there is same message for "Java version":

Java version:
    Picked up _JAVA_OPTIONS: -Djava.awt.headless=true

However, java_version() calls java command without adding any option. It presumably your environment issue.

tabula-py/tabula/util.py

Lines 28 to 30 in b24e3bd

res = subprocess.check_output(
["java", "-version"], stderr=subprocess.STDOUT
).decode()

If you just want to suppress Got stderr: Picked up _JAVA_OPTIONS: -Djava.awt.headless=true, you can change log level like:

logging.getLogger("tabula").setLevel(logging.ERROR)

from tabula-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.