Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bash script installing on mac, but not doing anything after hitting Ctrl+G #116

Open
abhimasand opened this issue Aug 1, 2022 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@abhimasand
Copy link
Contributor

The bash script successfully installs on an MBP Pro in the terminal, but when you actually run it via Ctrl+G. It doesn't actually do anything and just plays back the mac negative ping sound, as it has not been registered a known command in the terminal.

Steps for recreation:-

  1. Clone Codex-CLI
  2. CD into it
  3. ./scripts/bash_setup.sh
  4. Put the credentials
  5. Restart the Bash terminal
  6. Type out the hashtag and your query, then Hit Ctrl+G

Is there anything else required in the installation part for the bash terminal?

@2u6z3r0
Copy link

2u6z3r0 commented Sep 23, 2022

same issue here on macbook air M1

@dluc dluc self-assigned this Oct 12, 2022
@dluc
Copy link
Collaborator

dluc commented Oct 12, 2022

I will take a look

@dluc dluc added the bug Something isn't working label Oct 12, 2022
@kirilzilla
Copy link

same issue after successfull authorization, nothing happens with

whats my IP ctrl + G

macOS Ventura 13.0.1, Intel Processor

@dluc
Copy link
Collaborator

dluc commented Nov 28, 2022

I tested the installation again last week and everything worked fine.

  • After installing it, if you open a new window/session, does it still not work?
  • Could you check the version of Bash and Python on your system? (I run bash 5.1.16 and python 3.10.2, MacOS Ventura 13.0.1, Intel)

On thing I've noticed is that the underlying API can be very slow and sometimes timeout, depending on API keys, credits, OpenAI load

@wassx
Copy link

wassx commented Mar 23, 2023

Hi, I tried today on

  • python3.11
  • zsh 5.8.1 (x86_64-apple-darwin22.0)
  • macOS Ventura 13.2.1
  • M1 macBook
  • Language model: code-cushman-001
  • Credits available
    I do not get any response when e.g. # What's my IP? control+G. The terminal just flickers blueish and the cursor jumps to a new prompt without any progress, loading, delay,...
    Is there a way to get a verbose mode and to see what's happening/crashing?
    Running the curl to fetch available language model, returns a list with status ready: true for selected language model.
    Any logs to investigate please?

@wassx
Copy link

wassx commented Mar 24, 2023

It may be of help, as I identified one issue which I made wrong during setup.
I used to go directly into the scripts folder to execute ./zsh_setup.sh. This is wrong.
Stick EXACTLY to the installation guides which mentions executing the script from the cloned folder with ./scripts/zsh_setup.sh. This now modifies my .zshrc correctly.

Next I was facing an error:
File <myfilepath>/src/codex_query.py", line 4, in <module> import openai ModuleNotFoundError: No module named 'openai'

This led me to install the python packages pip install openai trying again, with another error, leading me to install pip install psutil

Now. it works.

@kirilzilla
Copy link

check the requirements.txt and use it with "pip install -r"

@wassx
Copy link

wassx commented Mar 24, 2023

@kirilzilla ah thank you! I edited my comment simultaneously. :) Ok, I missed the requirements.txt. Thank you!
Is this something which could be included in the zsh_setup?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants