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

ImportError: cannot import name 'environmentfilter' from 'jinja2'

    XMLWordPrintable

Details

    • 4a5a1ff197 (qt/qtinterfaceframework/dev) 83ca3d95a8 (qt/qtinterfaceframework/dev) fc85522771 (qt/qtinterfaceframework/6.2) 8e8a319024 (qt/qtinterfaceframework/6.2) 3879e162ac (qt/qtinterfaceframework/6.3) 14ae961127 (qt/qtinterfaceframework/6.3)

    Description

      Tried to build Qt 6.3.0 for Desktop Ubuntu from installed Src folder (Src folder is downloaded via online installer qt-unified-linux-x64-4.3.0-1-online.run)

      Configuration cmd:

      ../Src/configure -prefix /host/tatiana/Qt/6.3.0/host

      In this case there is an error on compilation step after cmake --build . --parallel 8:

      Configuring 'qtinterfaceframework'
      CMake Error at qtinterfaceframework/src/interfaceframework/Qt6InterfaceFrameworkMacros.cmake:379 (message):
       Error while running the ifcodegen:
      
       /home/tatiana/Qt/6.3.0/host/qtinterfaceframework/src/tools/ifcodegen/qtif_qface_virtualenv/bin/python
       /home/tatiana/Qt/6.3.0/Src/qtinterfaceframework/src/tools/ifcodegen/generate.py
       -T
       /home/tatiana/Qt/6.3.0/Src/qtinterfaceframework/src/tools/ifcodegen/templates
       --template=frontend --force --module=QtIfVehicleFunctions
       /home/tatiana/Qt/6.3.0/Src/qtinterfaceframework/src/ifvehiclefunctions/ifvehiclefunctions.qface
       /home/tatiana/Qt/6.3.0/host/qtinterfaceframework/src/ifvehiclefunctions
      Traceback (most recent call last):
      File "/home/tatiana/Qt/6.3.0/Src/qtinterfaceframework/src/tools/ifcodegen/generate.py", line 40, in <module>
       from qface.generator import FileSystem, Generator
       File "/home/tatiana/Qt/6.3.0/host/qtinterfaceframework/src/tools/ifcodegen/qtif_qface_virtualenv/lib/python3.8/site-packages/qface/generator.py", line 24, in <module>
       from .filters import get_filters
       File "/home/tatiana/Qt/6.3.0/host/qtinterfaceframework/src/tools/ifcodegen/qtif_qface_virtualenv/lib/python3.8/site-packages/qface/filters.py", line 3, in <module>
       from .helper import qtcpp
       File "/home/tatiana/Qt/6.3.0/host/qtinterfaceframework/src/tools/ifcodegen/qtif_qface_virtualenv/lib/python3.8/site-packages/qface/helper/qtcpp.py", line 5, in <module>
       from jinja2 import environmentfilter
      ImportError: cannot import name 'environmentfilter' from 'jinja2'
       (/home/tatiana/Qt/6.3.0/host/qtinterfaceframework/src/tools/ifcodegen/qtif_qface_virtualenv/lib/python3.8/site-packages/jinja2/__init__.py)
      
      Call Stack (most recent call first):
       qtinterfaceframework/src/interfaceframework/Qt6InterfaceFrameworkMacros.cmake:393 (qt6_ifcodegen_generate)
       qtinterfaceframework/src/ifvehiclefunctions/CMakeLists.txt:8 (qt_ifcodegen_generate)
      

       

       

      Attachments

        1. CMakeError.log
          29 kB
        2. CMakeOutput.log
          83 kB

        Issue Links

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

          Activity

            People

              gagi Dominik Holland
              tatiana.borisova Tatiana Borisova
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: