-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing astronify at the Rubin Science Platform in data.lsst.cloud
#74
Comments
@plazas another user reported an error with Astronify and astropy v6.0.0. If the error being seen is related to this: ImportError: cannot import name 'update_default_config' from 'astropy.config.configuration' Then that matches another user error, and is indeed due to something that is no longer supported in Astropy 6.0.0. It should be doable to remove this from the Astronify setup.py and get it to work with Astropy v6.0.0, so I'll work on that as soon as I have some spare time. In the mean time, and if it's an option, you can try to run Astronify in an environment with an older version of Astropy installed, like 5.3.4 |
Thank you, @scfleming! The error is different, though. After doing |
OK sounds like you don't have the necessary non-Python package files installed. Have you done these steps (if on a Mac)? 1.) Install homebrew Then you can try to pip install pyo If you are on a newer Mac there are some c-compiler options that can assist with the brew installs, let me know if those give you an error or not. |
If you do have those brew packages installed, it's possible pip is looking for them in the wrong spot since the default locations have changed between different versions of software/OS. If still having issues, try this:
and then try to |
Thank you! I'm not sure I can use something like |
Ah in that case, try making the change to the CFLAGS and LDFLAGS then, since that might solve the issue where the pip installation is looking for the libraries in a different location. Actually, to be 100% sure, you'd want to make sure those environment variables are pointing to wherever those libraries are actaully installed in the science platform, otherwise I don't think you'd be able to install |
I'm trying to install
astronify
at the Rubin Science Platform (RSP) indata.lsst.cloud
to create a short Jupyter Notebook demonstration on how to useastronify
with LSST-like data.At first,
pip install --user astronify
would run into problems withportaudio
(the details are in this public forum question: https://community.lsst.org/t/installing-astronify-via-homebrew-on-rsp-notebooks/8066). A colleague from Rubin suggested doing a minimal installation ofpyo
to excludeportaudio
sinceportaudio
is used when you want to play audio on the same computer that you’re running the code on, but on the RSP the code runs in a data center somewhere, so instead you need to use IPython to interface with the browser to play the audio. This solution worked fine as of November of 2023, but now the following error message appears when trying to importastronify
in a notebook:A colleague from Rubin suggested that
astronify
might be out of date with respect to theastropy
built intorubin-env
, which hasastropy
6.0.0.
.The text was updated successfully, but these errors were encountered: