-
Notifications
You must be signed in to change notification settings - Fork 10
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 predict function #12
Comments
Copied from here: Hi Richel, Thank you for your question. I see a couple potential solutions here.
Hope my answer helps you. Melody |
Hi @XiaoshanShao, Again, thanks for your reply. Here I demonstrate that, AFAICS, the Python version does not matter: Show my Python script file again:
Results in this one line:
Running it with Python2:
results in the same error:
Can you reproduce the bug, or does it work cleanly on your computer? |
Hi @richelbilderbeek , We use MHCnuggets daily, and I just uninstalled/reinstalled it through pip. It doesn't appear to have any issue for me. From your bug, it does seem to me that it is an environment issue. You python environment is not finding your mhcnuggets package. Here is another link to help you set up your environment: https://stackoverflow.com/questions/122327/how-do-i-find-the-location-of-my-python-site-packages-directory. If you don't want to deal with all the environment issues, you could use our docker version of MHCnuggets, and the instructions are here: https://github.com/KarchinLab/mhcnuggets/wiki/MHCnuggets-container-with-Jupyter-Notebook-interface. Or you could just clone the whole package from our github site, and use the source code as python scripts since everything is open source. Melody |
Hi Melody, thanks for confirming the problem is on my side (I assume you ran the script as well)!
Yup, that is exactly what I am doing 😎 👍 OK, will close this Issue then, unless I have some evidence something is wrong. Thanks for the help! |
Dear MHCnuggets maintainer,
MHCnuggests appears awesome! Sadly, however, I cannot even get it to be imported. Because there is no CI (#11), I do not dare assume the problem is on my side (although I predict it is).
Here I install MHCnuggets ...
... which results in showing I already did so.
Then I want to run this Python script, which is the first line from the example notebook):
Running this from a shell:
Results in:
Where is the error?
The text was updated successfully, but these errors were encountered: