google-deepmind / dm-haiku

JAX-based neural network library
https://dm-haiku.readthedocs.io
Apache License 2.0
2.91k stars 230 forks source link

Ask for help using alphafold2_advanced.py ; haiku error #528

Open Zero-Sun opened 2 years ago

Zero-Sun commented 2 years ago

Hello: I have a protein receptor sequence file r.fasta, two protein ligand sequence files a.fasta and b.fasta and two peptide chains pep1 and prp2 selected from b.fasta. I wish to compare the strength of binding between pep1-r.fasta and pep2-r.fasta. I didn't figure out how to use alphafold2_advanced.py. For now, type "python af2.py-s r.asta" to try to run it.

But there was an error that I couldn't solve.I found in the/site-packages/haiku/experimental/init.py file, Current_name, DO_NOT_STORE, lift_with_state, LiftWithStateUpdater, etc., are not present in haiku/_scr/base.py or haiku/_scr/lift.py code.

I have just started to study, and my English is not very good, I don't know if I can express myself clearly. Hope to get your help! Thank you very much! tstmp_20220916090419

/site-packages/haiku/experimental/init.py tstmp_20220916090427

tomhennigan commented 2 years ago

But there was an error that I couldn't solve.I found in the/site-packages/haiku/experimental/init.py file, Current_name, DO_NOT_STORE, lift_with_state, LiftWithStateUpdater, etc., are not present in haiku/_scr/base.py or haiku/_scr/lift.py code.

This issue (symbols being requested in haiku/experimental/init.py but not present in the files in haiku/_src/...) sounds like a broken installation to me.

All stable releases of Haiku should not have this issue.

I would suggest upgrading Haiku and see if the problem goes away:

pip install --upgrade dm-haiku