Closed EiffL closed 2 years ago
That error seems to be a bug of Python 3.7 https://stackoverflow.com/questions/59597283/python-dataclasses-replace-not-working-for-initvar https://bugs.python.org/issue36470
At some point I was using ClassVar https://github.com/eelregit/pmwd/blob/15da71b7c42fedf35a3a38682f468e1717b61816/pmwd/cosmology.py#L64 But I forgot why I switched to InitVar
Fixed by #12
Now jax needs python>=3.8 https://github.com/google/jax/blob/76b922aade17432b8ae3fe44bdca0e170b7b877d/setup.py#L64
I assume there is reason for not enabling python 3.7 in the setup.py ^^ But colab is currently on Python 3.7. I just tried to run the example code there and it crashes with that error:
I assume maybe there is a new functionality in python 3.8 that makes this work, and not in 3.7? If that's so, I'd be happy to try to implement a workaround. Being able to run things on Colab is super important.