Potential package compatibility issues when importing dna_client in colab

Hi!

I was trying to run the colab notebooks after a while and I got the following error pointing to the import of dna_client: from alphagenome.models import dna_client. (This was not the case before).

“ImportError: cannot import name ‘_center’ from ‘numpy._core.umath’ (/usr/local/lib/python3.12/dist-packages/numpy/_core/umath.py)”

Any thoughts on that?

Having the same problem and would like to ask if anyone has a solution for this.

Hi There!

Thanks for reaching out.

It looks like this is an upstream dependency issue rather than a problem with the AlphaGenome code itself.

This error usually stems from a compatibility conflict with recent NumPy versions. As a workaround, try downgrading NumPy in your Colab notebook by running !pip install alphagenome “numpy==2.0.2” before making your imports.

Kind regards,
Tumi