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

QtInterfaceframework build broken because of updated jinja2 dependency

    XMLWordPrintable

Details

    Description

      This was build ok
      http://coin.intra.qt.io/coin/integration/qt/qtinterfaceframework/tasks/1647852778
      but this wasn't
      http://coin.intra.qt.io/coin/integration/qt/qtinterfaceframework/tasks/web_qt_qtinterfaceframework_1648206022831

      The error is

      agent:2022/03/25 11:50:47 build.go:394: – Running ifcodegen for /home/qt/work/qt/qtinterfaceframework/src/ifvehiclefunctions/ifvehiclefunctions.qface with template frontend
      agent:2022/03/25 11:50:47 build.go:394: CMake Error at src/interfaceframework/Qt6InterfaceFrameworkMacros.cmake:379 (message):
      agent:2022/03/25 11:50:47 build.go:394: Error while running the ifcodegen:
      agent:2022/03/25 11:50:47 build.go:394:
      agent:2022/03/25 11:50:47 build.go:394: /home/qt/work/qt/qtinterfaceframework/src/tools/ifcodegen/qtif_qface_virtualenv/bin/python
       agent:2022/03/25 11:50:47 build.go:394: /home/qt/work/qt/qtinterfaceframework/src/tools/ifcodegen/generate.py -T
      agent:2022/03/25 11:50:47 build.go:394: /home/qt/work/qt/qtinterfaceframework/src/tools/ifcodegen/templates
      agent:2022/03/25 11:50:47 build.go:394: --template=frontend --force --module=QtIfVehicleFunctions
      agent:2022/03/25 11:50:47 build.go:394: /home/qt/work/qt/qtinterfaceframework/src/ifvehiclefunctions/ifvehiclefunctions.qface
      agent:2022/03/25 11:50:47 build.go:394: /home/qt/work/qt/qtinterfaceframework/src/ifvehiclefunctions}}
      agent:2022/03/25 11:50:47 build.go:394: Traceback (most recent call last):
      agent:2022/03/25 11:50:47 build.go:394: File "/home/qt/work/qt/qtinterfaceframework/src/tools/ifcodegen/generate.py", line 40, in <module>
      agent:2022/03/25 11:50:47 build.go:394: from qface.generator import FileSystem, Generator
      agent:2022/03/25 11:50:47 build.go:394: File "/home/qt/work/qt/qtinterfaceframework/src/tools/ifcodegen/qtif_qface_virtualenv/lib64/python3.8/site-packages/qface/generator.py", line 24, in <module>
      agent:2022/03/25 11:50:47 build.go:394: from .filters import get_filters
      agent:2022/03/25 11:50:47 build.go:394: File "/home/qt/work/qt/qtinterfaceframework/src/tools/ifcodegen/qtif_qface_virtualenv/lib64/python3.8/site-packages/qface/filters.py", line 3, in <module>
      agent:2022/03/25 11:50:47 build.go:394: from .helper import qtcpp
      agent:2022/03/25 11:50:47 build.go:394: File "/home/qt/work/qt/qtinterfaceframework/src/tools/ifcodegen/qtif_qface_virtualenv/lib64/python3.8/site-packages/qface/helper/qtcpp.py", line 5, in <module>
      agent:2022/03/25 11:50:47 build.go:394: from jinja2 import environmentfilter
      agent:2022/03/25 11:50:47 build.go:394: ImportError: cannot import name 'environmentfilter' from 'jinja2'
      agent:2022/03/25 11:50:47 build.go:394: (/home/qt/work/qt/qtinterfaceframework/src/tools/ifcodegen/qtif_qface_virtualenv/lib64/python3.8/site-packages/jinja2/_init_.py)
      agent:2022/03/25 11:50:47 build.go:394: Call Stack (most recent call first):
      agent:2022/03/25 11:50:47 build.go:394: src/interfaceframework/Qt6InterfaceFrameworkMacros.cmake:393 (qt6_ifcodegen_generate)
      agent:2022/03/25 11:50:47 build.go:394: src/ifvehiclefunctions/CMakeLists.txt:8 (qt_ifcodegen_generate)
      agent:2022/03/25 11:50:47 build.go:394: – Configuring incomplete, errors occurred!

      It looks like the reason is that different version of jinja2 gets downloaded:
      agent:2022/03/21 08:58:13 build.go:394: Collecting jinja2>=2.10.3
      agent:2022/03/21 08:58:13 build.go:394: Using cached Jinja2-3.0.3-py3-none-any.whl (133 kB)

      agent:2022/03/25 11:50:44 build.go:394: Collecting jinja2>=2.10.3
      agent:2022/03/25 11:50:44 build.go:394: Downloading Jinja2-3.1.0-py3-none-any.whl (132 kB)

      Attachments

        Issue Links

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

          Activity

            People

              gagi Dominik Holland
              jujokini Jukka Jokiniva
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes