-
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
Bug: OSError: could not get source code #609
Comments
@DaniBodor @gcroci2 Ohhh, thank you! I'll close the issue as solved. |
JFYTK patch 3.0.3 is out :) @rubenalv |
@gcroci2, unfortunately I am getting the same error despite the patch!
but to no avail, the OS error appears right away. Any hints as to how I could go about troubleshooting it in my system, what I should be looking for? |
Weird! To help us investigate and resolve it, then we will need more information from your side.
|
Thank you, sys specs below: Operating System: Rocky Linux 8.9 (Green Obsidian) Conda environment, running Python 3.10.14.
We have a privileged user for installations, and regular users. I noticed that writing privileges in deeprank2/ are required to at least run |
@gcroci2, I found the reason for the problem: I was running the code (https://github.com/DeepRank/deeprank2/blob/main/tutorials/training.ipynb) from the Python command line (not from the original Jupiter notebook). I copied it to a script and run I don't know enough Python to understand why, because I could use inspect.getsource() from command line in a mock serialized/deserialized object. If you knew why and could point me to an explanation it would be great! Perhaps it would be worth it to add a note to not run in command line in the tutorial? I think the issue is OK to be closed now. |
@rubenalv It sounds like the issue is related to how If I understand correctly, the code was trowing an error about
So to conclude, my guess is that when you run the code from the Python command line you are defining an "interactive" job on the cluster without a source file, and
Good suggestion, thanks :) I opened a PR (#620) for it. |
All much appreciated, thank you for your work to make DeepRank2 accesible! |
I downloaded the pre_processed data and tried running the tutorial here https://github.com/DeepRank/deeprank2/blob/main/tutorials/training.ipynb
At the stage of
The output is:
I have deeprank2 installed in a cluster, with permissions rwxr.x... and I run it with my user that belongs to the group (ie running it with permissions r.x). I tried running it with full rwx as well, but got the same error.
Also, I noticed that the file in https://github.com/DeepRank/deeprank2/blob/main/deeprank2/trainer.py is not identical to the file that gets installed. At least, in the save_model() function they differ:
In the file:
But in github:
Any hints as to the OS error?
The text was updated successfully, but these errors were encountered: