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

Import Error during using #77

Closed
Ricardokevins opened this issue Sep 25, 2022 · 3 comments
Closed

Import Error during using #77

Ricardokevins opened this issue Sep 25, 2022 · 3 comments

Comments

@Ricardokevins
Copy link

I am a novice in this field, seek for help...

Operation:
pip install causal-learn(sucessfully)
touch a new file test.py(sucessfully)
copy testPC.py to test.py(sucessfully)
python3 test.py (encounter Error :

(main) ➜  Test git:(main) ✗ python3 testC.py 
Traceback (most recent call last):
  File "testC.py", line 8, in <module>
    from causallearn.utils.cit import chisq, fisherz, gsq, kci, mv_fisherz, d_separation
ImportError: cannot import name 'd_separation' from 'causallearn.utils.cit' (/Users/sheshuaijie/app/miniconda3/envs/main/lib/python3.8/site-packages/causallearn/utils/cit.py)

Any Suggestion will be greatly appreciate!!!!

@MarkDana
Copy link
Collaborator

Hi @Ricardokevins. Which version of causal-learn are you using? This might be due to an outdated version. We'll release a latest one soon and please update to it. Thanks for identifying this :)

@kunwuz
Copy link
Collaborator

kunwuz commented Sep 25, 2022

Hi, thanks for reaching out. We have just released a version on pypi. Could you please try 'pip install causal-learn==0.1.2.9' and run your scripts again?

@Ricardokevins
Copy link
Author

Thank you very much for your quick reply.
Problem fixed with your help

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

3 participants