-
Notifications
You must be signed in to change notification settings - Fork 34
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
Sbpy in conda environment causes pytest collection to fail in Python<3.11 #368
Comments
Additional important note: pip-installing sbpy does not cause this problem to occur. |
When I search on this error, I see a lot of references to upgrading or reinstalling numpy. Does pip installing sbpy affect the numpy version or does it pip install another numpy? |
No, the numpy version remains the same: 1.24.1. The pip install of sbpy only installs the following:
|
If it's any help, the conda install does work with no test collection failure for Python 3.6 and sbpy 0.2.2: this installs numpy 1.19.5 and astropy 3.2.3. However the issue resumes with Python 3.7 (sbpy 0.3.0, numpy 1.21.6, astropy 4.3.1). |
I'm still having this issue - any advice? We're looking to release soon, but we're unwilling to do so unless we can trust that a full conda environment will work without issues. |
@astronomerritt Apologies for missing this message! I do have a PR that updates a few things that might help. We'll get that merged ASAP. |
Although it may be we need to do a release, since you are installing via conda. That will still take a couple weeks. But maybe re-building the conda package could address this? @mwcraig , is this something that can be done without a release? And if there is something that I can do to make it happen, let me know. |
Ah, got it. I'm seeing now that |
@astronomerritt In the meantime, are you able to add command line arguments to filter the warning out? Something like |
This is terrific news, thanks for getting back to this! We're absolutely fine to wait a couple weeks for the next conda release on this, our own release has been delayed, as these things often are. |
@mkelley -- we could patch the source in the conda recipe as a temporary workaround but since a new release is coming soon it seems better to wait. |
Creating a conda environment with sbpy causes pytest to fail to collect every single test due to a RuntimeWarning in Python<3.11.
The environments are created via:
conda create -n sspp_test -c conda-forge -c mjuric python=3.10 spiceypy=4.0.1 openorb numpy pandas matplotlib spice-utils pip pytest astropy scipy sbpy pytables
Then running pytest on this repo produces the following error during test collection for every single test:
As can be seen, the traceback leads to sbpy and then to astropy.
Tests run as expected in Python 3.11, no warnings. There's a full writeup in this issue.
For both Python 3.10 and Python 3.11:
Operating system and version: MacOS Monterey 12.6.2
sbpy version: 0.3.0
astropy version: 5.2.1
numpy version: 1.24.1
Thanks in advance for any help!
The text was updated successfully, but these errors were encountered: