openfold icon indicating copy to clipboard operation
openfold copied to clipboard

FileNotFoundError: [Errno 2] No such file or directory: '/opt/conda/lib/python3.7/site-packages/openfold/resources/stereo_chemical_props.txt'

Open mslee1220 opened this issue 3 years ago • 12 comments
trafficstars

While running OpenFold, I experienced following error at the stage of AMBER relaxiation 86%

FileNotFoundError: [Errno 2] No such file or directory: '/opt/conda/lib/python3.7/site-packages/openfold/resources/stereo_chemical_props.txt'

I used my sequences and default sequence provided by OpenFold, both cases showed the same errors. Is there any solutions to solve this problem?

Thanks in advances.

mslee1220 avatar Feb 09 '22 03:02 mslee1220

I had the same error and putting an empty __init__.py in the resources folder fixed it.

nsridhar1 avatar Feb 09 '22 15:02 nsridhar1

@nsridhar1 is right, but there is already an __init__.py in the resources folder. Which commit are you running?

gahdritz avatar Feb 09 '22 21:02 gahdritz

@gahdritz I saw the error in an older commit where scripts/install_third_party_dependencies.sh created a new resources folder. This is not the case any more.

nsridhar1 avatar Feb 10 '22 13:02 nsridhar1

Got it. @mslee1220 can you confirm whether this fixes your issue?

gahdritz avatar Feb 10 '22 18:02 gahdritz

@gahdritz No, I added the init.py in the resources folder, but I have still experienced the same issue.

mslee1220 avatar Feb 10 '22 20:02 mslee1220

Are you running the most recent commit?

gahdritz avatar Feb 10 '22 20:02 gahdritz

Sure. I generated new google account to test this issue two days ago, but it was not work.

mslee1220 avatar Feb 10 '22 20:02 mslee1220

Did you run the install_third_party_dependencies script? Is the stereo_chemical_props file actually in the resources directory? The reason I asked if you had the most recent commit was that, if you did, you wouldn't have had to add the __init__.py yourself if you did. Was there already such a file in the resources directory when you added it?

gahdritz avatar Feb 10 '22 21:02 gahdritz

@gahdritz Absolutely. But, I can't remember whether stereo_chemical_props existed in the resources directory. But, I added the init.py one time, but it wasn't work. Currently, the file is existed in the resource folder, but there is not init.py file. I will try it one more again and let you know.

mslee1220 avatar Feb 11 '22 14:02 mslee1220

@gahdritz It still shows the same issue. I reran the OpenFold and checked out the stereo_chemical_props existed in the resource folder. Also, I added the init.py in the resource folder, but it still doesn't work.

mslee1220 avatar Feb 11 '22 15:02 mslee1220

Sorry to keep harping on this, but it still sounds like you're manually adding __init__.py to the resources folder. If you were using the most recent commit, it would be there already. Could you run git pull origin main and try again?

gahdritz avatar Feb 14 '22 18:02 gahdritz

@gahdritz Thank you for your help. Yes, I have manually added init.py to the resources folder. Today, I tested again, it was existed in the openfold/openfold/resources folder. For stereo_chemical_props.txt, it is in the openfold/resources folder. I am curious that the location of __init__py and stereo_chemical_props.txt files are correctly located.

mslee1220 avatar Feb 14 '22 19:02 mslee1220