bug#70698: python-pivy build fails (freecad dependency)
Forgot to add the guix version for this issue: guix describe -> guix 7d4ae2f repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 7d4ae2fca723114fb1df56de33b82177fbc4d0a6
bug#70698: python-pivy build fails (freecad dependency)
Dear guix community, My local python-pivy build fails and there is no longer a working substitute available. The build log is attached (q806khpbab7n9nk9i6ynbfhm85gd48-python-pivy-0.6.5.drv.gz). I suspect that python-pivy stoped building after recent patches to coin3d - https://issues.guix.gnu.org/70305 Looks like this is an issue with paths in the python-pivy install scripts (build phase: python setup.py). Specifically in its swig command which probably misses some paths to soqt and coin3D. I was trying to fix and upgrade the python-pivy before because the current version is 0.6.5 is old and some features of freecad was not working properly - https://issues.guix.gnu.org/70258. I guess there should be a patch to the python-pivy cmake config that can fix the paths to soqt and coin3D but I am not familiar with cmake and thus far did not find a solution. Kind regards, BP q806khpbab7n9nk9i6ynbfhm85gd48-python-pivy-0.6.5.drv.gz Description: Binary data
bug#70237: Can't build python-pyside-2 5.15.10
Guillaume Le Vaillant writes: > Hi. > There was another fix for python-pyside-2 in commit > 6d0502f9c3608ffd6b3b3c9b603cb5d4ad14d8c9. > So if you do a "guix pull" now, python-pyside-2 shoud build > successfully. Thanks, Guillaume! My bad, everything works now indeed! ..uninstalling flatpak:)
bug#70258: FreeCAD dependency probably outdated
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.
bug#70237: Can't build python-pyside-2 5.15.10
Hi, I still have the same issue with python-pyside-2-5.15.10 (the build log is the same) even though I pulled most fresh guix (commit: 21fad13). This package also blocks the 'freecad' installation: building /gnu/store/...-python-pyside-2-5.15.10.drv... - 'fix-qt-module-detection' phasebuilder for `/gnu/store/...-python-pyside-2-5.15.10.drv' build of /gnu/store/...-python-pyside-2-5.15.10.drv failed View build log at '/var/log/guix/drvs/i0/...-python-pyside-2-5.15.10.drv.gz'. cannot build derivation `/gnu/store/...-freecad-0.21.2.drv': 1 dependencies couldn't be buguix home: error: build of `/gnu/store/...-freecad-0.21.2.drv' failed I was wandering how long does it take for the above mentioned bug fix to be available on main guix? Or the python-pyside-2 package is still broken?
bug#70258: FreeCAD dependency probably outdated
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: ' 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
bug#70258: FreeCAD dependency probably outdated
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 # …) 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 (_ #(#(#) (# # …))) 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?
bug#70258: FreeCAD dependency probably outdated
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)))