* bug#70258: FreeCAD dependency probably outdated
@ 2024-04-07 11:54 Buttons Presser via Bug reports for GNU Guix
2024-04-08 15:08 ` Buttons Presser via Bug reports for GNU Guix
` (4 more replies)
0 siblings, 5 replies; 7+ messages in thread
From: Buttons Presser via Bug reports for GNU Guix @ 2024-04-07 11:54 UTC (permalink / raw)
To: 70258
Dear Guix people,
I have checked FreeCAD on several machines and get the same error.
To reproduce:
- guix install freecad
- Open FreeCAD
- Create new document
- Select 'Draft' workbench
This produces an error:
'<built-in function SoFieldContainer_getField> returned a result with an exception set'
The backtrace and also as some forums suggest (e.g., https://forum.freecad.org/viewtopic.php?t=74156) that the issue is the outdated 'python-pivy'. The dependency version in python-xyz.scm is 0.6.5 released Jan 12, 2020 where latest release 0.6.8 is from Aug 25, 2022.
I have tried to build newer version of 'python-pivy' but I hit some errors that I do not understand how to fix. The errors from build log among other things tell that it 'Could not find a package configuration file provided by "Qt5Core" with any of the following names: Qt5CoreConfig.cmake qt5core-config.cmake'.
Could somebody with more knowledge about building freecad help or give some suggestions how can I define latest 'python-pivy' (assuming the outdated package causes the 'Draft' workbench crash).
guix describe:
guix 1dbe492
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: 1dbe492b993a7629df3b35146ce0272b52913776
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#70258: FreeCAD dependency probably outdated
2024-04-07 11:54 bug#70258: FreeCAD dependency probably outdated Buttons Presser via Bug reports for GNU Guix
@ 2024-04-08 15:08 ` Buttons Presser via Bug reports for GNU Guix
2024-04-08 15:11 ` Buttons Presser via Bug reports for GNU Guix
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Buttons Presser via Bug reports for GNU Guix @ 2024-04-08 15:08 UTC (permalink / raw)
To: 70258
I looked at the 'python-pivy' issue again today. I was able to build 'python-pivy' from git with:
git clone https://github.com/coin3d/pivy
cd pivy
guix shell -D python-pivy -- python3 setup.py build
Examining build log of the former and comparing to the build log of standard 'guix build python-pivy --load-path=/my/python-pivy.scm' I found some differences in paths passed as arguments to the 'swig' command called by 'setup.py'. Specifically the 'swig' command is different in its last '-I' argument
guix shell -D python-pivy -- python3 setup.py build:
-I"/gnu/store/1k54m72p12h0lkqa9iicfknydawdfrbm-profile/include"
guix build python-pivy --load-path=/my/python-pivy.scm
-I"/gnu/store/ivbbmgrvhdc46p2ywx1x2zsmal3x0z5n-soqt-1.6.0-1.fb8f655/include"
Both paths have 'Inventor' dir in it but the former has a lot of symlinks to the Coin but the later has only one symlink to Qt dir. I think this is why there was a buildsystem patch commented as "respect Coin3D include directory". It does not work for the latest python-pivy and this is where I stuck. Do not understand why with 'guix shell -D python-pivy -- python3 setup.py build' works whereas 'guix build python-pivy --load-path=/my/python-pivy.scm' does not and how can I fix/path.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#70258: FreeCAD dependency probably outdated
2024-04-07 11:54 bug#70258: FreeCAD dependency probably outdated Buttons Presser via Bug reports for GNU Guix
2024-04-08 15:08 ` Buttons Presser via Bug reports for GNU Guix
@ 2024-04-08 15:11 ` Buttons Presser via Bug reports for GNU Guix
2024-04-08 15:17 ` Buttons Presser via Bug reports for GNU Guix
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Buttons Presser via Bug reports for GNU Guix @ 2024-04-08 15:11 UTC (permalink / raw)
To: 70258
Moreover it seems that there is another issue already. I just did guix pull ('guix describe' -> guix bfc6143) and now freecad can not even be installed. This time 'python-pyside' dependency is not building. Bellow is python-pyside-2-5.15.10 build log:
phase `go-to-source-dir' succeeded after 0.0 seconds
starting phase `fix-qt-module-detection'
error: in phase 'fix-qt-module-detection': uncaught exception:
wrong-type-arg "string-append" "Wrong type (expecting ~A): ~S" ("string" #f) (#f)
phase `fix-qt-module-detection' failed after 0.0 seconds
Backtrace:
19 (primitive-load "/gnu/store/hmja8r0wsfk8vjxkvy0fxa5sfbi…")
In guix/build/gnu-build-system.scm:
908:2 18 (gnu-build #:source _ #:outputs _ #:inputs _ #:phases . #)
In ice-9/boot-9.scm:
1752:10 17 (with-exception-handler _ _ #:unwind? _ # _)
In srfi/srfi-1.scm:
634:9 16 (for-each #<procedure 7ffff40d35e0 at guix/build/gnu-b…> …)
In ice-9/boot-9.scm:
1752:10 15 (with-exception-handler _ _ #:unwind? _ # _)
In guix/build/gnu-build-system.scm:
929:23 14 (_)
In ice-9/eval.scm:
293:34 13 (_ #(#(#<directory (guile-user) 7ffff77f7c80>) (# # …)))
In srfi/srfi-1.scm:
586:29 12 (map1 ("/gnu/store/rlim3xrf4v1hzjd3k6vpl2i0k53l2fsf-…" …))
586:29 11 (map1 ("/gnu/store/i5mkjrxmyybshk3ka3m47piqv77698gz-…" …))
586:29 10 (map1 ("/gnu/store/59rqjp4g9xsmcfcgss2174ak13nd1dm1-…" …))
586:29 9 (map1 ("/gnu/store/q8iwl3sdgdvwxfgxsbvga70kb88wykch-…" …))
586:29 8 (map1 ("/gnu/store/alp588qxq5hd57hxm58i7dmqxm362z77-…" …))
586:29 7 (map1 ("/gnu/store/4011bxwbpj51rxq9n739dr29iqdwrnhj-…" …))
586:29 6 (map1 ("/gnu/store/f8zsbzvyzwnlr2g26s31h5km41gh66b8-…" …))
586:29 5 (map1 ("/gnu/store/f887mmvdhg166p0pr78r02k10lrx6h1k-…" …))
586:29 4 (map1 ("/gnu/store/wgzaypbf65az91pgmmyjncv9rrjc3dh0-…" …))
586:17 3 (map1 (#f "/gnu/store/8rxh7dxsr5jagkxmzmlys242jy8l8p…" …))
In unknown file:
2 (string-append #f "/include/qt5")
In ice-9/boot-9.scm:
1685:16 1 (raise-exception _ #:continuable? _)
1685:16 0 (raise-exception _ #:continuable? _)
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure string-append: Wrong type (expecting string): #f
Can someone, please, check if this is indeed a new issue or freecad can still be installed?
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#70258: FreeCAD dependency probably outdated
2024-04-07 11:54 bug#70258: FreeCAD dependency probably outdated Buttons Presser via Bug reports for GNU Guix
2024-04-08 15:08 ` Buttons Presser via Bug reports for GNU Guix
2024-04-08 15:11 ` Buttons Presser via Bug reports for GNU Guix
@ 2024-04-08 15:17 ` Buttons Presser via Bug reports for GNU Guix
2024-04-12 11:33 ` Ricardo Wurmus
2024-04-14 17:53 ` wakyct--- via Bug reports for GNU Guix
4 siblings, 0 replies; 7+ messages in thread
From: Buttons Presser via Bug reports for GNU Guix @ 2024-04-08 15:17 UTC (permalink / raw)
To: 70258
Bellow for the reference is the content of '/my/python-pivy.scm' that I used in 'guix build python-pivy --load-path=/my/python-pivy.scm' command:
(define-module (guixmiss packages python)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages)
#:use-module (guix packages)
#:use-module (guix build-system cargo)
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (guix build-system pyproject)
#:use-module (guix build-system python)
#:use-module (guix download)
#:use-module (guix hg-download)
#:use-module (guix git-download)
#:use-module (guix gexp)
#:use-module (guix utils)
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-26))
(define-public python-pivy
(package
(name "python-pivy")
;; (version "0.6.8")
(version "0.6.9.a0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/coin3d/pivy")
(commit version)))
(file-name (git-file-name name version))
(sha256
;; (base32 "00l4r06dwmgn8h29nrl3g3yv33cfyizyylk28x1j95qyj36sggfb") ;; (version "0.6.8")
(base32 "13v9bfmipfhjbwnrl96d82fgb317j2sijgpzhhk02390649qbx6c") ;; (version "0.6.9.a0")
)
))
;; (build-system cmake-build-system)
(build-system python-build-system)
;; (build-system pyproject-build-system)
(arguments
`(;; The test suite fails due to an import cycle between 'pivy' and '_coin'
#:tests? #f
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-cmake-include-dirs
(lambda _
;; Patch buildsystem to respect Coin3D include directory
(substitute* "interfaces/CMakeLists.txt"
(("\\$\\{SoQt_INCLUDE_DIRS}")
"${Coin_INCLUDE_DIR}\" -I\"${SoQt_INCLUDE_DIRS}"))
#t)))
))
(native-inputs
(specifications->packages
(list
"cmake"
"swig@4.0")))
(inputs
(specifications->packages
(list "python-wrapper"
"qtbase@5"
"libxi"
"libice"
"soqt"
"glew"
"coin3D")))
(home-page "https://github.com/coin3d/pivy")
(synopsis "Python bindings to Coin3D")
(description
"Pivy provides python bindings for Coin, a 3D graphics library with an
Application Programming Interface based on the Open Inventor 2.1 API.")
(license license:isc)))
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#70258: FreeCAD dependency probably outdated
2024-04-07 11:54 bug#70258: FreeCAD dependency probably outdated Buttons Presser via Bug reports for GNU Guix
` (2 preceding siblings ...)
2024-04-08 15:17 ` Buttons Presser via Bug reports for GNU Guix
@ 2024-04-12 11:33 ` Ricardo Wurmus
2024-04-14 17:53 ` wakyct--- via Bug reports for GNU Guix
4 siblings, 0 replies; 7+ messages in thread
From: Ricardo Wurmus @ 2024-04-12 11:33 UTC (permalink / raw)
To: 70258
[-- Attachment #1: Type: text/plain, Size: 94 bytes --]
I'm unable to build python-pivy with the suggested changes. Here is the
actual diff I used:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: pivy.diff --]
[-- Type: text/x-patch, Size: 2723 bytes --]
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 92566abfed..8c8b162b55 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -32389,43 +32389,42 @@ (define-public python-retry
(define-public python-pivy
(package
(name "python-pivy")
- (version "0.6.5")
+ (version "0.6.9.a0")
(source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/coin3d/pivy")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32 "0vids7sxk8w5vr73xdnf8xdci71a7syl6cd35aiisppbqyyfmykx"))))
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/coin3d/pivy")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "13v9bfmipfhjbwnrl96d82fgb317j2sijgpzhhk02390649qbx6c"))))
(build-system python-build-system)
(arguments
- `(;; The test suite fails due to an import cycle between 'pivy' and '_coin'
- #:tests? #f
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-cmake-include-dirs
+ `( ;; The test suite fails due to an import cycle between 'pivy' and '_coin'
+ #:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-cmake-include-dirs
(lambda _
- ;; Patch buildsystem to respect Coin3D include directory
- (substitute* "CMakeLists.txt"
- (("\\$\\{SoQt_INCLUDE_DIRS}")
- "${Coin_INCLUDE_DIR};${SoQt_INCLUDE_DIRS}"))
- #t)))))
+ ;; Patch build system to respect Coin3D include directory
+ (substitute* "interfaces/CMakeLists.txt"
+ (("\\$\\{SoQt_INCLUDE_DIRS\\}")
+ "${Coin_INCLUDE_DIR};${SoQt_INCLUDE_DIRS}")))))))
(native-inputs
- (list cmake swig))
+ (list cmake swig))
(inputs
- (list python-wrapper
- qtbase-5
- libxi
- libice
- soqt
- glew
- coin3D))
+ (list python-wrapper
+ qtbase-5
+ libxi
+ libice
+ soqt
+ glew
+ coin3D))
(home-page "https://github.com/coin3d/pivy")
(synopsis "Python bindings to Coin3D")
(description
- "Pivy provides python bindings for Coin, a 3D graphics library with an
+ "Pivy provides python bindings for Coin, a 3D graphics library with an
Application Programming Interface based on the Open Inventor 2.1 API.")
(license license:isc)))
[-- Attachment #3: Type: text/plain, Size: 787 bytes --]
I get lots of errors like these:
--8<---------------cut here---------------start------------->8---
interfaces/coin_header_includes.h:662: Error: Unable to find 'Inventor/VRMLnodes/SoVRMLViewpoint.h'
interfaces/coin_header_includes.h:663: Error: Unable to find 'Inventor/VRMLnodes/SoVRMLVisibilitySensor.h'
interfaces/coin_header_includes.h:664: Error: Unable to find 'Inventor/VRMLnodes/SoVRMLWorldInfo.h'
/gnu/store/ivbbmgrvhdc46p2ywx1x2zsmal3x0z5n-soqt-1.6.0-1.fb8f655/include/Inventor/Qt/devices/SoQtDevice.h:66: Error: Unable to find 'Inventor/SbLinear.h'
/gnu/store/ivbbmgrvhdc46p2ywx1x2zsmal3x0z5n-soqt-1.6.0-1.fb8f655/include/Inventor/Qt/SoQtObject.h:40: Error: Unable to find 'Inventor/SbBasic.h'
--8<---------------cut here---------------end--------------->8---
--
Ricardo
^ permalink raw reply related [flat|nested] 7+ messages in thread
* bug#70258: FreeCAD dependency probably outdated
2024-04-07 11:54 bug#70258: FreeCAD dependency probably outdated Buttons Presser via Bug reports for GNU Guix
` (3 preceding siblings ...)
2024-04-12 11:33 ` Ricardo Wurmus
@ 2024-04-14 17:53 ` wakyct--- via Bug reports for GNU Guix
2024-05-15 12:20 ` Guillaume Le Vaillant
4 siblings, 1 reply; 7+ messages in thread
From: wakyct--- via Bug reports for GNU Guix @ 2024-04-14 17:53 UTC (permalink / raw)
To: 70258
I've also tried building pivy 0.6.8 against an updated soqt (1.6.2) but get similar errors. Any idea what needs to be
upgraded here to make pivy build?
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#70258: FreeCAD dependency probably outdated
2024-04-14 17:53 ` wakyct--- via Bug reports for GNU Guix
@ 2024-05-15 12:20 ` Guillaume Le Vaillant
0 siblings, 0 replies; 7+ messages in thread
From: Guillaume Le Vaillant @ 2024-05-15 12:20 UTC (permalink / raw)
To: 70258-done
[-- Attachment #1: Type: text/plain, Size: 46 bytes --]
Fixed by <https://issues.guix.gnu.org/70957>.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-05-15 12:21 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-07 11:54 bug#70258: FreeCAD dependency probably outdated Buttons Presser via Bug reports for GNU Guix
2024-04-08 15:08 ` Buttons Presser via Bug reports for GNU Guix
2024-04-08 15:11 ` Buttons Presser via Bug reports for GNU Guix
2024-04-08 15:17 ` Buttons Presser via Bug reports for GNU Guix
2024-04-12 11:33 ` Ricardo Wurmus
2024-04-14 17:53 ` wakyct--- via Bug reports for GNU Guix
2024-05-15 12:20 ` Guillaume Le Vaillant
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).