Skip to content

java.util.logging.Logger NullPointerException with pip install #623

Open
@jeb2112

Description

I can't get pyjnius=1.4.1 java logger to work in python 3.8.13 after pip install pyjnius. The java logger does work after a conda install. And, the logger does work via python for android in an android 7.0 device after pip install.

from jnius import autoclass
class Demo():
    def __init__(self):
        Log = autoclass('java.util.logging.Logger')
        self.logger = Log.getLogger(type(self).__name__)

gives the NullPointerException in jnius_utils.pxi line 91. The string argument to the constructor is not a null, and I tried using string literals as well. In a related note, the jnius_utils.pxi file is missing from site_packages/jnius after pip install pyjnius. But whether it is an empty file created by touch jnius_utils.pxi, or the file is copied manually from here on github, still get the same NullPointerException.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions