Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Uranium (and therefore cura) is broken with Python 3.12
@ 2023-10-21  4:22 oldlaptop
  2023-10-21 15:35 ` destructatron
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: oldlaptop @ 2023-10-21  4:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2183 bytes --]

New issue by oldlaptop on void-packages repository

https://github.com/void-linux/void-packages/issues/46808

Description:
### Is this a new report?

Yes

### System Info

Void 6.5.7_1 x86_64-musl AuthenticAMD notuptodate rrFFFFFF

### Package(s) Affected

Uranium-4.13.1_3 cura-4.13.1_3

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

_No response_

### Expected behaviour

cura should (presumably) launch.

### Actual behaviour

cura fails to launch with the following traceback:
```
$ cura
Traceback (most recent call last):
  File "/usr/bin/cura", line 27, in <module>
    from cura.CrashHandler import CrashHandler
  File "/usr/lib/python3.12/site-packages/cura/CrashHandler.py", line 29, in <module>
    from UM.Application import Application
  File "/usr/lib/python3.12/site-packages/UM/Application.py", line 9, in <module>
    from UM.Controller import Controller
  File "/usr/lib/python3.12/site-packages/UM/Controller.py", line 4, in <module>https://github.com/Ultimaker/Uranium/issues/765
    from UM.Scene.Scene import Scene
  File "/usr/lib/python3.12/site-packages/UM/Scene/Scene.py", line 13, in <module>
    from UM.Mesh.ReadMeshJob import ReadMeshJob  # To reload a mesh when its file was changed.
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/UM/Mesh/ReadMeshJob.py", line 8, in <module>
    from UM.FileHandler.ReadFileJob import ReadFileJob
  File "/usr/lib/python3.12/site-packages/UM/FileHandler/ReadFileJob.py", line 5, in <module>
    from UM.FileHandler.FileHandler import FileHandler
  File "/usr/lib/python3.12/site-packages/UM/FileHandler/FileHandler.py", line 12, in <module>
    from UM.PluginRegistry import PluginRegistry
  File "/usr/lib/python3.12/site-packages/UM/PluginRegistry.py", line 4, in <module>
    import imp
ModuleNotFoundError: No module named 'imp'
```

The `imp` module was [removed in Python 3.12](https://docs.python.org/3.12/whatsnew/3.12.html#imp). It doesn't appear upstream has [fixed this yet](https://github.com/Ultimaker/Uranium/issues/765).

### Steps to reproduce

Install cura and attempt to launch it.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Uranium (and therefore cura) is broken with Python 3.12
  2023-10-21  4:22 [ISSUE] Uranium (and therefore cura) is broken with Python 3.12 oldlaptop
@ 2023-10-21 15:35 ` destructatron
  2023-10-21 16:09 ` oldlaptop
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: destructatron @ 2023-10-21 15:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 242 bytes --]

New comment by destructatron on void-packages repository

https://github.com/void-linux/void-packages/issues/46808#issuecomment-1773832609

Comment:
Adding to the list of broken packages here, the Orca screen reader is also affected by this.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Uranium (and therefore cura) is broken with Python 3.12
  2023-10-21  4:22 [ISSUE] Uranium (and therefore cura) is broken with Python 3.12 oldlaptop
  2023-10-21 15:35 ` destructatron
@ 2023-10-21 16:09 ` oldlaptop
  2023-10-27 11:57 ` Vinfall
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: oldlaptop @ 2023-10-21 16:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 220 bytes --]

New comment by oldlaptop on void-packages repository

https://github.com/void-linux/void-packages/issues/46808#issuecomment-1773841855

Comment:
See also [PR 915](https://github.com/Ultimaker/Uranium/pull/915) upstream.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Uranium (and therefore cura) is broken with Python 3.12
  2023-10-21  4:22 [ISSUE] Uranium (and therefore cura) is broken with Python 3.12 oldlaptop
  2023-10-21 15:35 ` destructatron
  2023-10-21 16:09 ` oldlaptop
@ 2023-10-27 11:57 ` Vinfall
  2023-11-03 16:22 ` zlice
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Vinfall @ 2023-10-27 11:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 4021 bytes --]

New comment by Vinfall on void-packages repository

https://github.com/void-linux/void-packages/issues/46808#issuecomment-1782790400

Comment:
I attempted to update Uranium to 5.5.0 ,added [PR patch](https://patch-diff.githubusercontent.com/raw/Ultimaker/Uranium/pull/915.patch) and removed [the old patch](https://github.com/void-linux/void-packages/blob/master/srcpkgs/Uranium/patches/disable_code_style_test.patch) (due to build error), but it failed to build somehow:

```sh
./xbps-src pkg Uranium
=> xbps-src: updating repositories for host (x86_64-musl)...
[*] Updating repository `https://repo-default.voidlinux.org/current/musl/bootstrap/x86_64-musl-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/musl/x86_64-musl-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/musl/nonfree/x86_64-musl-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/musl/debug/x86_64-musl-repodata' ...
=> xbps-src: updating software in / masterdir...
=> xbps-src: cleaning up / masterdir...
=> Uranium-5.5.0_1: removing autodeps, please wait...
=> Uranium-5.5.0_1: building with [cmake] for x86_64-musl...
   [host] python3-3.12.0_1: found (https://repo-default.voidlinux.org/current/musl)
   [host] gettext-0.21_4: found (https://repo-default.voidlinux.org/current/musl)
   [host] cmake-bootstrap-3.27.6_1: found (https://repo-default.voidlinux.org/current/musl/bootstrap)
   [host] ninja-1.11.1_4: found (https://repo-default.voidlinux.org/current/musl)
   [runtime] libArcus-python3-4.13.1_7: found (https://repo-default.voidlinux.org/current/musl)
   [runtime] python3-PyQt5-opengl-5.15.9_2: found (https://repo-default.voidlinux.org/current/musl)
   [runtime] python3-PyQt5-quick-5.15.9_2: found (https://repo-default.voidlinux.org/current/musl)
   [runtime] python3-PyQt5-svg-5.15.9_2: found (https://repo-default.voidlinux.org/current/musl)
   [runtime] python3-numpy-stl-2.17.1_3: found (https://repo-default.voidlinux.org/current/musl)
   [runtime] python3-scipy-1.11.3_1: found (https://repo-default.voidlinux.org/current/musl)
   [runtime] qt5-quickcontrols-5.15.7+20221119_7: found (https://repo-default.voidlinux.org/current/musl)
   [runtime] qt5-quickcontrols2-5.15.7+20221119_7: found (https://repo-default.voidlinux.org/current/musl)
   [runtime] python3-shapely-2.0.1_2: found (https://repo-default.voidlinux.org/current/musl)
   [runtime] python3-cryptography-41.0.5_1: found (https://repo-default.voidlinux.org/current/musl)
=> Uranium-5.5.0_1: installing host dependencies: python3-3.12.0_1 gettext-0.21_4 cmake-bootstrap-3.27.6_1 ninja-1.11.1_4 ...
=> Uranium-5.5.0_1: running do-patch hook: 00-patches ...
=> Uranium-5.5.0_1: patching: deprecated-imp-module.patch.
=> Uranium-5.5.0_1: running pre-configure hook: 00-gnu-configure-asneeded ...
=> Uranium-5.5.0_1: running pre-configure hook: 01-override-config ...
=> Uranium-5.5.0_1: running pre-configure hook: 02-script-wrapper ...
=> Uranium-5.5.0_1: running do_configure ...
CMake Warning (dev) at CMakeLists.txt:6 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at CMakeLists.txt:14 (include):
  include could not find requested file:

    UraniumTranslationTools


CMake Error at CMakeLists.txt:20 (CREATE_TRANSLATION_TARGETS):
  Unknown CMake command "CREATE_TRANSLATION_TARGETS".


-- Configuring incomplete, errors occurred!
=> ERROR: Uranium-5.5.0_1: do_configure: 'CFLAGS="-DNDEBUG ${CFLAGS/ -pipe / }" CXXFLAGS="-DNDEBUG ${CXXFLAGS/ -pipe / }" cmake ${cmake_args} ${configure_args} ${LIBS:+-DCMAKE_C_STANDARD_LIBRARIES="$LIBS"} ${LIBS:+-DCMAKE_CXX_STANDARD_LIBRARIES="$LIBS"} ${wrksrc}/${build_wrksrc}' exited with 1
=> ERROR:   in do_configure() at common/build-style/cmake.sh:76
```

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Uranium (and therefore cura) is broken with Python 3.12
  2023-10-21  4:22 [ISSUE] Uranium (and therefore cura) is broken with Python 3.12 oldlaptop
                   ` (2 preceding siblings ...)
  2023-10-27 11:57 ` Vinfall
@ 2023-11-03 16:22 ` zlice
  2023-11-03 17:16 ` zlice
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: zlice @ 2023-11-03 16:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 394 bytes --]

New comment by zlice on void-packages repository

https://github.com/void-linux/void-packages/issues/46808#issuecomment-1792744198

Comment:
> I attempted to update Uranium to 5.5.0

https://github.com/Ultimaker/Uranium/issues/880

https://github.com/Ultimaker/conan-ultimaker-index/blob/main/recipes/translationextractor/conanfile.py

Looks like 5.0+ ditched cmake but kept cmake files?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Uranium (and therefore cura) is broken with Python 3.12
  2023-10-21  4:22 [ISSUE] Uranium (and therefore cura) is broken with Python 3.12 oldlaptop
                   ` (3 preceding siblings ...)
  2023-11-03 16:22 ` zlice
@ 2023-11-03 17:16 ` zlice
  2023-11-03 17:22 ` zlice
  2023-11-03 21:59 ` zlice
  6 siblings, 0 replies; 8+ messages in thread
From: zlice @ 2023-11-03 17:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 261 bytes --]

New comment by zlice on void-packages repository

https://github.com/void-linux/void-packages/issues/46808#issuecomment-1792835589

Comment:
started stealing from alpine's 5.2.2 build, but protobuf needs bumped to 25 and it touches a couple dozen packages...


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Uranium (and therefore cura) is broken with Python 3.12
  2023-10-21  4:22 [ISSUE] Uranium (and therefore cura) is broken with Python 3.12 oldlaptop
                   ` (4 preceding siblings ...)
  2023-11-03 17:16 ` zlice
@ 2023-11-03 17:22 ` zlice
  2023-11-03 21:59 ` zlice
  6 siblings, 0 replies; 8+ messages in thread
From: zlice @ 2023-11-03 17:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 282 bytes --]

New comment by zlice on void-packages repository

https://github.com/void-linux/void-packages/issues/46808#issuecomment-1792835589

Comment:
started stealing from alpine's 5.2.2 build (which is cmake btw), but protobuf needs bumped to 25 and it touches a couple dozen packages...


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Uranium (and therefore cura) is broken with Python 3.12
  2023-10-21  4:22 [ISSUE] Uranium (and therefore cura) is broken with Python 3.12 oldlaptop
                   ` (5 preceding siblings ...)
  2023-11-03 17:22 ` zlice
@ 2023-11-03 21:59 ` zlice
  6 siblings, 0 replies; 8+ messages in thread
From: zlice @ 2023-11-03 21:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 377 bytes --]

New comment by zlice on void-packages repository

https://github.com/void-linux/void-packages/issues/46808#issuecomment-1792835589

Comment:
started stealing from alpine's 5.2.2 build (which is cmake btw), ~~but protobuf needs bumped to 25 and it touches a couple dozen packages...~~

ya not protobuf, just a bunch of mixed version and packages that need to build together


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-11-03 21:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-21  4:22 [ISSUE] Uranium (and therefore cura) is broken with Python 3.12 oldlaptop
2023-10-21 15:35 ` destructatron
2023-10-21 16:09 ` oldlaptop
2023-10-27 11:57 ` Vinfall
2023-11-03 16:22 ` zlice
2023-11-03 17:16 ` zlice
2023-11-03 17:22 ` zlice
2023-11-03 21:59 ` zlice

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).