Skip to content
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

sceptre incompatible with numpy 2.0 due to outdated deepdiff dependency #1541

Open
rwalton91 opened this issue Jan 22, 2025 · 0 comments
Open

Comments

@rwalton91
Copy link

rwalton91 commented Jan 22, 2025

sceptre fails to run in environments with numpy 2.0 as a dependency. This can be mitigated by upgrading deepdiff to v8.0. I will have a PR shortly.

How to recreate in python3.11

pip install sceptre==4.5.2
pip install numpy==2.0.2
sceptre

Traceback (most recent call last):
  File "/opt/venv/bin/sceptre", line 5, in <module>
    from sceptre.cli import cli
  File "/opt/venv/lib/python3.11/site-packages/sceptre/cli/__init__.py", line 15, in <module>
    from sceptre.cli.create import create_command
  File "/opt/venv/lib/python3.11/site-packages/sceptre/cli/create.py", line 6, in <module>
    from sceptre.plan.plan import SceptrePlan
  File "/opt/venv/lib/python3.11/site-packages/sceptre/plan/plan.py", line 19, in <module>
    from sceptre.diffing.stack_differ import StackDiff
  File "/opt/venv/lib/python3.11/site-packages/sceptre/diffing/stack_differ.py", line 17, in <module>
    import deepdiff
  File "/opt/venv/lib/python3.11/site-packages/deepdiff/__init__.py", line 10, in <module>
    from .diff import DeepDiff
  File "/opt/venv/lib/python3.11/site-packages/deepdiff/diff.py", line 16, in <module>
    from deepdiff.helper import (strings, bytes_type, numbers, uuids, times, ListItemRemovedOrAdded, notpresent,
  File "/opt/venv/lib/python3.11/site-packages/deepdiff/helper.py", line 60, in <module>
    np_float_ = np.float_
                ^^^^^^^^^
  File "/opt/venv/lib/python3.11/site-packages/numpy/__init__.py", line 397, in __getattr__
    raise AttributeError(
AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.. Did you mean: 'float16'?
rwalton91 pushed a commit to rwalton91/sceptre that referenced this issue Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant