RosettaCommons / PyRosetta.notebooks

Jupyter Notebooks for learning the PyRosetta platform for biomolecular structure prediction and design
https://rosettacommons.github.io/PyRosetta.notebooks/
MIT License
469 stars 151 forks source link

Segmentation fault when importing ESMFold and Tokenizers from transformers along with Pyrosetta #97

Open SIAndersson opened 8 months ago

SIAndersson commented 8 months ago

System info:

Code:

import pyrosetta
from transformers import AutoTokenizer, EsmForProteinFolding

Expected behaviour: the module imports without issue. I can import pyrosetta on its own without issue. I can import the transformers modules without issue and run inference on PDB modules, as described in the protein structure prediction Jupyter notebook. I can do this without issue in a separate script. It is only when I import both that the segmentation fault occurs. The import order does not matter. Given that both work separately, I would expect them to work together as I cannot find any package conflicts.