Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: Error finding javahome on linux: ['bash', '-c', 'type -p java'] #207

Open
thomaseddison opened this issue Sep 10, 2022 · 2 comments

Comments

@thomaseddison
Copy link

Traceback (most recent call last):
File "gci.py", line 873, in
augment=args.data_augment)
File "gci.py", line 446, in build_causal_graph
from pycausal.pycausal import pycausal as pc
File "/environment/miniconda3/lib/python3.7/site-packages/pycausal/pycausal.py", line 32, in
import javabridge
File "/environment/miniconda3/lib/python3.7/site-packages/javabridge/init.py", line 25, in
_, jdk_so = find_jre_bin_jdk_so()
File "/environment/miniconda3/lib/python3.7/site-packages/javabridge/locate.py", line 206, in find_jre_bin_jdk_so
java_home = find_javahome()
File "/environment/miniconda3/lib/python3.7/site-packages/javabridge/locate.py", line 114, in find_javahome
java_bin = get_out(["bash", "-c", "type -p java"])
File "/environment/miniconda3/lib/python3.7/site-packages/javabridge/locate.py", line 111, in get_out
raise Exception("Error finding javahome on linux: %s" % cmd)
Exception: Error finding javahome on linux: ['bash', '-c', 'type -p java']

@LeeKamentsky
Copy link
Owner

Hi Kim, thanks for trying Javabridge.
Can you run the following on the command line for me and send me the output?

type -p java

Also, could you try the following on the command line and send me the output?

java -version

Thanks,
Lee

@thomaseddison
Copy link
Author

thomaseddison commented Sep 15, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants