error: [WinError 5] Access Denied when Building from source on Windows 10
-
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? -
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)