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 WebAssembly
  4. emrun.py, getcwd() Operation not permitted
Forum Updated to NodeBB v4.3 + New Features

emrun.py, getcwd() Operation not permitted

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
3 Posts 2 Posters 473 Views 2 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.
  • C Offline
    C Offline
    cadol001
    wrote on last edited by
    #1

    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
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      C 1 Reply Last reply
      1
      • SGaistS SGaist

        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.

        C Offline
        C Offline
        cadol001
        wrote on last edited by
        #3

        @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

        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