python error when running wh mic

27 views
Skip to first unread message

Anferney Grotestam

unread,
Feb 11, 2025, 9:12:46 AMFeb 11
to General WebHare developers discussion
I was able to fix the previous error emcc sdk error by reinstalling brew and the webhare dependencies, but i now encouter a new error when running wh mic:

/Users/admin/projects/webhare/vendor/emsdk/upstream/emscripten/emcc: line 36: /Users/admin/projects/webhare/vendor/emsdk/python/3.9.2_64bit/bin/python3: No such file or directory
/Users/admin/projects/webhare/vendor/emsdk/upstream/emscripten/emcc: line 36: exec: /Users/admin/projects/webhare/vendor/emsdk/python/3.9.2_64bit/bin/python3: cannot execute: No such file or directory


i also added some more logs from wh mic in as an attatchment

whmiclog.txt

Arnold Hendriks

unread,
Feb 11, 2025, 9:19:53 AMFeb 11
to General WebHare developers discussion
Still looks like a partial install

What happens if you go to vendor/emsdk and run: ./emsdk install 3.1.60 ?

I'm seeing: 

Resolving SDK version '3.1.60' to 'sdk-releases-87709b5747de5b1993fe314285528bf4b65c23e1-64bit'
Installing SDK 'sdk-releases-87709b5747de5b1993fe314285528bf4b65c23e1-64bit'..
Skipped installing node-20.18.0-64bit, already installed.
Skipped installing python-3.9.2-64bit, already installed.

Skipped installing releases-87709b5747de5b1993fe314285528bf4b65c23e1-64bit, already installed.

All SDK components already installed: 'sdk-releases-87709b5747de5b1993fe314285528bf4b65c23e1-64bit'.

Anferney Grotestam

unread,
Feb 11, 2025, 9:22:43 AMFeb 11
to General WebHare developers discussion, Arnold Hendriks
I'm now seeing this:

MacBookPro:emsdk admin$ ./emsdk install 3.1.60
./emsdk: line 36: /Users/admin/projects/webhare/vendor/emsdk/python/3.9.2_64bit/bin/python3: No such file or directory
./emsdk: line 36: exec: /Users/admin/projects/webhare/vendor/emsdk/python/3.9.2_64bit/bin/python3: cannot execute: No such file or directory


Op dinsdag 11 februari 2025 om 15:19:53 UTC+1 schreef Arnold Hendriks:

Arnold Hendriks

unread,
Feb 11, 2025, 9:42:53 AMFeb 11
to General WebHare developers discussion, Arnold Hendriks
That doesn't make sense. Where is "3.9.2_64bit"  coming from?  Are you sure this is a clean shell/terminal ? 

What's in your emsdk/emsdk ? As the path there is slightly different, see the bold path below.

Line 36 in the error message is the 'exec' line at the end and the only way I see that referring to 3.9.2_64bit is if the enviroment variable EMSDK_PYTHON was already set.

eduvpn109009:vendor arnold$ cat emsdk/emsdk
#!/bin/sh
# Copyright 2019 The Emscripten Authors.  All rights reserved.
# Emscripten is available under two separate licenses, the MIT license and the
# University of Illinois/NCSA Open Source License.  Both these licenses can be
# found in the LICENSE file.

# Wrapper script that runs emsdk.py

# First look for python bundled in Emsdk
if [ -z "$EMSDK_PYTHON" ]; then
  PYTHON3="$(dirname "$0")/python/3.9.2-1_64bit/bin/python3"
  if [ -f "$PYTHON3" ]; then
    EMSDK_PYTHON="$PYTHON3"

    # When using our bundled python we never want the users
    # PYTHONHOME or PYTHONPATH
    # https://github.com/emscripten-core/emsdk/issues/598
    unset PYTHONHOME
    unset PYTHONPATH
  fi
fi

# If bundled python is not found, look for `python3` in PATH.  This is especially important on macOS (See:
# https://github.com/emscripten-core/emsdk/pull/273)
if [ -z "$EMSDK_PYTHON" ]; then
  if PYTHON3="$(command -v python3 2>/dev/null)"; then
    EMSDK_PYTHON=$PYTHON3
  fi
fi

# Finally fall back to just looking for `python` in PATH
if [ -z "$EMSDK_PYTHON" ]; then
  EMSDK_PYTHON=python
fi

exec "$EMSDK_PYTHON" "$0.py" "$@"




Anferney Grotestam

unread,
Feb 12, 2025, 3:00:49 AMFeb 12
to General WebHare developers discussion, Arnold Hendriks
I wasn't able to get any further, so i made a new profile on the mac. Didn't encounter any of these errors and got WebHare to work. 

Op dinsdag 11 februari 2025 om 15:42:53 UTC+1 schreef Arnold Hendriks:

Anferney Grotestam

unread,
Feb 13, 2025, 8:27:21 AMFeb 13
to General WebHare developers discussion, Anferney Grotestam, Arnold Hendriks
I somehow managed to resolve it in the old profile. I deleted the python folder inside the emsdk folder, and then ran ./emsdk install python-3.9.2-64bit to reinstall python. 
After that running wh make install fixed it. 

Op woensdag 12 februari 2025 om 09:00:49 UTC+1 schreef Anferney Grotestam:

Arnold Hendriks

unread,
Mar 6, 2025, 4:21:27 AMMar 6
to General WebHare developers discussion, anfe...@nubium.nl, Arnold Hendriks
Someone else here hit the same bug, a Xcode update may have been involved. 

Rebooting fixed it immediately.

Reply all
Reply to author
Forward
0 new messages