Closed armartin closed 1 year ago
Hi @armartin !
Thank you for trying out haptools!
What version of numpy is that? We might need to pin to a version recent enough that it contains numpy
's typing module (ie some version $\ge$ 1.20)
import numpy
import numpy.typing as npt # does this line work for you?
print(numpy.__version__)
As a temporary workaround, you can try just commenting out the lines that import numpy.typing
. It's only used for type checking, anyway.
Or, if it's indeed an older version of numpy, you can try updating numpy or installing haptools within a new, empty conda environment.
Hi @aryarm, Thanks for your quick response! It does indeed look like an older version of numpy:
print(numpy.__version__)
1.19.2
I upgraded my numpy and it now seems to run fine. Thanks a bunch!
great! I'm glad it was an easy fix
I've updated the version of numpy that we require to be $\ge$ 1.20.0 so that this issue doesn't crop up again in future releases of haptools (see #151)
Thanks for writing haptools! I'm running into an issue when testing the
simgenotype
module, example as follows:numpy
otherwise seems to work fine on my computer. Any ideas why this might be happening or how to fix it?