Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alphafold3.cpp Module Not Found During Execution #234

Open
ShiyiLin0922 opened this issue Dec 25, 2024 · 1 comment
Open

alphafold3.cpp Module Not Found During Execution #234

ShiyiLin0922 opened this issue Dec 25, 2024 · 1 comment
Labels
setup Problem with installation or setting things up

Comments

@ShiyiLin0922
Copy link

Question: alphafold3.cpp Module Not Found During Execution

Hello, I am trying to run run_alphafold.py from the AlphaFold 3 repository. However, I encountered the following issue: 🥺

ModuleNotFoundError: No module named 'alphafold3.cpp'

Steps I Followed:

  1. I cloned the repository and set up the environment as described in the installation instructions.
  2. Due to the limitations of cluster permissions, I did not use Docker, but instead configured the dependency packages in a conda environment.
  3. Ran the script run_alphafold.py.

Observations:

  • The error suggests that the alphafold3.cpp module is missing.
  • The repository includes a file named cpp.cc under src/alphafold3/.
  • However, the installation instructions did not mention compiling this file or how to generate the necessary .so module.

File Directory Structure:

Here is the file structure of the repository (partial):

alphafold3/
├── src/
│   └── alphafold3/
│       ├── __init__.py
│       ├── cpp.cc
│       ├── data/
│       │   └── cpp/
│       ├── structure/
│       │   ├── __init__.py
│       │   ├── bioassemblies.py
│       │   ├── mmcif.py
│       │   ├── cpp/
│       ├── parsers/
│       │   └── cpp/
│       ├── model/
│       ├── constants/
│       └── common/
├── requirements.txt
├── pyproject.toml
├── run_alphafold.py
├── CMakeLists.txt
├── ……

Note: I have not made any modifications to the directory structure, so it is identical to the one directly cloned from GitHub.

Questions: 🥺

  1. Is cpp.cc supposed to be compiled into a shared library (e.g., .so file)? If yes, could you clarify the steps to compile it?
  2. Could the manual setup using Conda instead of Docker cause this issue? If so, how can I troubleshoot or resolve it?
  3. Are the current locations of the cpp.cc file and other modules correct, or do they need to be moved to a different directory for proper loading and execution?

Thank you for your help! 🥰

@alchemistcai
Copy link

I use conda too.Have you run pip install . --no-deps after pip install -r dev-requirements.txt?

This command copys modules and compiles the cpp into your conda environment.

I wrote a easy install guidance in #49 if you want some help.

@Augustin-Zidek Augustin-Zidek added the setup Problem with installation or setting things up label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
setup Problem with installation or setting things up
Projects
None yet
Development

No branches or pull requests

3 participants