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

cython module not imported #86

Open
BernhardBandow opened this issue Jul 20, 2022 · 7 comments
Open

cython module not imported #86

BernhardBandow opened this issue Jul 20, 2022 · 7 comments

Comments

@BernhardBandow
Copy link

I quick test after installing idtxl 1.4 resulted in a message "Error importing Cython fast embedding module...". Cython definitely was instelld before. It turned out that "python hde_setup.py build_ext --inplace" and copying the result into the idtxl folder solved the issue. I would recommend to document this.

@axelhutt
Copy link

Hallo,
I had the same problem on the MacOS 12.5.1. Where do you compile hde_setup.py ? If I do it in IDTxl/idtxl (where hde_setup.py is located), I get
the error message "could not create idtxl/hde_fast_embedding.cpython-39-darwin.so: No such file or directory".
Can you help me out here ?

@mwibral
Copy link
Collaborator

mwibral commented Nov 15, 2022 via email

@pwollstadt
Copy link
Owner

Hi all, I added a description of the installation process to this wiki page. Please note that the Cython fast embedding module is only needed for the history-dependence estimator. If you are not using it, the message does not affect you. I will modify the error message to make this clear.

@infrareziduzi, out of curiosity, could you tell me which test you ran to get the error message?

@qifnwang
Copy link

qifnwang commented Feb 2, 2023

the code has to be compiled on each traget machine adfter installation. The compile command for the cython code has to be executed in the right folder, or else the resulting compiled object has to be moved to the right location. Michael Lindner wrote that functionality - he said he left details instructions as comments in the code. Could check and come back to me if that doesn't help? Thanks.

Hi,
Have you solved that? I got the same problem, and I moved 'hde_fast_embedding.cp39-win_amd64.pyd' to IDTXL/idtxl folder. But it still cannot import. Do you have any idea?
Thanks

@mschart
Copy link

mschart commented Dec 4, 2023

Same here:

In [10]: network_analysis = MultivariateTE()
...: settings = {'cmi_estimator': 'JidtGaussianCMI',
...: 'max_lag_sources': 5,
...: 'min_lag_sources': 1}
...: results = network_analysis.analyse_network(settings=settings,
...: data=d0)

####### analysing target with index 0 from list [0, 1]

Error importing Cython fast embedding module. Continuing with slow Python implementation.

This may take a long time.

@axelhutt
Copy link

axelhutt commented Dec 4, 2023

Hallo,

I had this problem several months ago and 'solved' it by copying the corresponding library to the local directory where you call the script. This is just a workaround and no real solution, but it helped me to get results.

Good luck with it.

Axel

@mschart
Copy link

mschart commented Dec 4, 2023

Thanks Axel, I ran it in the IDTxl/idtxl folder and the error message is gone. It still takes a long time, however. Spectral Granger was instantaneous in comparison (via Eden-Kramer/spectral-connectivity).

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

6 participants