pwollstadt / IDTxl

The Information Dynamics Toolkit xl (IDTxl) is a comprehensive software package for efficient inference of networks and their node dynamics from multivariate time series data using information theory.
http://pwollstadt.github.io/IDTxl/
GNU General Public License v3.0
243 stars 77 forks source link

Update warning that reports Cython implementation for the HD estimator is missing #83

Closed pwollstadt closed 10 months ago

pwollstadt commented 2 years ago

The current warning could be more specific in terms of which module is affected and how to solve the issue: "Error importing Cython fast embedding module ...". Update error message and/or only issue it if the HD estimator is used.

axelhutt commented 1 year ago

Hallo, I receive this message "Error importing Cython fast embedding module. Continuing with slow Python implementation" and see in estimators_Rudelt.py the line

import idtxl.hde_fast_embedding as fast_emb

generating this message. In fact hde_fast_embedding.py does not exist in the path. From where do I get it ?

pwollstadt commented 1 year ago

Hi Axel, yes, the documentation for setting up the HDE estimator was missing. I added it here: https://github.com/pwollstadt/IDTxl/wiki/Installation-of-history-dependence-(HDE)-estimator

I also changed the error message to make it clearer. Hope this helps.

vinni94 commented 1 year ago

Hi @PWollstadtHRI , I copied the .so file in my build folder to the IDTXL/idtxl directory. Still, while running test_fast_emb.py , the error reports a failure in importing Cython. Please help.

axelhutt commented 1 year ago

Dear vinnie,

I had the same problem and, as a first solution, copied the .so file into the local directory where you call your Python code. Hope that helps

On Wed, Feb 1, 2023 at 7:46 PM vinni94 @.***> wrote:

Hi @PWollstadtHRI https://github.com/PWollstadtHRI , I copied the .so file in my build folder to the IDTXL/idtxl directory. Still, while running test_fast_emb.py , the error reports a failure in importing Cython. Please help.

— Reply to this email directly, view it on GitHub https://github.com/pwollstadt/IDTxl/issues/83#issuecomment-1412548235, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZJ2FGDT6A7KOBTZ2Z7XWYTWVKVQDANCNFSM5UZUVTPA . You are receiving this because you commented.Message ID: @.***>

-- Dr. Axel Hutt Team project MIMESIS INRIA Nancy Grand Est 1, Place de l'Hopital 67000 Strasbourg France Tel.: +33 (0)3 8811 9026 https://mimesis.inria.fr/speaker/axel-hutt/

vinni94 commented 1 year ago

Dear @axelhutt , Thanks much for the swift response. I tried copying the shared object file in the same directory as that of ./test_fast_emb.py. However, I face the same error. Did that work for you? has it got anything to do with the file name? mine is named as follows: hde_fast_embedding.cpython-311-x86_64-linux-gnu.so

axelhutt commented 10 months ago

Hmm, you should include your local directory in PYTHONPATH at first. Then check whether your directory is in LD_LIBRARY_PATH that the OS finds your dynamic library....