You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering compatibility issues with NumPy when running BlueSky.
Problem Description:
Using NumPy 2.0.0.dev0:
When I have NumPy version 2.0.0.dev0 installed, running BlueSky results in the following error: AttributeError: np.string_was removed in the NumPy 2.0 release. Usenp.bytes_ instead.
This error occurs in glnavdata.py at line 123: npwpids = np.array(wptids, dtype=np.string_)
Using Older NumPy Versions (e.g., 1.21.0):
When I downgrade NumPy to version 1.21.0 or 1.24.0, I receive a different error upon running BlueSky:
Bluesky needs numpy._core.numeric
Install using e.g. pip install numpy._core.numeric
BlueSky normal end.
pip install bluesky-simulator[full]
pip install numpy==2.0.0.dev0 # For the first error
# or
pip install numpy==1.21.0 # For the second error
2. Run BlueSky:
bluesky
Observe the respective errors mentioned above.
Questions:
Is there a recommended NumPy version that is fully compatible with BlueSky?
How can I resolve these conflicting errors when using different NumPy versions?
Additional Notes:
Modifying the source code (e.g., replacing np.string_ with np.bytes_) might be a workaround for the first error, but I'm unsure of the implications.
When using older NumPy versions, the module numpy._core.numeric seems to be missing, leading to the second error.
Any guidance on how to resolve these issues would be greatly appreciated.
Thank you!
The text was updated successfully, but these errors were encountered:
NumPy2 compatibility has been fixed in the master version, but has not made its way yet in packaged BlueSky, because we also need to change the python versions supported (it seems that np2 is not available for older versions)
Hello,
I'm encountering compatibility issues with NumPy when running BlueSky.
Problem Description:
Using NumPy 2.0.0.dev0:
When I have NumPy version 2.0.0.dev0 installed, running BlueSky results in the following error:
AttributeError:
np.string_was removed in the NumPy 2.0 release. Use
np.bytes_instead.
This error occurs in glnavdata.py at line 123:
npwpids = np.array(wptids, dtype=np.string_)
Using Older NumPy Versions (e.g., 1.21.0):
When I downgrade NumPy to version 1.21.0 or 1.24.0, I receive a different error upon running BlueSky:
Environment Information:
Operating System: Windows 11
Python Version: 3.10
BlueSky Version: Installed via pip install bluesky-simulator[full]
NumPy Versions Tried: 2.0.0.dev0, 1.24.0, 1.21.0
Steps to Reproduce:
Questions:
Additional Notes:
Modifying the source code (e.g., replacing np.string_ with np.bytes_) might be a workaround for the first error, but I'm unsure of the implications.
When using older NumPy versions, the module numpy._core.numeric seems to be missing, leading to the second error.
Any guidance on how to resolve these issues would be greatly appreciated.
Thank you!
The text was updated successfully, but these errors were encountered: