Closed LennoxLiu closed 8 months ago
I encountered the same issue.
Validated.
In short: It seems v1.5 is distributing an older version of the JIDT infodynamic.jar file which overwrote the correct version on a merge from the develop branch.
More detail: The distributed jar looks to be an older build from June 2017 before we changed method calls (in both python and JIDT) to be compatible with latest jpype libaries. The jar on the main branch (along with python files) had been updated in July 2019 for this (see history of this file) but the correct jar version was overwritten more recently by the aforementioned merge from the development branch. The python code itself looks to have retained the updates, so not sure why only the jar was reverted.
Fix: In any case, infodynamics.jar needs to be replaced with the one uploaded in July 2019. Another alternative is to replace with the latest JIDT version, but that may require more testing to ensure it doesn't break anything else. Patricia and co - will leave to you guys to decide which to go with?
Hi @LennoxLiu,thanks for the thorough error report. I was not in the office over the holidays, but will look into this now.
Thanks @jlizier for confirming. I think updating to a later JIDT version would be nice. Also to work with the latest JPype version. After a first quick check this does not look like too much of a hassle.
Ok cool - you should be able to grab the jar straight from the latest v1.6.1 https://github.com/jlizier/jidt/releases/tag/v1.6.1 JIDT release (which is relatively recent from August 2023). That shouldn't break anything, but worth running the tests of course
Message ID: @.***>
I've tried replace the infodynamis.jar 1.6 and 1.6.1 but it doesn't work. I still got the error message" AttributeError: 'infodynamics.measures.continuous.gaussian.MutualIn' object has no attribute 'setObservations2D'"
Hy all, I ran a few tests on this. I could confirm the initial error and replacing the JIDT jar file with version 1.6.1 did solve the issue for me.
@xiaoxuanren what Jpype1 version are you using? That is sometimes an issue. I had no problems with Jpype1 1.2.1 and JIDT 1.6.1. Could you try that?
I created a new release (v1.5.1) using JIDT version 1.6.1. I will close this for now, please let me know if the error persists. Thanks for the feedback!
Description
I encountered an error when running the demo files in
demos
folder after installing IDTxl-v1.5. Basically, all demo files failed because of the same bug.I tried switching to IDTxl-v1.4 and v1.4 works well, so it's only a problem for v1.5.
Expected Behavior
The program runs successfully.
Actual Behavior
The demo file(e.g.
demo_bivariate_te.py
) threw an AttributeError when calling the function in fileestimators_jidt.py
:Step to Reproduce
Execute
python demos/demo_bivariate_te.py
or any other files indemos
folder.Environment
Full output
Running
demos/demo_bivariate_te.py
: