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

ModuleNotFoundError: No module named 'dataclasses'

    XMLWordPrintable

Details

    • 6f5cae4c8 (dev), 549f6bd91 (6.7), 00d26716f (6.6), c052b4690 (tqtc/lts-6.5), 0ff864e1c (tqtc/lts-6.2), 265a794cd (6.6.2), 0000b85b3 (tqtc/lts-6.2.10), d9006aff4 (tqtc/lts-6.2-opensource), a18916fe2 (6.2)

    Description

      -- Running ifcodegen for /home/qt/work/qt/qtinterfaceframework/examples/interfaceframework/qface-climate/example-climate.qface with template frontend
      ifcodegen call failed:
      /opt/cmake-3.27.7/bin/cmake -E env LC_ALL=en_US.UTF-8 LD_LIBRARY_PATH=/home/qt/work/qt/qtinterfaceframework_build/src/tools/ifcodegen/qtif_qface_virtualenv/bin VIRTUAL_ENV=/home/qt/work/qt/qtinterfaceframework_build/src/tools/ifcodegen/qtif_qface_virtualenv PYTHONPATH=/home/qt/work/qt/qtinterfaceframework_build/src/tools/ifcodegen/qtif_qface_virtualenv/lib/python3.10/site-packages PYTHONHOME=/home/qt/work/qt/qtinterfaceframework_build/src/tools/ifcodegen/qtif_qface_virtualenv IFGENERATOR_CONFIG=/home/qt/work/qt/qtinterfaceframework_build/src/tools/ifcodegen/.config /home/qt/work/qt/qtinterfaceframework_build/src/tools/ifcodegen/qtif_qface_virtualenv/bin/python -B /home/qt/work/qt/qtinterfaceframework/src/tools/ifcodegen/generate.py -T /home/qt/work/qt/qtinterfaceframework/src/tools/ifcodegen/templates --template=frontend --force /home/qt/work/qt/qtinterfaceframework/examples/interfaceframework/qface-climate/example-climate.qface /home/qt/work/qt/qtinterfaceframework_build/examples/interfaceframework/qface-climate/frontend/frontend
      Traceback (most recent call last):
        File "/home/qt/work/qt/qtinterfaceframework/src/tools/ifcodegen/generate.py", line 16, in <module>
          from qface.watch import monitor
        File "/home/qt/work/qt/qtinterfaceframework_build/src/tools/ifcodegen/qtif_qface_virtualenv/lib/python3.10/site-packages/qface/watch.py", line 1, in <module>
          from watchdog.events import FileSystemEventHandler
        File "/home/qt/work/qt/qtinterfaceframework_build/src/tools/ifcodegen/qtif_qface_virtualenv/lib/python3.10/site-packages/watchdog/events.py", line 99, in <module>
          from dataclasses import dataclass, field
      ModuleNotFoundError: No module named 'dataclasses'
      CMake Error at /home/qt/work/qt/qtinterfaceframework_build/lib/cmake/Qt6InterfaceFramework/Qt6InterfaceFrameworkMacros.cmake:431 (message):
        Error while running ifcodegen
      Call Stack (most recent call first):
        /home/qt/work/qt/qtinterfaceframework_build/lib/cmake/Qt6InterfaceFramework/Qt6InterfaceFrameworkMacros.cmake:101 (qt6_ifcodegen_generate)
        /home/qt/work/qt/qtinterfaceframework_build/lib/cmake/Qt6InterfaceFramework/Qt6InterfaceFrameworkMacros.cmake:500 (internal_ifcodegen_import)
        /home/qt/work/qt/qtinterfaceframework_build/lib/cmake/Qt6InterfaceFramework/Qt6InterfaceFrameworkMacros.cmake:506 (qt6_ifcodegen_extend_target)
        examples/interfaceframework/qface-climate/frontend/CMakeLists.txt:19 (qt_ifcodegen_extend_target)
      -- Configuring incomplete, errors occurred!
      FAILED: build.ninja 
      /opt/cmake-3.27.7/bin/cmake --regenerate-during-build -S/home/qt/work/qt/qtinterfaceframework -B/home/qt/work/qt/qtinterfaceframework_build
      ninja: error: rebuilding 'build.ninja': subcommand failed
      Process finished with error: exit status 1
      

      Build log: https://testresults.qt.io/logs/qt/qtinterfaceframework/8e151cbc170083a6fc48df257184494598e2c445/LinuxUbuntu_22_04x86_64LinuxUbuntu_22_04x86_64GCCqtci-linux-Ubuntu-22.04-x86_64-51-4f59f0Documentation_Sccache_UseConfigure/c69a5769801b07859fab2f07db68fccdb3474b9e/build_1707285278/log.txt.gz

      Details: https://testresults.qt.io/coin/integration/qt/qtinterfaceframework/tasks/1707285266

      Tested changes (refs/builds/qtci/dev/1707282531):
      https://codereview.qt-project.org/c/qt/qtinterfaceframework/+/537882/2 Update dependencies on 'dev' in qt/qtinterfaceframework

      Attachments

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

        Activity

          People

            gagi Dominik Holland
            janihe Jani Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: