Open mgatti29 opened 2 months ago
Hey @mgatti29, this is quite a specific error and not necessarily an error with S2SCAT
. I've installed from scratch on various machines (including google colab) without issue. What may be worth doing is trying to install just pyssht
using the instructions in their repo here.
Basically just this for the C libraries
pip install conan cmake
git clone https://github.com/astro-informatics/ssht.git
mkdir ssht/build && cd ssht/build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -Dconan_deps=True ..
make
make install
and this for the python package
pip install pyssht
If this installs then perhaps this is a more specific erro. If the python install for pyssht
doesn't work then we can try and debug that specifically.
I think Conan might be pinned to version 1 in ssht
, which could be the issue.
@mgatti29 Do you want to run on CPU or GPU? If GPU, then it's probably possible to install from source and just not install pyssht
. That should be possible with a hack to the setup and requirements, right @CosmoMatt ?
Otherwise if you want to run on CPU then the C may well be useful. In which case it might be useful to ensure there is no conan set up already and the install of s2scat
should handle that.
I am very happy to run on GPUs only, we have A100s at nersc!
Ok, in that case you can probably just turn off the ssht requirements, right @CosmoMatt ?
@jasonmcewen that's certainly possible in S2FFT but there's no switch to do this. You'd have to manually clone the repo and comment out the offending functions/requirements etc.
The easiest option would likely be either debugging conan or redeploying pyssht to conan==2.0
Indeed, I just mean clone the repo and hack the setup so Marco can get running quickly. How would you hack the setup? Can you just remove ssht from the requirements? Then everything should run provided you don't use the C backends, right?
Hi,
I just wanted to follow-up on this since I was away past week~ it would be great if you could point me how to remove the ssht requirements from the installation! Thanks
Marco
Hi,
I am trying to pip install s2scat on a fresh python 3.9 environment. My pip install s2scat failed trying to install pyssht, in particular it protested about conan (I have conan 2 installed, but for some reasons the code thinks I have conan 1)
Thanks,
Marco
Building wheels for collected packages: pyssht Building wheel for pyssht (pyproject.toml) ... error error: subprocess-exited-with-error
× Building wheel for pyssht (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [88 lines of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pyssht Failed to build pyssht ERROR: Could not build wheels for pyssht, which is required to install pyproject.toml-based projects