RosettaCommons / RFdiffusion

Code for running RFdiffusion
Other
1.67k stars 325 forks source link

FileNotFoundError: [Errno 2] No such file or directory: 'outputs/traj/test_0_pX0_traj.pdb' #206

Open bethleegy opened 7 months ago

bethleegy commented 7 months ago

Hi there,

I am trying to diffuse a binder of length 20 to the X chain of the protein "2O26."

image

But I can't seem to get around this error. If this is an issue within the PDB file, I would appreciate some pointers in how to start identifying it.

Thank you in advance.

TheFoodborneScientist commented 7 months ago

I was experiencing the same issue on the Google Colab version, but it appears the issue has been resolved as of March 5th 12:30 CST. I would recommend trying again!

bethleegy commented 7 months ago

@TheFoodborneScientist thank you, it seems some proteins work now, but not the one I posted about. Weird! I'll keep looking into it.

TheFoodborneScientist commented 7 months ago

It seems like I spoke too soon! I'm having issues again with the notebook. Perhaps it's intermittent as well?

Gianni1202 commented 6 months ago

Yes I am having the same problem, inability to generate an output, any protein I use isn't working

nd346 commented 6 months ago

Hi I am having the same issue, does anyone knows the answer?

itzfredz commented 6 months ago

Screen Shot 2024-03-09 at 14 34 10

Same here, the issue is still up.

sokrypton commented 6 months ago

Do you guys have an example? I'll take a look.

itzfredz commented 6 months ago

Do you guys have an example? I'll take a look.

Hi there, unsure what to give as an example but the error occurs after I inputted all the necessary details for the contigs and such in the "run RFdiffusion to generate a backbone" tab. This then showed the upload prompt (since Ileft my pdb field blank as I wanted to upload my own structures). And then once the .pdb is fully uploaded it shows that error and RFdiffusion stops entirely. Hope that helps! Let me know if you need any more details! :)

patjiang commented 6 months ago

Hello, I've been running into this one as well. I traced it back a bit and it seems that the error comes from the internal notebook's function defined as "run_diffusion"

patjiang commented 6 months ago

From my previous comment, it seems that the eroor is this section of code:

for n in range(num_designs): pdbs = [f"outputs/traj/{path}_{n}_pX0_traj.pdb", f"outputs/traj/{path}_{n}_Xt-1_traj.pdb", f"{full_path}_{n}.pdb"] for pdb in pdbs: with open(pdb,"r") as handle: pdb_str = handle.read() with open(pdb,"w") as handle: handle.write(fix_pdb(pdb_str, contigs))

patjiang commented 6 months ago

Hello all. I was able to resolve the issue by directly modifying my .pdb file to only contian the atomic information, as well as inputting my .pdb file into the RFDiffusion/examples/input_pdbs folder.

Furthermore, the issue returned when I passed arguments into the hotspots text box. I am unsure what is causing this issue, but I hope @sokrypton can bring me some clarity.

sokrypton commented 6 months ago

If you are seeing this error that means RfDiffusion failed to run. It could fail for a number of reasons including:

xinran1129305 commented 6 months ago

If you are seeing this error that means RfDiffusion failed to run. It could fail for a number of reasons including:

  • protein too large to run, ran out of memory
  • inputs don't make sense (ex. chains specified for range or hotspot don't match what is found in the pdb)

I just have tried to get a protein of about 25aa, and I have the same input as before. But it seems that we would get this error now, which is never meet before. @sokrypton Thanks in advance!

xinran1129305 commented 6 months ago

Oh, new error occurs when I try to setup RFdiffusion: ImportError: Cannot load Graphbolt C++ library

patjiang commented 6 months ago

@xinran1129305 make sure you have gpu connected

patjiang commented 6 months ago

@xinran1129305 I have gotten the colab notebook to work fine for me; could you please show an image of your inputs so we can help you debug?

liszt-c commented 6 months ago

This error is caused by a failed RFdiffusion run without output. I tried some methods to solve this problem on my local computer. If you still get this error after carefully checking the input files and installation steps, you may try the following actions.

Code files under RFdiffusion\inference have parts of circular references (imports) that can cause errors. You may need to use the importlib module to handle code with circular references. In colab, the run_command_and_get_pid() function in the setup RFdiffusion section uses pid to detect the running condition of RFdiffusion. It may fail to run due to permission problems, so you can comment out the function. Run the command using os.system(f'{cmd}') directly from the # RUN comment.

In addition, there is some dependency problem, but I do not think it is the key cause of this problem. jax[cuda12] relies on CUDA12.3 while pytorch and dgl rely on CUDA12.1, you may need to reinstall the available jax, which usually causes the colabdesign module to not call the GPU and only work with the cpu. dgl relies on pytorch2.2.1 and later, and the latest version of pytorch2.2.2. Is installed by default, but this part generally does not cause conflicts.

I'm new to github, and forgive me for my broken English.