-
Notifications
You must be signed in to change notification settings - Fork 2
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
from collections import Counter keeps giving a TypeError #8
Comments
Digging deeper into the lib collections it gives the warning "Import "_collections" could not be resolved". Running the Python interpreter 3.9.17 in miniconda3 like you suggested. Don't know what I'm missing here... |
Not running it in notebooks gets me a little further. Getting different errors. Digging even deeper, seeing that phenopy/config.py tries to access a os.path named HOME. That doesn't exist on Windows. Are you running linux? |
We have been mainly running Linux indeed, but Windows as well - but I think I know what the issue is on Windows. Could you try this fix? |
No, Ive not encountered that before. What is your mxnet version? (let me rerun the automated tests here on github to see if I can reproduce the issue there!) |
Thats strange, its a pretty old version (although I could have specified that). Could you try installing a newer version? 1.7.0 for instance? i.e. If thats the issue, I will update the |
I guess that's only a version for linux. Can go up to 1.2.0 but it won't let me pip install mxnet==1.7.0.post2 |
I've just verified on a windows machine that I can install |
Hmm that's weird. What's your numpy version there? https://stackoverflow.com/questions/66925556/problem-installing-mxnet-using-pip-on-windows |
maybe try this:
yes, very convoluted, I completely agree, but packages in python can be troublesome, maybe this works? |
related to numpy on windows maybe? here are some pointers numpy/numpy#13573? |
Yes i got it to work! Thanks for your help. Now the above pip commands work. I haven't got the GPU inference to work. It gives me missing library's error but will look at that for another day. CPU inference is working. Can't get this to work in the Jupyter notebooks, just made a py script for now. Thanks for your support and work! |
FYI got the CUDA part working. |
great to hear you've solved it! Thanks for opening the issue - and closing it now that it is clear. I will look into CI for Windows a bit more if there are more users that have issues installing it on Windows. Good luck with using PhenoScore in your research - be sure to let me know if there are other problems, are if things are unclear (in the documentation for instance), or missing etc. |
I'm trying to run the model but keep running into this issue. I'm running miniconda3 for all my projects but when running the notebook it keeps returning this error. Wondering if you had any such issue?
The text was updated successfully, but these errors were encountered: