tusharsadhwani / yen

The last Python environment manager you'll ever need.
MIT License
212 stars 10 forks source link

Installation failure with curl - `stty: stdin isn't a terminal` #36

Open DataEnggNerd opened 2 hours ago

DataEnggNerd commented 2 hours ago

While installing through curl -L yen.tushar.lol/install.sh | s the while loop for giving y|n is running infinitely.

Note: When I have cloned the shell script to local and executed, worked without a problem.

System details:

uname -a Darwin Admins-Laptop.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:16:46 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T8112 arm64

fish --version fish, version 3.7.1

echo $TERM xterm-256color

Error log

> curl -L yen.tushar.lol/install.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   166  100   166    0     0    181      0 --:--:-- --:--:-- --:--:--   181
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100  3561  100  3561    0     0   1841      0  0:00:01  0:00:01 --:--:--     0
This script will automatically download and install yen for you.
Getting it from this url: https://github.com/tusharsadhwani/yen/releases/latest/download/yen-rs-aarch64-apple-darwin
The binary will be installed into '/Users/santhoshsolomon/.yen/bin'
######################################################################## 100.0%
######################################################################## 100.0%#=#=-#  #                              ######################################################################## 100.0%
######################################################################## 100.0%#=#=-#  #                              ######################################################################## 100.0%
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

# this just continues
tusharsadhwani commented 2 hours ago

I faced this yesterday, so I think I can reproduce this and find out the root cause.

It worked just fine on my other, identical machine, which is weird.

DataEnggNerd commented 2 hours ago

Great, do let me know if you need any further information regarding this bug.