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

cannot import name 'reader_cy' from 'pcangsd' #71

Open
cnxiaobo94 opened this issue Feb 15, 2023 · 3 comments
Open

cannot import name 'reader_cy' from 'pcangsd' #71

cnxiaobo94 opened this issue Feb 15, 2023 · 3 comments

Comments

@cnxiaobo94
Copy link

Hi! Rosemeis,
The installation was done as your inst., but a problem occurred as below. Could you please do me a favor?

Traceback (most recent call last):
File "/home/xiaobo/bioinformatics/xiaobo_analyses/../pcangsd/pcangsd/pcangsd.py", line 476, in
main()
File "/home/xiaobo/bioinformatics/xiaobo_analyses/../pcangsd/pcangsd/pcangsd.py", line 147, in main
from pcangsd import reader_cy
ImportError: cannot import name 'reader_cy' from 'pcangsd' (/home/xiaobo/bioinformatics/pcangsd/pcangsd/pcangsd.py)

@Rosemeis
Copy link
Owner

Hi,

Can you send me the command that you have used. :-)
It could be if you work in a HPC environment that it doesn't use your correct python, see #69

Best,
Jonas

@cnxiaobo94
Copy link
Author

python3 ../pcangsd/pcangsd/pcangsd.py --beagle moosePCA.beagle.gz --out moosePCA --threads 8

I used the above command and met a problem like before. After I set an environment path to 'path/to/pcangsd', I used the below command and it worked.

pcangsd --beagle moosePCA.beagle.gz --out moosePCA --threads 8

@aguilar-gomez
Copy link

You solved my problem, I was running previous versions of pcangsd with python3 before and this one you have to run direclty

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