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. emsdk/upstream/emscripten/emrun: 9: Syntax error: word unexpected (expecting ")")
Forum Updated to NodeBB v4.3 + New Features

emsdk/upstream/emscripten/emrun: 9: Syntax error: word unexpected (expecting ")")

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
3 Posts 2 Posters 519 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
    idlefrog
    wrote on 30 Sept 2021, 13:18 last edited by idlefrog
    #1

    Hi guys,
    Am compiling on Ubuntu 20.04 LTS, Qt5,... my first project with QtWebAssembly.
    But when I try to launch after a successful build, I get the error:

    from: can't read /var/mail/tools
    emsdk/upstream/emscripten/emrun: 9: Syntax error: word unexpected (expecting ")")
    

    Seems to have a problem with the emrun script:

    if __name__ == '__main__':
      python_selector.run(__file__)
    

    The reference to mail means to me that emrun is running 'sh' or 'bash' on a python script. Very odd.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Seishin
      wrote on 2 Nov 2021, 03:11 last edited by
      #2

      Just met the same issue on Qt Creator 5 this week.
      My solution is using Qt Creator 6 beta 2 "Qt Creator 6.0.0-beta2 (5.83.0)" which is just released one week earlier.
      (I also tried beta 1 but the issue is not patched in that version yet.)

      1 Reply Last reply
      1
      • I Offline
        I Offline
        idlefrog
        wrote on 2 Nov 2021, 15:01 last edited by
        #3

        @Seishin Am stuck with the old Qt Creator 5... but thanks for the help :)
        (Never got around that problem in the end, and gave up!)

        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