OxWearables / actipy

Python Software Development Kit (SDK) to process Axivity, GENEActiv, and Actigraph files
https://actipy.readthedocs.io/en/latest/
Other
19 stars 8 forks source link

No JVM shared library file (libjli.dylib) found #13

Open spiousas opened 1 year ago

spiousas commented 1 year ago

Hi!

After checking the Python and Java versions (3.11.2 and 1.8.0_311) I installed actipy.

When I try to process the data as presented in the tutorial:

data, info = actipy.read_device("data/76985_01.cwa.gz",
                                 lowpass_hz=20,
                                 calibrate_gravity=True,
                                 detect_nonwear=True,
                                 resample_hz=50)

I have an error in line 49 of reader.py:

data, info_read = _read_device(input_file, verbose) The error writes:

JVMNotFoundException: No JVM shared library file (libjli.dylib) found. Try setting up the JAVA_HOME environment variable properly.

I am running the code in a Macbook Pro M1 (2020) with 16 Gb of ram and MacOS Big Sur (11.4)

I tried to fix the error by changing the JAVA_HOME environmental variable bu none of the solutions I found worked out.

Is it fixable?

chanshing commented 1 year ago

When you run java --version in the terminal, what does it show?

spiousas commented 1 year ago

1.8.0_311