Issue with install on Mac

Ran commands:

brew install asciinema and then asciinema rec

Got error:

/usr/local/bin/asciinema: /usr/local/Cellar/asciinema/2.0.1/libexec/bin/asciinema: /usr/local/opt/python/bin/python3.6: bad interpreter: No such file or directory
/usr/local/bin/asciinema: line 2: /usr/local/Cellar/asciinema/2.0.1/libexec/bin/asciinema: Undefined error: 0

Looks to me as if you don’t have python3.6 installed or its not at the location its should be…

does this file exist and had read/exec permissions?
/usr/local/opt/python/bin/python3.6

Have you sorted it out? It seems to me it’s some homebrew/python installation issue.

I’m hitting this issue too

$ brew uninstall --force asciinema
Uninstalling asciinema... (101 files, 258KB)

$ brew install asciinema
==> Downloading https://homebrew.bintray.com/bottles/asciinema-2.0.1_1.high_sierra.bottle.tar.gz
Already downloaded: /Users/Robin/Library/Caches/Homebrew/downloads/89c73093ada7171d5a696f18664e1f5f34f976252684247f3c705be75e60ad90--asciinema-2.0.1_1.high_sierra.bottle.tar.gz
==> Pouring asciinema-2.0.1_1.high_sierra.bottle.tar.gz
�  /usr/local/Cellar/asciinema/2.0.1_1: 33 files, 102.4KB

$ asciinema
/usr/local/bin/asciinema: /usr/local/Cellar/asciinema/2.0.1_1/libexec/bin/asciinema: /usr/local/opt/python/bin/python3.7: bad interpreter: No such file or directory
/usr/local/bin/asciinema: line 2: /usr/local/Cellar/asciinema/2.0.1_1/libexec/bin/asciinema: Undefined error: 0

Any suggestions how to fix this? Not sure why/how it’s looking for Python 3.7

$ ls -l /usr/local/opt/python/bin/python*
lrwxr-xr-x  1 Robin  admin  55 31 Jul 18:45 /usr/local/opt/python/bin/python3 -> ../Frameworks/Python.framework/Versions/3.6/bin/python3
lrwxr-xr-x  1 Robin  admin  62 31 Jul 18:45 /usr/local/opt/python/bin/python3-config -> ../Frameworks/Python.framework/Versions/3.6/bin/python3-config
lrwxr-xr-x  1 Robin  admin  57 31 Jul 18:45 /usr/local/opt/python/bin/python3.6 -> ../Frameworks/Python.framework/Versions/3.6/bin/python3.6
lrwxr-xr-x  1 Robin  admin  64 31 Jul 18:45 /usr/local/opt/python/bin/python3.6-config -> ../Frameworks/Python.framework/Versions/3.6/bin/python3.6-config
lrwxr-xr-x  1 Robin  admin  58 31 Jul 18:45 /usr/local/opt/python/bin/python3.6m -> ../Frameworks/Python.framework/Versions/3.6/bin/python3.6m
lrwxr-xr-x  1 Robin  admin  65 31 Jul 18:45 /usr/local/opt/python/bin/python3.6m-config -> ../Frameworks/Python.framework/Versions/3.6/bin/python3.6m-config

Fix:

brew uninstall --force asciinema
brew install --build-from-source asciinema

Now works.

1 Like