ModuleNotFoundError: No module named 'openfold'
"Dear developers, I attempted to train my own data using lucaprot following the instructions in the GitHub guide, but encountered an error during the first step, 'Prediction of protein 3D-structure.' How can I resolve this issue?"
(lucaprot) (deepseek) [xb@protein_structure]$ export CUDA_VISIBLE_DEVICES=0
python3 structure_from_esm_v1.py
-i /home/xb/1_results/250213_lucaprot_training/data/tf.fasta
-o /home/xb/1_results/250213_lucaprot_training/pdbs/tf/
--num-recycles 4
--truncation_seq_length 1022
--chunk-size 64
--cpu-offload
--batch_size 1
2025-02-19 15:02:20.557114: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 AVX_VNNI FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2025-02-19 15:02:20.617172: I tensorflow/core/util/port.cc:104] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
2025-02-19 15:02:20.883927: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory
2025-02-19 15:02:20.883959: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory
2025-02-19 15:02:20.883962: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
Traceback (most recent call last):
File "/home/xb/3_opt/lucaprot/LucaProt-master/src/protein_structure/structure_from_esm_v1.py", line 438, in
"Dear developers, I attempted to train my own data using lucaprot following the instructions in the GitHub guide, but encountered an error during the first step, 'Prediction of protein 3D-structure.' How can I resolve this issue?"
(lucaprot) (deepseek) [xb@protein_structure]$ export CUDA_VISIBLE_DEVICES=0
python3 structure_from_esm_v1.py -i /home/xb/1_results/250213_lucaprot_training/data/tf.fasta -o /home/xb/1_results/250213_lucaprot_training/pdbs/tf/ --num-recycles 4 --truncation_seq_length 1022 --chunk-size 64 --cpu-offload --batch_size 1 2025-02-19 15:02:20.557114: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 AVX_VNNI FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 2025-02-19 15:02:20.617172: I tensorflow/core/util/port.cc:104] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable
TF_ENABLE_ONEDNN_OPTS=0. 2025-02-19 15:02:20.883927: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory 2025-02-19 15:02:20.883959: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory 2025-02-19 15:02:20.883962: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly. Traceback (most recent call last): File "/home/xb/3_opt/lucaprot/LucaProt-master/src/protein_structure/structure_from_esm_v1.py", line 438, in model = esm.pretrained.esmfold_v1() File "/home/xb/miniconda3/envs/lucaprot/lib/python3.9/site-packages/esm/pretrained.py", line 419, in esmfold_v1 import esm.esmfold.v1.pretrained File "/home/xb/miniconda3/envs/lucaprot/lib/python3.9/site-packages/esm/esmfold/v1/pretrained.py", line 5, in from esm.esmfold.v1.esmfold import ESMFold File "/home/xb/miniconda3/envs/lucaprot/lib/python3.9/site-packages/esm/esmfold/v1/esmfold.py", line 11, in from openfold.data.data_transforms import make_atom14_masks ModuleNotFoundError: No module named 'openfold'
If you want to predict the protein 3D-Strcuture using ESMFold, please pip install openfold (https://github.com/aqlaboratory/openfold).
We recommend that you use the protein embedding matrix by ESM2 or LucaOne instead of the explicit 3d structure as one of the inputs to LucaProt. Can reference LucaPCycle (https://github.com/LucaOne/LucaPCycle), it is the latest code of LucaProt for the other protein task.
In addition, for downstream tasks that are not directly related to the protein 3d-structure, we recommend using LucaOne's embedding instead of ESM2's embedding(https://github.com/LucaOne/).
Thank you for your quick response. I would like to work on a binary classification project, where the input is a protein sequence, and the goal is to determine whether it is a target protein. Could you please suggest which model from the Luca series would be best to refer to?
using LucaPCycle
BinXiao @.***> 于2025年2月19日周三 16:12写道:
Thank you for your quick response. I would like to work on a binary classification project, where the input is a protein sequence, and the goal is to determine whether it is a target protein. Could you please suggest which model from the Luca series would be best to refer to?
— Reply to this email directly, view it on GitHub https://github.com/alibaba/LucaProt/issues/86#issuecomment-2667862319, or unsubscribe https://github.com/notifications/unsubscribe-auth/AORN2XT5C57G2XCQS67PZQD2QQ4F7AVCNFSM6AAAAABXNNMOSSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRXHA3DEMZRHE . You are receiving this because you are subscribed to this thread.Message ID: @.***> [image: xiaobin-phd]xiaobin-phd left a comment (alibaba/LucaProt#86) https://github.com/alibaba/LucaProt/issues/86#issuecomment-2667862319
Thank you for your quick response. I would like to work on a binary classification project, where the input is a protein sequence, and the goal is to determine whether it is a target protein. Could you please suggest which model from the Luca series would be best to refer to?
— Reply to this email directly, view it on GitHub https://github.com/alibaba/LucaProt/issues/86#issuecomment-2667862319, or unsubscribe https://github.com/notifications/unsubscribe-auth/AORN2XT5C57G2XCQS67PZQD2QQ4F7AVCNFSM6AAAAABXNNMOSSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRXHA3DEMZRHE . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Or using LucaOneTasks
贺勇 @.***> 于2025年2月19日周三 16:48写道:
using LucaPCycle
BinXiao @.***> 于2025年2月19日周三 16:12写道:
Thank you for your quick response. I would like to work on a binary classification project, where the input is a protein sequence, and the goal is to determine whether it is a target protein. Could you please suggest which model from the Luca series would be best to refer to?
— Reply to this email directly, view it on GitHub https://github.com/alibaba/LucaProt/issues/86#issuecomment-2667862319, or unsubscribe https://github.com/notifications/unsubscribe-auth/AORN2XT5C57G2XCQS67PZQD2QQ4F7AVCNFSM6AAAAABXNNMOSSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRXHA3DEMZRHE . You are receiving this because you are subscribed to this thread.Message ID: @.***> [image: xiaobin-phd]xiaobin-phd left a comment (alibaba/LucaProt#86) https://github.com/alibaba/LucaProt/issues/86#issuecomment-2667862319
Thank you for your quick response. I would like to work on a binary classification project, where the input is a protein sequence, and the goal is to determine whether it is a target protein. Could you please suggest which model from the Luca series would be best to refer to?
— Reply to this email directly, view it on GitHub https://github.com/alibaba/LucaProt/issues/86#issuecomment-2667862319, or unsubscribe https://github.com/notifications/unsubscribe-auth/AORN2XT5C57G2XCQS67PZQD2QQ4F7AVCNFSM6AAAAABXNNMOSSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRXHA3DEMZRHE . You are receiving this because you are subscribed to this thread.Message ID: @.***>
OK, I WII TRY THESE MODEL, THANKS A LOT!
BEST REGARDS