Need help packaging SciDAVis: CMake Error Could NOT find PyQt

Hello,

I have been trying to package SciDAVis for a while.

Here is my progress on it.

I have also contact SciDAVis dev, but not much progress so far.
https://sourceforge.net/p/scidavis/discussion/708155/thread/a41121371c/

I have an issue PyQt is not found when building SciDAVis.

ModuleNotFoundError: No module named 'PyQt5'


Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'PyQt5' CMake Error at /usr/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message): Could NOT find PyQt (missing: PyQt_FLAGS) (found version "") Call Stack (most recent call first): /usr/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:582 (_FPHSA_FAILURE_MESSAGE) cmake/FindPyQt.cmake:55 (find_package_handle_standard_args) CMakeLists.txt:103 (find_package)


-- Configuring incomplete, errors occurred! 


See also "/run/build/scidavis/CMakeFiles/CMakeOutput.log". Error: module scidavis: Child process exited with code 1

I include PyQt and SIP and dependencies. But SciDAVis cannot find it, I assume that it is looking at wrong place or I botch PyQt installation.

  - name: sip
    buildsystem: simple
    build-commands:
      - python3 configure.py
          --bindir=/app/bin
          --destdir=/app/lib/python3/dist-packages
          --incdir=/app/include/python3
          --sipdir=/app/share/sip
          --stubsdir=/app/lib/python3/dist-packages
          --sip-module=PyQt5.sip
      - make -j $FLATPAK_BUILDER_N_JOBS
      - make install
    cleanup:
      - /bin
    sources:
      - type: archive
        url: https://www.riverbankcomputing.com/static/Downloads/sip/4.19.25/sip-4.19.25.tar.gz
        sha256: b39d93e937647807bac23579edbff25fe46d16213f708370072574ab1f1b4211  
 
  - name: pyqt5
    buildsystem: simple
    build-commands:
      - python3 configure.py
           --confirm-license
           --sip-incdir=/app/include/python3
           --bindir=/app/bin
           --destdir=/app/lib/python3/dist-packages
           --designer-plugindir=/app/lib/plugins/designer
           --qml-plugindir=/app/lib/plugins/PyQt5
           --sipdir=/app/share/sip
           --stubsdir=/app/lib/python3/dist-packages/PyQt5
           --disable=QtDesigner 
           --disable=QtOpenGL 
           --disable=QtBluetooth           
      - make -j $FLATPAK_BUILDER_N_JOBS
      - make install
    sources:
      - type: archive
        url: https://files.pythonhosted.org/packages/6e/86/d715e71771cece0e060f2ebab20f3ded067b08a0927dfb3143530cae8098/PyQt5-5.15.3.tar.gz
        sha256: 965ba50e7029b37f218a54ace24e87c77db3e5a9f0b83baeb21fb57b4154b838

Please help.

Thank you.

This topic was automatically closed after 6 days. New replies are no longer allowed.