Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-103919

Qt Interface Framework Generator issues on Ubuntu 22.04

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.2.5, 6.4.0 Beta1, 6.5.0 Beta1
    • 6.2.4, 6.3.0
    • Qt Interface Framework
    • None
    • Distributor ID: Ubuntu
      Description: Ubuntu 22.04 LTS
      Release: 22.04
      Codename: jammy
      5.15.0-30-generic
      Python 3.10.4
      virtualenv 20.14.1


    • Linux/Wayland, Linux/X11
    • 70ba71837a (qt/qtinterfaceframework/dev) 70ba71837a (qt/tqtc-qtinterfaceframework/dev) 7c6aa29106 (qt/qtinterfaceframework/6.3) 0a6f40183a (qt/tqtc-qtinterfaceframework/6.2) e9897b796a (qt/qtinterfaceframework/6.4)

    Description

      While trying to build Qt Interface Framework on mint Ubuntu 22.04 following issues can be observed:

      [1/4] Setting up virtualenv for qface, name: qtif_qface_virtualenv
      created virtual environment CPython3.10.4.final.0-64 in 265ms
        creator CPython3Posix(dest=/home/pno/work/qtinterfaceframework/build/src/tools/ifcodegen/qtif_qface_virtualenv, clear=False, no_vcs_ignore=False, global=False)
        seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/pno/.local/share/virtualenv)
          added seed packages: pip==22.0.4, setuptools==62.1.0, wheel==0.37.1
        activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
      WARNING:root:Script /home/pno/work/qtinterfaceframework/build/src/tools/ifcodegen/qtif_qface_virtualenv/bin/activate.ps1 cannot be made relative (it's not a normal script that starts with #!/home/pno/work/qtinterfaceframework/build/src/tools/ifcodegen/qtif_qface_virtualenv/bin/python)
      INFO:root:Making script /home/pno/work/qtinterfaceframework/build/src/tools/ifcodegen/qtif_qface_virtualenv/bin/wheel3 relative
      INFO:root:Making script /home/pno/work/qtinterfaceframework/build/src/tools/ifcodegen/qtif_qface_virtualenv/bin/wheel-3.10 relative
      INFO:root:Making script /home/pno/work/qtinterfaceframework/build/src/tools/ifcodegen/qtif_qface_virtualenv/bin/pip-3.10 relative
      WARNING:root:Script /home/pno/work/qtinterfaceframework/build/src/tools/ifcodegen/qtif_qface_virtualenv/bin/activate.nu cannot be made relative (it's not a normal script that starts with #!/home/pno/work/qtinterfaceframework/build/src/tools/ifcodegen/qtif_qface_virtualenv/bin/python)
      INFO:root:Making script /home/pno/work/qtinterfaceframework/build/src/tools/ifcodegen/qtif_qface_virtualenv/bin/pip3.10 relative
      INFO:root:Making script /home/pno/work/qtinterfaceframework/build/src/tools/ifcodegen/qtif_qface_virtualenv/bin/pip3 relative
      INFO:root:Making script /home/pno/work/qtinterfaceframework/build/src/tools/ifcodegen/qtif_qface_virtualenv/bin/wheel3.10 relative
      WARNING:root:Script /home/pno/work/qtinterfaceframework/build/src/tools/ifcodegen/qtif_qface_virtualenv/bin/deactivate.nu cannot be made relative (it's not a normal script that starts with #!/home/pno/work/qtinterfaceframework/build/src/tools/ifcodegen/qtif_qface_virtualenv/bin/python)
      INFO:root:Making script /home/pno/work/qtinterfaceframework/build/src/tools/ifcodegen/qtif_qface_virtualenv/bin/wheel relative
      INFO:root:Making script /home/pno/work/qtinterfaceframework/build/src/tools/ifcodegen/qtif_qface_virtualenv/bin/pip relative
      [2/4] Installing qface development version into qtif_qface_virtualenv
      Processing /home/pno/work/qtinterfaceframework/src/3rdparty/qface
        Preparing metadata (setup.py): started
        Preparing metadata (setup.py): finished with status 'done'
      Collecting click>=6.7
        Using cached click-8.1.3-py3-none-any.whl (96 kB)
      Collecting antlr4-python3-runtime>=4.7.1
        Using cached antlr4_python3_runtime-4.10-py3-none-any.whl
      Collecting jinja2>=2.10.3
        Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
      Collecting path.py>=11.0.1
        Using cached path.py-12.5.0-py3-none-any.whl (2.3 kB)
      Collecting pyyaml>=5.1
        Using cached PyYAML-6.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (682 kB)
      Collecting watchdog>=0.8.3
        Using cached watchdog-2.1.8-py3-none-manylinux2014_x86_64.whl (77 kB)
      Collecting six>=1.11.0
        Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
      Collecting coloredlogs>=10.0
        Using cached coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
      Collecting humanfriendly>=9.1
        Using cached humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
      Collecting MarkupSafe>=2.0
        Using cached MarkupSafe-2.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
      Collecting path
        Using cached path-16.4.0-py3-none-any.whl (26 kB)
      Building wheels for collected packages: qface
        Building wheel for qface (setup.py): started
        Building wheel for qface (setup.py): finished with status 'done'
        Created wheel for qface: filename=qface-2.0.8-py3-none-any.whl size=55209 sha256=e2863a0c9727d5cf5c42649587548d6a09db8f588b441fa52fdaaeb10aebeb19
        Stored in directory: /tmp/pip-ephem-wheel-cache-dfdxa0ww/wheels/22/a0/2e/cc11ee3bbf1360489798d9460cb04b2d4b3a8bf1133decae2b
      Successfully built qface
      Installing collected packages: antlr4-python3-runtime, watchdog, six, pyyaml, path, MarkupSafe, humanfriendly, click, path.py, jinja2, coloredlogs, qface
      Successfully installed MarkupSafe-2.1.1 antlr4-python3-runtime-4.10 click-8.1.3 coloredlogs-15.0.1 humanfriendly-10.0 jinja2-3.1.2 path-16.4.0 path.py-12.5.0 pyyaml-6.0 qface-2.0.8 six-1.16.0 watchdog-2.1.8
      WARNING: You are using pip version 22.0.4; however, version 22.1.1 is available.
      You should consider upgrading via the '/home/pno/work/qtinterfaceframework/build/src/tools/ifcodegen/qtif_qface_virtualenv/bin/python3.10 -m pip install --upgrade pip' command.
      [3/4] Generating .stamp-deploy_virtualenv, .stamp-cmake-rerun
      copying files from /usr/lib/python310.zip to qtif_qface_virtualenv/lib/python3.10
      copying files from /usr/lib/python3.10 to qtif_qface_virtualenv/lib/python3.10
      copying files from /usr/lib/python3.10/lib-dynload to qtif_qface_virtualenv/lib/python3.10
      copying /lib/x86_64-linux-gnu/libcrypto.so.3
      copying 
      cp: cannot stat '': No such file or directory
      cp: cannot stat 'qtif_qface_virtualenv/lib64/*': No such file or directory
      /home/pno/work/qtinterfaceframework/build/src/tools/ifcodegen
      done
      [3/4] Re-running CMake...
      /home/pno/work/qtinterfaceframework/build/src/tools/ifcodegen/qtif_qface_virtualenv/bin/python /home/pno/work/qtinterfaceframework/src/tools/ifcodegen/generate.py -T /home/pno/work/qtinterfaceframework/src/tools/ifcodegen/templates --template=frontend --force --module=QtIfVehicleFunctions /home/pno/work/qtinterfaceframework/src/ifvehiclefunctions/ifvehiclefunctions.qface /home/pno/work/qtinterfaceframework/build/src/ifvehiclefunctions
      Traceback (most recent call last):
        File "/home/pno/work/qtinterfaceframework/src/tools/ifcodegen/generate.py", line 36, in <module>
          import click
      ModuleNotFoundError: No module named 'click'CMake Error at src/interfaceframework/Qt6InterfaceFrameworkMacros.cmake:421 (message):
        Error while running the ifcodegen:  
        /home/pno/work/qtinterfaceframework/build/src/tools/ifcodegen/qtif_qface_virtualenv/bin/python
        /home/pno/work/qtinterfaceframework/src/tools/ifcodegen/generate.py -T
        /home/pno/work/qtinterfaceframework/src/tools/ifcodegen/templates
        --template=frontend --force --module=QtIfVehicleFunctions
        /home/pno/work/qtinterfaceframework/src/ifvehiclefunctions/ifvehiclefunctions.qface
        /home/pno/work/qtinterfaceframework/build/src/ifvehiclefunctions  Traceback (most recent call last):    File "/home/pno/work/qtinterfaceframework/src/tools/ifcodegen/generate.py", line 36, in <module>
            import click  ModuleNotFoundError: No module named 'click'Call Stack (most recent call first):
        src/interfaceframework/Qt6InterfaceFrameworkMacros.cmake:439 (qt6_ifcodegen_generate)
        src/ifvehiclefunctions/CMakeLists.txt:8 (qt_ifcodegen_generate)
      

      The workaround is to modify Qt6InterfaceFrameworkMacros.cmake

      diff --git a/src/interfaceframework/Qt6InterfaceFrameworkMacros.cmake b/src/interfaceframework/Qt6InterfaceFrameworkMacros.cmake
      index 5800dd90..67bbb26e 100644
      --- a/src/interfaceframework/Qt6InterfaceFrameworkMacros.cmake
      +++ b/src/interfaceframework/Qt6InterfaceFrameworkMacros.cmake
      @@ -355,6 +355,7 @@ function(qt6_ifcodegen_generate)
               message(STATUS "Running ifcodegen for ${IDL_FILES} with template ${TEMPLATE}")
               set(GENERATOR_CMD
                       ${PYTHON_EXECUTABLE}
      +                "-E"
                       ${QT_IFCODEGEN_GENERATOR_PATH}/generate.py
                       ${GENERATOR_ARGUMENTS}
                       ${IDL_FILES}
      
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            gagi Dominik Holland
            pnogaj Przemysław Nogaj
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes