Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. error: [WinError 5] Access Denied when Building from source on Windows 10
Forum Updated to NodeBB v4.3 + New Features

error: [WinError 5] Access Denied when Building from source on Windows 10

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 492 Views 1 Watching
  • 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.
  • I Offline
    I Offline
    I_am_Nut
    wrote on last edited by
    #1

    I'm following here -> https://doc.qt.io/qtforpython-6/gettingstarted-windows.html

    On the step of Building PySide
    python setup.py build --qt-target-path=E:\Qt\6.3.1\msvc2019_64\bin --qtpaths=c:\path\to\qtpaths.exe --openssl=c:\path\to\openssl\bin --build-tests --ignore-git --parallel=8

    I get the below error

    In directory E:\Mestrado\unet-master\source-qt\pyside-setup:
            Running command:  E:\Python\python.exe setup.py build --qt-target-path=E:\Qt\6.3.1\msvc2019_64\bin 
    --qtpaths=E:\Qt\6.3.1\msvc2019_64\bin --build-tests --ignore-git --parallel=8 --internal-build-type=shiboken6
    running build
    
    Could not find Qt via provided option --qt-target-path=E:\Qt\6.3.1\msvc2019_64\bin Error was:
    
    
    
    error: [WinError 5] Access Denied
    Traceback (most recent call last):
      File "E:\Mestrado\unet-master\source-qt\pyside-setup\setup.py", line 78, in <module>
        setup_runner.run_setup()
      File "E:\Mestrado\unet-master\source-qt\pyside-setup\build_scripts\setup_runner.py", line 298, in run_setup
        raise RuntimeError(msg)
    RuntimeError:
    setup.py invocation failed with exit code: 1.
    
    
    setup.py invocation was: E:\Python\python.exe setup.py build --qt-target-path=E:\Qt\6.3.1\msvc2019_64\bin --qtpaths=E:\Qt\6.3.1\msvc2019_64\bin --build-tests --ignore-git --parallel=8 --internal-build-type=shiboken6
    

    I've already granted full control to any user on Qt directory and even on pyside-setup folder, but it didn't solve.
    Could anybody help me?

    1 Reply Last reply
    0
    • adrianghcA Offline
      adrianghcA Offline
      adrianghc
      wrote on last edited by
      #2

      Hi there! Try running the command without providing --qt-target-path and be sure to append "qtpaths.exe" to the path you provide for the --qtpaths option. Like this:

      E:\Python\python.exe setup.py build --qtpaths=E:\Qt\6.3.1\msvc2019_64\bin\qtpaths.exe --build-tests --ignore-git --parallel=8 --internal-build-type=shiboken6
      

      --qt-target-path is for cross-compiling, is that what you want to do here? If you are sure, try providing the path without "bin" at the end. However, please try the other suggestion first.

      (Also, just to be sure, are you sure you want the --internal-build-type=shiboken6 option?

      --build-type=shiboken6, build/package only the Python module
      --build-type=shiboken6-generator, build/package the generator executable
      --build-type=pyside6, build/package the PySide6 bindings.
      --build-type=all, the implicit default to build all of the above)

      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