Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. FileNotFoundError: [Errno 2] No such file or directory: '...._build_qtwebengine_src_core_target_toolchain_target__rule.rsp'
Forum Updated to NodeBB v4.3 + New Features

FileNotFoundError: [Errno 2] No such file or directory: '...._build_qtwebengine_src_core_target_toolchain_target__rule.rsp'

Scheduled Pinned Locked Moved Unsolved QtWebEngine
3 Posts 3 Posters 21.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    odelaune
    wrote on last edited by odelaune
    #1

    Hello,
    I try to compile from sources the new Qt 6.4.2 version with QtWebEngine enabled

    Here is the error I get:

    [92/30809] ACTION //base:feature_list_buildflags(/home/user/qt-everywhere-src-6.4.2/build/qtwebengine/src/core/target_toolchain:target)
    FAILED: gen/base/feature_list_buildflags.h 
    /usr/bin/python3 ../../../../../../qtwebengine/src/3rdparty/chromium/build/write_buildflag_header.py --output base/feature_list_buildflags.h --rulename //base:feature_list_buildflags --gen-dir gen --definitions __base_feature_list_buildflags__home_user_qt-everywhere-src-6.4.2_build_qtwebengine_src_core_target_toolchain_target__rule.rsp
    Traceback (most recent call last):
      File "/home/user/qt-everywhere-src-6.4.2/build/qtwebengine/src/core/Release/x86_64/../../../../../../qtwebengine/src/3rdparty/chromium/build/write_buildflag_header.py", line 96, in <module>
        options = GetOptions()
      File "/home/user/qt-everywhere-src-6.4.2/build/qtwebengine/src/core/Release/x86_64/../../../../../../qtwebengine/src/3rdparty/chromium/build/write_buildflag_header.py", line 55, in GetOptions
        with open(cmdline_options.definitions, 'r') as def_file:
    FileNotFoundError: [Errno 2] No such file or directory: '__base_feature_list_buildflags__home_user_qt-everywhere-src-6.4.2_build_qtwebengine_src_core_target_toolchain_target__rule.rsp'
    [99/2083] ACTION //base:clang_profiling_buildflags(/home/user/qt-everywhere-src-6.4.2/build/qtwebengine/src/core/target_toolchain:target)
    FAILED: gen/base/clang_profiling_buildflags.h 
    /usr/bin/python3 ../../../../../../qtwebengine/src/3rdparty/chromium/build/write_buildflag_header.py --output base/clang_profiling_buildflags.h --rulename //base:clang_profiling_buildflags --gen-dir gen --definitions __base_clang_profiling_buildflags__home_user_qt-everywhere-src-6.4.2_build_qtwebengine_src_core_target_toolchain_target__rule.rsp
    Traceback (most recent call last):
      File "/home/user/qt-everywhere-src-6.4.2/build/qtwebengine/src/core/Release/x86_64/../../../../../../qtwebengine/src/3rdparty/chromium/build/write_buildflag_header.py", line 96, in <module>
        options = GetOptions()
      File "/home/user/qt-everywhere-src-6.4.2/build/qtwebengine/src/core/Release/x86_64/../../../../../../qtwebengine/src/3rdparty/chromium/build/write_buildflag_header.py", line 55, in GetOptions
        with open(cmdline_options.definitions, 'r') as def_file:
    FileNotFoundError: [Errno 2] No such file or directory: '__base_clang_profiling_buildflags__home_user_qt-everywhere-src-6.4.2_build_qtwebengine_src_core_target_toolchain_target__rule.rsp'
    

    Any idea how to fix it?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      gattingmk
      wrote on last edited by
      #2

      Try using the exact, or absolute, path. The terms absolute and relative also have their usual English meaning. A relative path shows where something is relative to some start point; an absolute path is a location starting from the top.

      When you open a file with the name “filename.ext”; you are telling the open() function that your file is in the current working directory . This is called a relative path.

      file = open('filename.ext') //relative path
      

      In the above code, you are not giving the full path to a file to the open() function, just its name - a relative path. The error “FileNotFoundError: [Errno 2] No such file or directory” is telling you that there is no file of that name in the working directory. So, try using the exact, or absolute path.

      file = open(r'C:\path\to\your\filename.ext') //absolute path
      

      In the above code, all of the information needed to locate the file is contained in the path string - absolute path.

      It's a common misconception that relative paths are relative to the location of the python script, but this is untrue. Relative file paths are always relative to the current working directory, and the current working directory doesn't have to be the location of your python script. . In order to make this work, the directory containing the python executable must be in the PATH, a so-called environment variable that contains directories that are automatically used for searching executables when you enter a command. In any case, if your Python script file and your data input file are not in the same directory, you always have to specify either a relative path between them or you have to use an absolute path for one of them.

      N 1 Reply Last reply
      0
      • G gattingmk

        Try using the exact, or absolute, path. The terms absolute and relative also have their usual English meaning. A relative path shows where something is relative to some start point; an absolute path is a location starting from the top.

        When you open a file with the name “filename.ext”; you are telling the open() function that your file is in the current working directory . This is called a relative path.

        file = open('filename.ext') //relative path
        

        In the above code, you are not giving the full path to a file to the open() function, just its name - a relative path. The error “FileNotFoundError: [Errno 2] No such file or directory” is telling you that there is no file of that name in the working directory. So, try using the exact, or absolute path.

        file = open(r'C:\path\to\your\filename.ext') //absolute path
        

        In the above code, all of the information needed to locate the file is contained in the path string - absolute path.

        It's a common misconception that relative paths are relative to the location of the python script, but this is untrue. Relative file paths are always relative to the current working directory, and the current working directory doesn't have to be the location of your python script. . In order to make this work, the directory containing the python executable must be in the PATH, a so-called environment variable that contains directories that are automatically used for searching executables when you enter a command. In any case, if your Python script file and your data input file are not in the same directory, you always have to specify either a relative path between them or you have to use an absolute path for one of them.

        N Offline
        N Offline
        noraoks
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved