openfold
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'
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.
I had the same error and putting an empty __init__.py in the resources folder fixed it.
@nsridhar1 is right, but there is already an __init__.py in the resources folder. Which commit are you running?
@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.
Got it. @mslee1220 can you confirm whether this fixes your issue?
@gahdritz No, I added the init.py in the resources folder, but I have still experienced the same issue.
Are you running the most recent commit?
Sure. I generated new google account to test this issue two days ago, but it was not work.
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 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.
@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.
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 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.