Skip to content

Java pacakge edu is missing for domain knowledge file #61

@TangChenTom

Description

@TangChenTom

Hi, I am using the example code to import PC from pyrca.graphs.casual.pc to use my domain knowledge file. However, there is an error saying a Java package 'edu' is missing:

Traceback (most recent call last):
File "/home/tom/latency_analysis/analysis.py", line 10, in
from pyrca.graphs.causal.pc import PC
File "/home/tom/.local/lib/python3.8/site-packages/pyrca/graphs/causal/init.py", line 8, in
from .fges import FGES, FGESConfig
File "/home/tom/.local/lib/python3.8/site-packages/pyrca/graphs/causal/fges.py", line 15, in
from pyrca.thirdparty.pytetrad.tools.TetradSearch import TetradSearch
File "/home/tom/.local/lib/python3.8/site-packages/pyrca/thirdparty/pytetrad/tools/TetradSearch.py", line 17, in
import pyrca.thirdparty.pytetrad.tools.translate as tr
File "/home/tom/.local/lib/python3.8/site-packages/pyrca/thirdparty/pytetrad/tools/translate.py", line 36, in
import edu.cmu.tetrad.data as td
File "/home/tom/.local/lib/python3.8/site-packages/jpype/imports.py", line 161, in find_spec
raise ImportError("Java package '%s' not found, requested by alias '%s'" % (jname, name))
ImportError: Java package 'edu' not found, requested by alias 'edu'

My environment is Ubuntu 22.04 with openjdk 21.0.4. I install pyrca via the source code and the command pip install . I also installed all dependencies by pip install .[all]. Can you please check?

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