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

AttributeError: type object 'Path' has no attribute 'getcwd'

    XMLWordPrintable

Details

    • 02c99f581 (dev), c6699658c (6.8), 4ca950d8b (6.7), 943dbede7 (tqtc/lts-6.5), aa0025138 (tqtc/lts-6.2), 5d78f3eb7 (tqtc/lts-6.2.10), 6de81c34c (tqtc/lts-6.2-opensource), 05dc2eb57 (6.2)

    Description

      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/ifcodegen_venv/bin VIRTUAL_ENV=/home/qt/work/qt/qtinterfaceframework_build/src/tools/ifcodegen/ifcodegen_venv IFGENERATOR_CONFIG=/home/qt/work/qt/qtinterfaceframework_build/src/tools/ifcodegen/.config /home/qt/work/qt/qtinterfaceframework_build/src/tools/ifcodegen/ifcodegen_venv/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/climate/example-climate.qface /home/qt/work/qt/qtinterfaceframework_build/examples/interfaceframework/climate/frontend
      Traceback (most recent call last):
        File "/home/qt/work/qt/qtinterfaceframework/src/tools/ifcodegen/generate.py", line 245, in <module>
          app()
        File "/home/qt/work/qt/qtinterfaceframework_build/src/tools/ifcodegen/ifcodegen_venv/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
          return self.main(*args, **kwargs)
        File "/home/qt/work/qt/qtinterfaceframework_build/src/tools/ifcodegen/ifcodegen_venv/lib/python3.10/site-packages/click/core.py", line 1078, in main
          rv = self.invoke(ctx)
        File "/home/qt/work/qt/qtinterfaceframework_build/src/tools/ifcodegen/ifcodegen_venv/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
          return ctx.invoke(self.callback, **ctx.params)
        File "/home/qt/work/qt/qtinterfaceframework_build/src/tools/ifcodegen/ifcodegen_venv/lib/python3.10/site-packages/click/core.py", line 783, in invoke
          return __callback(*args, **kwargs)
        File "/home/qt/work/qt/qtinterfaceframework/src/tools/ifcodegen/generate.py", line 241, in app
          run(template_search_paths, template, moduleConfig, annotations, imports, src, dst)
        File "/home/qt/work/qt/qtinterfaceframework/src/tools/ifcodegen/generate.py", line 186, in run
          generate(template_search_paths, templatePath, moduleConfig, annotations, imports, src, dst)
        File "/home/qt/work/qt/qtinterfaceframework/src/tools/ifcodegen/generate.py", line 94, in generate
          system = FileSystem.parse(src)
        File "/home/qt/work/qt/qtinterfaceframework_build/src/tools/ifcodegen/ifcodegen_venv/lib/python3.10/site-packages/qface/generator.py", line 392, in parse
          path = Path.getcwd() / str(input)
      AttributeError: type object 'Path' has no attribute 'getcwd'
      CMake Error at /home/qt/work/qt/qtinterfaceframework_build/lib/cmake/Qt6InterfaceFramework/Qt6InterfaceFrameworkMacros.cmake:556 (message):
        Error while running ifcodegen
      Call Stack (most recent call first):
        /home/qt/work/qt/qtinterfaceframework_build/lib/cmake/Qt6InterfaceFramework/Qt6InterfaceFrameworkMacros.cmake:145 (qt6_ifcodegen_generate)
        /home/qt/work/qt/qtinterfaceframework_build/lib/cmake/Qt6InterfaceFramework/Qt6InterfaceFrameworkMacros.cmake:648 (internal_ifcodegen_import)
        /home/qt/work/qt/qtinterfaceframework_build/lib/cmake/Qt6InterfaceFramework/Qt6InterfaceFrameworkMacros.cmake:762 (qt6_ifcodegen_import_variables)
        /home/qt/work/qt/qtinterfaceframework_build/lib/cmake/Qt6InterfaceFramework/Qt6InterfaceFrameworkMacros.cmake:792 (qt6_ifcodegen_add_qml_module)
        examples/interfaceframework/climate/CMakeLists.txt:43 (qt_ifcodegen_add_qml_module)
      -- 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/70e1b416f8643f8802022a983b0c3e27ba3d9458/LinuxUbuntu_22_04x86_64LinuxUbuntu_22_04x86_64GCCqtci-linux-Ubuntu-22.04-x86_64-51-c6c1e5Documentation_Sccache_UseConfigure/da9c70d3f53bddb8b0e6ebcf24de10c02c9c99e4/build_1722357321/log.txt.gz

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

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

      Attachments

        For Gerrit Dashboard: QTBUG-127627
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: