RFdiffusion icon indicating copy to clipboard operation
RFdiffusion copied to clipboard

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

Open bethleegy opened this issue 1 year ago • 18 comments

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.

bethleegy avatar Mar 05 '24 17:03 bethleegy

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!

TheFoodborneScientist avatar Mar 05 '24 18:03 TheFoodborneScientist

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

bethleegy avatar Mar 05 '24 19:03 bethleegy

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

TheFoodborneScientist avatar Mar 05 '24 20:03 TheFoodborneScientist

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

Gianni1202 avatar Mar 07 '24 16:03 Gianni1202

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

nd346 avatar Mar 08 '24 17:03 nd346

Screen Shot 2024-03-09 at 14 34 10

Same here, the issue is still up.

itzfredz avatar Mar 09 '24 03:03 itzfredz

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

sokrypton avatar Mar 09 '24 17:03 sokrypton

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! :)

itzfredz avatar Mar 10 '24 21:03 itzfredz

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 avatar Mar 15 '24 00:03 patjiang

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 avatar Mar 15 '24 18:03 patjiang

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.

patjiang avatar Mar 15 '24 19:03 patjiang

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)

sokrypton avatar Mar 15 '24 19:03 sokrypton

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 avatar Mar 16 '24 08:03 xinran1129305

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

xinran1129305 avatar Mar 16 '24 15:03 xinran1129305

@xinran1129305 make sure you have gpu connected

patjiang avatar Mar 19 '24 20:03 patjiang

@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?

patjiang avatar Mar 19 '24 20:03 patjiang

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.

liszt-c avatar Mar 31 '24 10:03 liszt-c