python-javabridge icon indicating copy to clipboard operation
python-javabridge copied to clipboard

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

Open thomaseddison opened this issue 3 years ago • 2 comments

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']

thomaseddison avatar Sep 10 '22 09:09 thomaseddison

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

LeeKamentsky avatar Sep 10 '22 20:09 LeeKamentsky

I run my program on the online studio, and it doesn't have java installed. I type java -version on the command line and it outputs "no command java". I have solve this problem but I got in some new trouble... I will send you later. Thanks for your hospitality and your email!

------------------ 原始邮件 ------------------ 发件人: "LeeKamentsky/python-javabridge" @.>; 发送时间: 2022年9月11日(星期天) 凌晨4:40 @.>; @.@.>; 主题: Re: [LeeKamentsky/python-javabridge] Exception: Error finding javahome on linux: ['bash', '-c', 'type -p java'] (Issue #207)

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

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

thomaseddison avatar Sep 15 '22 07:09 thomaseddison