emrun.py, getcwd() Operation not permitted
-
when I click run, Qt creator runs this cmd:
/usr/bin/python3 /opt/homebrew/Cellar/emscripten/3.1.45/libexec/emrun.py --browser safari --port '<port>' --no_emrun_detect --serve_after_close /Users/username/Documents/repos/build-my_gui_wasm6-WebAssembly_Qt_6_5_2_multi_threaded-Debug/my_gui_wasm6.html
When I run this command myself, on whatever port I choose on the command line, it works fine. But I would like to be able to press the run button on qt creator. However, despite me changing the build folders permissions to 777, I still get this error in python when os.getcwd is called after cd'ing into the build directory.
sys.exit(main()) File "/opt/homebrew/Cellar/emscripten/3.1.45/libexec/emrun.py", line 1848, in main returncode = run() File "/opt/homebrew/Cellar/emscripten/3.1.45/libexec/emrun.py", line 1633, in run logv('Web server root directory: ' + os.path.abspath('.')) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/posixpath.py", line 379, in abspath cwd = os.getcwd() PermissionError: [Errno 1] Operation not permitted
-
Hi,
Just a wild guess but does Qt Creator have access to that folder ?
If memory serves well, macOS restricts access to certain folder for security purposes and you have to explicitly agree to let applications go through them.
-
Hi,
Just a wild guess but does Qt Creator have access to that folder ?
If memory serves well, macOS restricts access to certain folder for security purposes and you have to explicitly agree to let applications go through them.
@SGaist Qt Creator does have access to that folder, but maybe the python shell it creates doesn't for some reason?
If that is the case, I wonder how I can allow it. I can't change the python command it's running.
I can only post on this forum every 10 minutes until I earn one reputation, what the heck