Skip to content

Runtime error when moving from 1.5.2 to 1.6.0 #1312

@mxufc29

Description

@mxufc29

First time using jpype. I experienced a runtime failure when JPype1 upgraded from 1.5.2 (my dev environment) to 1.6.0 (clean virtual environment for testing). Managing dependencies with Poetry.
Under 1.6.0, jpype.startJVM() reports “Can’t find org.jpype.jar support library” despite the JAR being present in site-packages. Under 1.5.2, the exact same code and setup worked without issue. For now, decided to pin JPype1 to <1.6.0 which I hope restores functionality, but any guidance/insights/best practices into the updated behavior in 1.6.0 would be appreciated. Below is the code in my init file in which I preload the jpype configs.

import jpype
import jpype.imports
from tabula.backend import jar_path

jpype.addClassPath(jar_path())
if not jpype.isJVMStarted():
    jvmpath = jpype.getDefaultJVMPath()
    java_opts = ["-Dfile.encoding=UTF-8", "-Xrs"]
    jpype.startJVM(jvmpath, *java_opts, convertStrings=False)

Metadata

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