Closed troyraen closed 2 months ago
I suspect this is caused by numpy version conflict somewhere. I will have a look.
As far as I can see, this error is caused by a conflict in the numpy
version. Version 2.1.0 was installed with conda, and 1.26 was installed with pip from the requirements of the IVOA_2024_demo notebooks.
Forcing the conda version to be <2 fixes the issues. It is deployed in the Dev Astrophysics
image.
I don't see any numpy<2 pins in the demo notebooks repo, nor in hipscat/lsdb. Can we dive into where it was actually coming from? (In the readme there is an lsdb pin to an old version, but it's not present in the requirements file)
Yes, I don't know where it is coming from, but doing pip install -r requirements.txt
, grabs 1.26, so it is somewhere in the dependency chain.
It would've been easier if the lsdb
notebook was in a separate environment, but that does not work because of dask
. It needs to be in the same environment running jupyterlab
And I cannot investigate locally as I cannot build healpy atm (but this is a know osx issue that should not affect fornax)
Looks like mocpy requires numpy<2.0. mocpy is required by hipscat, which is required by lsdb.
OK, this is tracked here, with references for more upstream: https://github.com/cds-astro/mocpy/issues/145
Works for me now. Thanks @zoghbi-a .
There seems to be a problem with the numpy installation in the base kernel of the Dev Astrophysics image. From within a notebook, it throws an
AttributeError
until it is uninstalled and reinstalled (same version). I cannot reproduce the problem from the terminal, only in a notebook. I ran into this when trying to test the dask-labextension (hence usingimport hipscat
) on daskhub-dev.fornax.smce but the problem also exists on daskhub.fornaxdev.mysmce.Below is what it looks like for me. To reproduce, start the Dev Astrophysics image and open a new notebook using the base kernel, then copy/paste the input from below.
Full traceback: