Package: python3-plotly Version: 5.15.0+dfsg1-1 Severity: normal X-Debbugs-Cc: siggy...@gmail.com
Dear Maintainer, I recently updated from bullseye to bookworm and I've not been able to get plotly's imshow to work since. First, there's a version mismatch in stable - using imshow results in the following error: AttributeError: module 'numpy' has no attribute 'bool'. `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations plotly fixed this error in May (https://github.com/plotly/plotly.py/issues/3403) but I guess that version has not made it into stable yet. stable has plotly v5.4.1 and numpy v1.24.2 So then I tried the testing version (5.15.0) and ran into a different problem - imshow displays completely blank axes. You can see this with the example code from https://plotly.com/python/imshow/: import plotly.express as px import numpy as np img_rgb = np.array([[[255, 0, 0], [0, 255, 0], [0, 0, 255]], [[0, 255, 0], [0, 0, 255], [255, 0, 0]] ], dtype=np.uint8) fig = px.imshow(img_rgb) fig.show() I don't know what to do about it aside from reporting it. Thanks very much, Sig -- System Information: Debian Release: 12.1 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.1.0-12-amd64 (SMP w/4 CPU threads; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages python3-plotly depends on: ii python3 3.11.2-1+b1 ii python3-decorator 5.1.1-3 ii python3-nbformat 5.5.0-1 ii python3-requests 2.28.1+dfsg-1 ii python3-tenacity 8.2.1-1 ii python3-tz 2022.7.1-4 python3-plotly recommends no packages. Versions of packages python3-plotly suggests: ii ipython3 8.5.0-4 ii python3-ipykernel 6.17.0-1 ii python3-matplotlib 3.6.3-1+b1 ii python3-pandas 1.5.3+dfsg-2 ii python3-scipy 1.10.1-2 -- no debconf information