aqlaboratory / openfold

Trainable, memory-efficient, and GPU-friendly PyTorch reproduction of AlphaFold 2
Apache License 2.0
2.72k stars 510 forks source link

RuntimeError: Error compiling objects for extension #131

Open zjyuan1208 opened 2 years ago

zjyuan1208 commented 2 years ago

I installed the env by the script and when I ran the setup.py, an error occurred.

RuntimeError: Error compiling objects for extension

gahdritz commented 2 years ago

Could you share the full error trace?

adrian-jasinski commented 1 month ago

I have similar error:

====================================================================== ERROR: tests.test_utils (unittest.loader._FailedTest)

ImportError: Failed to import test module: tests.test_utils Traceback (most recent call last): File "/home/username/mambaforge/envs/openfold/lib/python3.9/unittest/loader.py", line 436, in _find_test_path module = self._get_module_from_name(name) File "/home/username/mambaforge/envs/openfold/lib/python3.9/unittest/loader.py", line 377, in _get_module_from_name import(name) File "/home/username/code/openfold/tests/test_utils.py", line 27, in import tests.compare_utils as compare_utils File "/home/username/code/openfold/tests/compare_utils.py", line 12, in from openfold.model.model import AlphaFold File "/home/username/code/openfold/openfold/model/model.py", line 29, in from openfold.model.embedders import ( File "/home/username/code/openfold/openfold/model/embedders.py", line 29, in from openfold.model.primitives import Linear, LayerNorm File "/home/username/code/openfold/openfold/model/primitives.py", line 38, in from openfold.utils.kernel.attention_core import attention_core File "/home/username/code/openfold/openfold/utils/kernel/attention_core.py", line 20, in attn_core_inplace_cuda = importlib.import_module("attn_core_inplace_cuda") File "/home/username/mambaforge/envs/openfold/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) ModuleNotFoundError: No module named 'attn_core_inplace_cuda'

adrian-jasinski commented 1 month ago

The solution is to run:

python setup.py install