warpy-ai / tgs

Terminal Generative Shell
https://www.warpy.io
Apache License 2.0
49 stars 7 forks source link

Setup script has a permission error on Mac #73

Open mmc102 opened 8 months ago

mmc102 commented 8 months ago

Describe the bug there is a bug in curl script on MacOS 14.1

To Reproduce run curl command in a terminal

Expected behavior

script installs

Screenshots

» curl -sSL https://raw.githubusercontent.com/warpy-ai/tgs/main/install.sh | bash                                                               

No version specified, using latest: v0.2.9
Downloading https://github.com/warpy-ai/tgs/releases/download/v0.2.9/tgs-v0.2.9-aarch64-apple-darwin.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 2051k  100 2051k    0     0  2038k      0  0:00:01  0:00:01 --:--:-- 10.8M
Extracting...
x inference_model.py
x model/
x model/tokenizer_config.json
x model/special_tokens_map.json
x model/config.json
x model/generation_config.json
x model/spiece.model
x model/pytorch_model.bin
x tgs
Installing...
mv: rename /var/folders/wf/htd4zs9j0sb4xvhl3hxl02700000gn/T/tmp.r8j7AHrG9T/tgs to /usr/local/bin/tgs: Permission denied

Desktop (please complete the following information):

Additional context

I also tried giving sudo privileges but still hit the same error.

Looks like a great tool, excited to check it out :)

jucasoliveira commented 8 months ago

@mmc102 Thank you for the report, I'll update the script

RonanKMcGovern commented 7 months ago

Yup, same issue:

tgs
dyld[39149]: symbol not found in flat namespace '_PyBytes_AsString'
zsh: abort      tgs
HillaShx commented 4 months ago

Hello @jucasoliveira! I'm facing the same issue mentioned in the previous reply, and I wanna offer my help with debugging and fixing this issue if you would like. I have no understanding of what's going on here, but if you point me in a direction I'd be happy to give it a shot :)

I'm running Sonoma 14.5 on an M1 MacBook Pro, and I'm using zsh.