Aesthetikx / openai_pipe

A UNIX-ey interface to OpenAI
MIT License
192 stars 13 forks source link

bash: openai_pipe: command not found #5

Closed sebastian-65 closed 1 year ago

sebastian-65 commented 1 year ago

Sorry for a noobie question, this is the very first contact with ruby for me.

I have successfuly installed both ruby and openai_pipe gem and setup token variable (returns value just fine), however when I run it any command, bash cannot find the command.

[sebastian@nuvo ~]$ openai_pipe what is two plus two
bash: openai_pipe: command not found

Did I install everything needed? Running gem update didn't help.

[sebastian@nuvo ~]$ gem list

*** LOCAL GEMS ***

abbrev (default: 0.1.0)
addressable (2.8.1)
base64 (default: 0.1.1)
benchmark (default: 0.2.0)
bigdecimal (default: 3.1.2)
bundler (default: 2.4.1)
cgi (default: 0.3.6)
csv (default: 3.2.5)
date (default: 3.2.2)
dbm (default: 1.1.0)
debug (default: 0.2.1)
delegate (default: 0.2.0)
did_you_mean (default: 1.6.1)
digest (default: 3.1.1)
down (5.4.0)
drb (default: 2.1.0)
english (default: 0.7.1)
erb (default: 4.0.2)
etc (default: 1.3.0)
fcntl (default: 1.0.1)
fiddle (default: 1.1.0)
fileutils (default: 1.6.0)
find (default: 0.1.1)
forwardable (default: 1.3.2)
gdbm (default: 2.1.0)
getoptlong (default: 0.1.1)
httparty (0.21.0)
io-console (default: 0.5.11)
io-nonblock (default: 0.1.0)
io-wait (default: 0.2.3)
ipaddr (default: 1.2.4)
irb (default: 1.4.2)
json (default: 2.6.3)
logger (default: 1.5.1)
matrix (default: 0.3.1)
mini_mime (1.1.2)
minitest (5.16.3)
multi_xml (0.6.0)
mutex_m (default: 0.1.1)
net-ftp (default: 0.1.2)
net-http (default: 0.2.2)
net-imap (default: 0.1.1)
net-pop (default: 0.1.1)
net-protocol (default: 0.1.1)
net-smtp (default: 0.2.1)
nkf (default: 0.1.0)
observer (default: 0.1.1)
open-uri (default: 0.2.0)
open3 (default: 0.1.1)
openai_pipe (0.1.2)
openssl (default: 3.0.0)
optparse (default: 0.1.1)
ostruct (default: 0.3.1)
pathname (default: 0.1.0)
power_assert (2.0.2)
pp (default: 0.2.1)
prettyprint (default: 0.1.1)
prime (default: 0.1.2)
pstore (default: 0.1.1)
psych (default: 4.0.6)
public_suffix (5.0.1)
quick_openai (0.1.2)
racc (default: 1.6.0)
rake (13.0.6)
rdoc (default: 6.4.0)
readline (default: 0.0.2)
readline-ext (default: 0.1.1)
reline (default: 0.3.1)
resolv (default: 0.2.1)
resolv-replace (default: 0.1.0)
rexml (3.2.5)
rinda (default: 0.1.1)
ruby-openai (3.5.0)
ruby2_keywords (0.0.5)
securerandom (default: 0.1.0)
set (default: 1.0.1)
shellwords (default: 0.1.0)
singleton (default: 0.1.1)
stringio (default: 3.0.2)
strscan (default: 3.0.1)
syslog (default: 0.1.0)
tempfile (default: 0.1.1)
test-unit (3.5.7)
time (default: 0.2.0)
timeout (default: 0.1.1)
tmpdir (default: 0.1.2)
tracer (default: 0.1.1)
tsort (default: 0.1.0)
un (default: 0.1.0)
uri (default: 0.11.0)
weakref (default: 0.1.1)
yaml (default: 0.1.1)
zlib (default: 2.0.0)
Aesthetikx commented 1 year ago

Hello, did you install ruby from rbenv or similar? Perhaps run rbenv rehash?

which openai_pipe should return at least something, like /home/john/.rbenv/shims/openai_pipe or equivalent.

Perhaps make sure gem install openai_pipe completes successfully, or open up a new terminal to make sure $PATH is up to date?

sebastian-65 commented 1 year ago

That's the problem, which openai_pipe doesnt return any location. I forgot to setup $PATH according to Arch docs.

Thank you!

Aesthetikx commented 1 year ago

Awesome, have a good day!