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

Could not import packages for CMIknn and GPDC estimation #66

Closed
yubaocheng258 opened this issue Jun 6, 2020 · 6 comments
Closed

Could not import packages for CMIknn and GPDC estimation #66

yubaocheng258 opened this issue Jun 6, 2020 · 6 comments

Comments

@yubaocheng258
Copy link

yubaocheng258 commented Jun 6, 2020

Hello!Now I have a question need your help: I have already installed tigramite-master(new) and all packages it needs. But when I used Geany to run the example in documents, it still display an error "Could not import packages for CMIknn and GPDC estimation", I wonder whether I have loss some packages I don't know. Please tell me the truth. Thank you very much

@jakobrunge
Copy link
Owner

It means that you didn't follow the installation instructions:
python setup.py install
This will install tigramite in your path.
To use just the ParCorr and CMIsymb independence tests, only numpy and scipy are required. For other independence tests more packages are required:
CMIknn: cython can optionally be used for compilation, otherwise the provided *.c'' file is used GPDC: also based on cython, and additionally, scikit-learn is required for Gaussian Process regression RCOT requires more work: Firstly, rpy2 is required to access R-packages. The required R-packages can be installed with the script install_r_packages.sh''. Due to R-related issues, the installation of R's devtools might fail when running "install_r_packages.sh". This can be solved e.g. by installing missing / not resolved R dependencies using conda: "conda install r-git2r".

RCOT will not be in future releases to avoid R-dependencies.

@yubaocheng258
Copy link
Author

It means that you didn't follow the installation instructions:
python setup.py install
This will install tigramite in your path.
To use just the ParCorr and CMIsymb independence tests, only numpy and scipy are required. For other independence tests more packages are required:
CMIknn: cython can optionally be used for compilation, otherwise the provided *.c'' file is used GPDC: also based on cython, and additionally, scikit-learn is required for Gaussian Process regression RCOT requires more work: Firstly, rpy2 is required to access R-packages. The required R-packages can be installed with the script install_r_packages.sh''. Due to R-related issues, the installation of R's devtools might fail when running "install_r_packages.sh". This can be solved e.g. by installing missing / not resolved R dependencies using conda: "conda install r-git2r".
RCOT will not be in future releases to avoid R-dependencies.

Thank you for your reply, I will try it

@yubaocheng258
Copy link
Author

It means that you didn't follow the installation instructions:
python setup.py install
This will install tigramite in your path.
To use just the ParCorr and CMIsymb independence tests, only numpy and scipy are required. For other independence tests more packages are required:
CMIknn: cython can optionally be used for compilation, otherwise the provided *.c'' file is used GPDC: also based on cython, and additionally, scikit-learn is required for Gaussian Process regression RCOT requires more work: Firstly, rpy2 is required to access R-packages. The required R-packages can be installed with the script install_r_packages.sh''. Due to R-related issues, the installation of R's devtools might fail when running "install_r_packages.sh". This can be solved e.g. by installing missing / not resolved R dependencies using conda: "conda install r-git2r".
RCOT will not be in future releases to avoid R-dependencies.

Sorry, I have already test all packages : include numpy, scipy, scikit-learn,matplotlib,networkx,cython,mpi4py,rpy2,r-git2r and RCIT,but it still display "Could not import packages for CMIknn and GPDC estimation". What should I do?

@yubaocheng258
Copy link
Author

picture
Further more ,If I used cmd to run the example,it will diaplay the error like the picture ,I also install the tigramite-developer, I wonder what's worng with that. I'm looking forward to your replay. Thank you

@jakobrunge
Copy link
Owner

Sorry, that was a typo, use pcmci.print_significant_links(...) instead (without the prefix "_").
It's fixed in the developer now....

@yubaocheng258
Copy link
Author

Thank you for your reply.The problem solved.Thank you very much!!!!

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

2 participants