-
Notifications
You must be signed in to change notification settings - Fork 40
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
Module not found error #2
Comments
Hi Alex, I'm not familiar with running command line tools within Spider, but this error seems to indicate that casanovo is not installed as a Python package in your current environment. What do you get when you run the following?
If casanovo was successfully installed, the output should look something like this:
|
Hi, Yes running is returning
|
Hi Alex,
You seem to have a Also the imports you mention are actually consistent and you can confirm this by checking the imports in |
Hi Melih, I think I have solved the install issue. I have however had issues trying to load in my datasets. I've tried different combinations of the following for the paths but have had no luck.
Could you please give some guidance on the best way to call the script with the correct arguments on Windows? Best wishes, A couple of examples:
|
Hi Alex, I just pushed a fix to solve the issue. You should provide paths with forward slash as shown in sample commands Let me know if the issue is fixed. |
Hi there,
I've been trying to run your code on Spyder through Anaconda, but I've been having trouble running the following line:
>>run casanovo --mode=denovo --model_path='pretrained_excl_clambacteria.ckpt' --test_data_path='dark_control_1.mgf' --config_path='config' --output_path='test.csv'
The following error is reported back:
**Traceback (most recent call last):
File "F:\Applications\Noble\casanovo\casanovo.py", line 3, in
from casanovo.denovo import train, test_evaluate, test_denovo
ModuleNotFoundError: No module named 'casanovo.denovo'; 'casanovo' is not a package**
I've noticed that some of the files being called appear to have different names to their current version on GitHub.
E.g. in casanovo.py, it tries to import 'train', 'test_evaluate', and 'test_denovo' from casanovo/denovo.
However, in this directory the files are named 'train_test', 'evaluate', and 'model'.
Having played around changing the relevant lines in this file to get it to work, it brought forth more import errors from other files.
Eventually 'fixing' them produces a circular import so I don't think what I've done is correct.
Do you know what might be causing this error? Am I correct in thinking these files are currently mis-named?
Any help would be greatly appreciated.
Best wishes,
Alex
The text was updated successfully, but these errors were encountered: