Hi,
I am trying to run AlphaFold3 using apptainer, since Docker is not allowed on the compute system I am working on. However, I am encountering the following error when running the container:
**ImportError: cannot import name 'model' from 'alphafold3.model' (unknown location)**
```bash
When running my bash script:
```bash
#! /bin/bash
export AF3_RESOURCES_DIR=/home/local/alphafold3_resources
export AF3_IMAGE=${AF3_RESOURCES_DIR}/image/alphafold3.sif
export AF3_CODE_DIR=${AF3_RESOURCES_DIR}/code
export AF3_INPUT_DIR=${AF3_RESOURCES_DIR}/examples/2PV7
export AF3_OUTPUT_DIR=${AF3_RESOURCES_DIR}/examples/fold_protein_2PV7/output
export AF3_MODEL_PARAMETERS_DIR=${AF3_RESOURCES_DIR}/weights
export AF3_DATABASES_DIR=${AF3_RESOURCES_DIR}/databases
apptainer exec \
--nv \
--bind $AF3_INPUT_DIR:/root/af_input \
--bind $AF3_OUTPUT_DIR:/root/af_output \
--bind $AF3_MODEL_PARAMETERS_DIR:/root/models \
--bind $AF3_DATABASES_DIR:/root/public_databases \
$AF3_IMAGE \
python ${AF3_RESOURCES_DIR}/alphafold3/run_alphafold.py \
--json_path=/root/af_input/alphafold_input.json \
--model_dir=/root/models \
--db_dir=/root/public_databases \
--output_dir=/root/af_output
This error is also found in other issue sections, and I believe the container is just outdated as stated in these sections.
I am installing from the image found on docker hub.
apptainer pull ./image/alphafold3.sif docker://cford38/alphafold3
Is there any chance that this image is outdated and needs to be updated?
Hi,
I am trying to run AlphaFold3 using apptainer, since Docker is not allowed on the compute system I am working on. However, I am encountering the following error when running the container:
This error is also found in other issue sections, and I believe the container is just outdated as stated in these sections.
I am installing from the image found on docker hub.
Is there any chance that this image is outdated and needs to be updated?