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

TypeError: unhashable type: 'list'` #245

Open
HUST6324 opened this issue Jan 7, 2025 · 1 comment
Open

TypeError: unhashable type: 'list'` #245

HUST6324 opened this issue Jan 7, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@HUST6324
Copy link

HUST6324 commented Jan 7, 2025

I tried to run AF3 one protein chain with one cif template, unpairedMsa and pairedMsa, but got the following error:

Processing fold inputs.
Processing fold input #1
Processing fold input NPC1_NPC_intracellular_cholesterol_transporter_1
Checking we can load the model parameters...
Running data pipeline...
Processing chain C
Processing chain C took 0.00 seconds
Output directory: /root/af_output/npc1try1/NPC1_NPC_cif.json/npc1_npc_intracellular_cholesterol_transporter_1
Writing model input JSON to /root/af_output/npc1try1/NPC1_NPC_cif.json/npc1_npc_intracellular_cholesterol_transporter_1
Traceback (most recent call last):
  File "/spshared/apps/alphafold3/run_alphafold.py", line 737, in <module>
    app.run(main)
  File "/alphafold3_venv/lib/python3.11/site-packages/absl/app.py", line 308, in run
    _run_main(main, args)
  File "/alphafold3_venv/lib/python3.11/site-packages/absl/app.py", line 254, in _run_main
    sys.exit(main(argv))
             ^^^^^^^^^^
  File "/spshared/apps/alphafold3/run_alphafold.py", line 721, in main
    process_fold_input(
  File "/spshared/apps/alphafold3/run_alphafold.py", line 571, in process_fold_input
    write_fold_input_json(fold_input, output_dir)
  File "/spshared/apps/alphafold3/run_alphafold.py", line 429, in write_fold_input_json
    f.write(fold_input.to_json())
            ^^^^^^^^^^^^^^^^^^^^
  File "/alphafold3_venv/lib/python3.11/site-packages/alphafold3/common/folding_input.py", line 1126, in to_json
    deduped_chains[chain.hash_without_id()] = chain
                   ^^^^^^^^^^^^^^^^^^^^^^^
  File "/alphafold3_venv/lib/python3.11/site-packages/alphafold3/common/folding_input.py", line 173, in hash_without_id
    return hash((
           ^^^^^^
TypeError: unhashable type: 'list'

Is there something wrong with my JSON? Thanks in advance.

@Augustin-Zidek Augustin-Zidek added the bug Something isn't working label Jan 7, 2025
@Augustin-Zidek
Copy link
Collaborator

Could you share the input JSON?

However, this might not be even necessary, as I think the issue has been fixed in 44dee65. Could you update your AlphaFold 3 installation to the latest commit (and rebuild your Docker container) and check if the problem goes away?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants