Your message dated Mon, 23 Feb 2026 09:19:54 +0000
with message-id <[email protected]>
and subject line Bug#1128614: fixed in cura 5.0.0-7
has caused the Debian Bug report #1128614,
regarding /usr/bin/cura: not compatible with current numpy in Unstable
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1128614: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1128614
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: cura
Version: 5.0.0-6
Severity: normal
File: /usr/bin/cura
Tags: upstream

Dear Maintainer,
I'm running Unstable with python3-numpy 1:2.3.5+ds-3 and Preview doesn't
work. Slider indicator slides and nothing happens.

There is an output in the terminal:

  2026-02-21 22:05:43,267 - ERROR - [JobQueueWorker [3]] UM.JobQueue.run [135]: 
Exception: Job <CuraEngineBackend.ProcessSlicedLayersJob.ProcessSlicedLayersJob 
object at 0x7ff8fb779e80> caused an exception on worker JobQueueWorker [3]
  2026-02-21 22:05:43,269 - ERROR - [JobQueueWorker [3]] UM.JobQueue.run [135]: 
Traceback (most recent call last):
  2026-02-21 22:05:43,270 - ERROR - [JobQueueWorker [3]] UM.JobQueue.run [135]: 
  File "/usr/lib/python3/dist-packages/UM/JobQueue.py", line 133, in run
  2026-02-21 22:05:43,270 - ERROR - [JobQueueWorker [3]] UM.JobQueue.run [135]: 
    job.run()
  2026-02-21 22:05:43,271 - ERROR - [JobQueueWorker [3]] UM.JobQueue.run [135]: 
    ~~~~~~~^^
  2026-02-21 22:05:43,271 - ERROR - [JobQueueWorker [3]] UM.JobQueue.run [135]: 
  File "/usr/lib/cura/plugins/CuraEngineBackend/ProcessSlicedLayersJob.py", 
line 143, in run
  2026-02-21 22:05:43,272 - ERROR - [JobQueueWorker [3]] UM.JobQueue.run [135]: 
    line_types = numpy.fromstring(polygon.line_type, dtype = "u1")  # Convert 
bytearray to numpy array
  2026-02-21 22:05:43,273 - ERROR - [JobQueueWorker [3]] UM.JobQueue.run [135]: 
ValueError: The binary mode of fromstring is removed, use frombuffer instead

I tried to replace several calls numpy.fromstring() → numpy.frombuffer() and
the program runs a bit longer, but finally fails on another problems…

  2026-02-21 22:19:06,263 - DEBUG - [MainThread] 
CuraEngineBackend.CuraEngineBackend._onProcessLayersFinished [996]: See if 
there is more to slice(2)...
  2026-02-21 22:19:06,269 - CRITICAL - [MainThread] cura.CrashHandler.__init__ 
[66]: An uncaught error has occurred!
  2026-02-21 22:19:06,272 - CRITICAL - [MainThread] cura.CrashHandler.__init__ 
[69]: Traceback (most recent call last):
  2026-02-21 22:19:06,272 - CRITICAL - [MainThread] cura.CrashHandler.__init__ 
[69]:   File "/usr/lib/python3/dist-packages/UM/Qt/Bindings/MainWindow.py", 
line 290, in _render
  2026-02-21 22:19:06,272 - CRITICAL - [MainThread] cura.CrashHandler.__init__ 
[69]:     renderer.render()
  2026-02-21 22:19:06,273 - CRITICAL - [MainThread] cura.CrashHandler.__init__ 
[69]:     ~~~~~~~~~~~~~~~^^
  2026-02-21 22:19:06,273 - CRITICAL - [MainThread] cura.CrashHandler.__init__ 
[69]:   File "/usr/lib/python3/dist-packages/UM/Qt/QtRenderer.py", line 164, in 
render
  2026-02-21 22:19:06,273 - CRITICAL - [MainThread] cura.CrashHandler.__init__ 
[69]:     render_pass.render()
  2026-02-21 22:19:06,273 - CRITICAL - [MainThread] cura.CrashHandler.__init__ 
[69]:     ~~~~~~~~~~~~~~~~~~^^
  2026-02-21 22:19:06,273 - CRITICAL - [MainThread] cura.CrashHandler.__init__ 
[69]:   File "/usr/lib/cura/plugins/SimulationView/SimulationPass.py", line 
189, in render
  2026-02-21 22:19:06,273 - CRITICAL - [MainThread] cura.CrashHandler.__init__ 
[69]:     layers_batch.render(self._scene.getActiveCamera())
  2026-02-21 22:19:06,273 - CRITICAL - [MainThread] cura.CrashHandler.__init__ 
[69]:     ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2026-02-21 22:19:06,274 - CRITICAL - [MainThread] cura.CrashHandler.__init__ 
[69]:   File "/usr/lib/python3/dist-packages/UM/View/RenderBatch.py", line 231, 
in render
  2026-02-21 22:19:06,274 - CRITICAL - [MainThread] cura.CrashHandler.__init__ 
[69]:     self._renderItem(item)
  2026-02-21 22:19:06,274 - CRITICAL - [MainThread] cura.CrashHandler.__init__ 
[69]:     ~~~~~~~~~~~~~~~~^^^^^^
  2026-02-21 22:19:06,274 - CRITICAL - [MainThread] cura.CrashHandler.__init__ 
[69]:   File "/usr/lib/python3/dist-packages/UM/View/RenderBatch.py", line 262, 
in _renderItem
  2026-02-21 22:19:06,274 - CRITICAL - [MainThread] cura.CrashHandler.__init__ 
[69]:     vertex_buffer = OpenGL.getInstance().createVertexBuffer(mesh)
  2026-02-21 22:19:06,274 - CRITICAL - [MainThread] cura.CrashHandler.__init__ 
[69]:   File "/usr/lib/python3/dist-packages/UM/View/GL/OpenGL.py", line 282, 
in createVertexBuffer
  2026-02-21 22:19:06,275 - CRITICAL - [MainThread] cura.CrashHandler.__init__ 
[69]:     attribute_byte_array = attribute["value"].tostring()
  2026-02-21 22:19:06,275 - CRITICAL - [MainThread] cura.CrashHandler.__init__ 
[69]:                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2026-02-21 22:19:06,275 - CRITICAL - [MainThread] cura.CrashHandler.__init__ 
[69]: AttributeError: 'numpy.ndarray' object has no attribute 'tostring'


Thanks
-- 
Zito



-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.18.12+deb14-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=cs_CZ.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 cura depends on:
ii  cura-engine                          1:5.0.0-6
ii  fdm-materials                        5.0.0-3
ii  fonts-open-sans                      1.11-2
ii  python3                              3.13.9-3
ii  python3-certifi                      2026.1.4+ds-1
ii  python3-charon                       5.0.0-5
ii  python3-cryptography                 46.0.5-1
ii  python3-keyring                      25.7.0-1
ii  python3-pynest2d                     5.0.0-3+b6
ii  python3-pyqt6                        6.10.2-2
ii  python3-requests                     2.32.5+dfsg-1
ii  python3-savitar                      5.0.0-4.1+b7
ii  python3-sentry-sdk                   2.22.0-1
ii  python3-serial                       3.5-2
ii  python3-shapely                      2.1.2-1+b1
ii  python3-trimesh                      4.5.1-3
ii  python3-uranium                      5.0.0-7
ii  python3-zeroconf                     0.148.0-2
ii  qml6-module-qt-labs-folderlistmodel  6.9.2+dfsg-5
ii  qml6-module-qtqml-workerscript       6.9.2+dfsg-5
ii  qml6-module-qtquick-controls         6.9.2+dfsg-5
ii  qml6-module-qtquick-dialogs          6.9.2+dfsg-5
ii  qml6-module-qtquick-layouts          6.9.2+dfsg-5
ii  qml6-module-qtquick-templates        6.9.2+dfsg-5
ii  qml6-module-qtquick-window           6.9.2+dfsg-5
ii  qt6-qpa-plugins                      6.9.2+dfsg-4
ii  uranium-plugins                      5.0.0-7

cura recommends no packages.

cura suggests no packages.

-- no debconf information
--- /usr/lib/cura/plugins/CuraEngineBackend/ProcessSlicedLayersJob.py.orig      
2022-05-17 10:08:13.000000000 +0200
+++ /usr/lib/cura/plugins/CuraEngineBackend/ProcessSlicedLayersJob.py   
2026-02-21 21:54:09.663743850 +0100
@@ -140,23 +140,23 @@
 
                 extruder = polygon.extruder
 
-                line_types = numpy.fromstring(polygon.line_type, dtype = "u1") 
 # Convert bytearray to numpy array
+                line_types = numpy.frombuffer(polygon.line_type, dtype = "u1") 
 # Convert bytearray to numpy array
 
                 line_types = line_types.reshape((-1,1))
 
-                points = numpy.fromstring(polygon.points, dtype = "f4")  # 
Convert bytearray to numpy array
+                points = numpy.frombuffer(polygon.points, dtype = "f4")  # 
Convert bytearray to numpy array
                 if polygon.point_type == 0: # Point2D
                     points = points.reshape((-1,2))  # We get a linear list of 
pairs that make up the points, so make numpy interpret them correctly.
                 else:  # Point3D
                     points = points.reshape((-1,3))
 
-                line_widths = numpy.fromstring(polygon.line_width, dtype = 
"f4")  # Convert bytearray to numpy array
+                line_widths = numpy.frombuffer(polygon.line_width, dtype = 
"f4")  # Convert bytearray to numpy array
                 line_widths = line_widths.reshape((-1,1))  # We get a linear 
list of pairs that make up the points, so make numpy interpret them correctly.
 
-                line_thicknesses = numpy.fromstring(polygon.line_thickness, 
dtype = "f4")  # Convert bytearray to numpy array
+                line_thicknesses = numpy.frombuffer(polygon.line_thickness, 
dtype = "f4")  # Convert bytearray to numpy array
                 line_thicknesses = line_thicknesses.reshape((-1,1))  # We get 
a linear list of pairs that make up the points, so make numpy interpret them 
correctly.
 
-                line_feedrates = numpy.fromstring(polygon.line_feedrate, dtype 
= "f4")  # Convert bytearray to numpy array
+                line_feedrates = numpy.frombuffer(polygon.line_feedrate, dtype 
= "f4")  # Convert bytearray to numpy array
                 line_feedrates = line_feedrates.reshape((-1,1))  # We get a 
linear list of pairs that make up the points, so make numpy interpret them 
correctly.
 
                 # Create a new 3D-array, copy the 2D points over and insert 
the right height.

--- End Message ---
--- Begin Message ---
Source: cura
Source-Version: 5.0.0-7
Done: Gregor Riepl <[email protected]>

We believe that the bug you reported is fixed in the latest version of
cura, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Gregor Riepl <[email protected]> (supplier of updated cura package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 23 Feb 2026 10:02:21 +0100
Source: cura
Architecture: source
Version: 5.0.0-7
Distribution: unstable
Urgency: medium
Maintainer: Debian 3-D Printing Packages 
<[email protected]>
Changed-By: Gregor Riepl <[email protected]>
Closes: 1128614
Changes:
 cura (5.0.0-7) unstable; urgency=medium
 .
   * Fix numpy 2.3.0+ deprecation.
     Closes: #1128614
Checksums-Sha1:
 f922e9620293058f0d918383a956b7726c09e37d 2286 cura_5.0.0-7.dsc
 65be3d2e3631a28e01e7e7c93909bc6020ca6be1 19120 cura_5.0.0-7.debian.tar.xz
Checksums-Sha256:
 4fa1d57815fe80dfa525cef6b4290115ceb478afc7e9137b5505c11d45ee4afb 2286 
cura_5.0.0-7.dsc
 8c8057d3e6d72b599bb5f2f41f710df38bd45a01a281809007a078a8df04c1d1 19120 
cura_5.0.0-7.debian.tar.xz
Files:
 974f538b3027609e32d264cd306b852e 2286 misc optional cura_5.0.0-7.dsc
 eaf6747eeb54fb16896494431ee2c8c3 19120 misc optional cura_5.0.0-7.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEXEj+YVf0kXlZcIfGTFprqxLSp64FAmmcGSAACgkQTFprqxLS
p64m9w/+KAxTxBv5fEMVd78tmbUOmYOifUYgrxAn36BwZ7Ou0MFj3ssLpKoYwBYj
i5Rkt2aBxm1epero4vNYS34ZuRqhFBXJLgqa+IcmC/R2lJutHMyb9br9QUwAHmhf
IwXLuzqntraAGbvjy4vFz/FDvZkHUrhkFf2LtmbVKjQCvDYipkIsuPxpwwvyTJtF
DYGOP3ozz6DMZQ4F+xjzN1QHVpEsfZTvqsLsPV7/kpe3/kTxildeWUBx9CRal8GP
jKbX8LBbcRudVpVpupRQKteUq9JH/WcVAe9ifLidm0HpbskV0ViYLA0m9blSSg3X
sbssm+KNxKedzuAaQ6Zr9VEW6eMMeXCEbpdxuqHpprz7Qwo6HADNK3wIYCAzVe3B
En+lrvdeo6yBLm1/738gMSuSMRGBtpa66NGGXM6iQKt/1b1K3Yd2w2D9HqlF3XOT
mSSbtYc6wJ0y0vzb6Qc+ZrPyYLoqOCVYEhTvKdN65wtc3YhmaR3AQ1W84n6pkiBN
4SQGibUO3EvhKPovQPvirnBmkIeGrVERURaBEF7xUEbhNi9jo+nDFeK/tXWzp6Nq
0kg7hgRUUQPfFDJoWSRq/Ck0n09ME9J56G9UD3lZqhZ32qZMH1bZWgosvZTOoiQP
Ul0cEHD+DHlh/oxvdrsLkAoRGucIWF13sSJUS48vn314z/mvUWo=
=FGrp
-----END PGP SIGNATURE-----

Attachment: pgpPgX2vV_8SU.pgp
Description: PGP signature


--- End Message ---

Reply via email to