openai-python icon indicating copy to clipboard operation
openai-python copied to clipboard

Too many arguments in the Windows solution

Open rfpanfil opened this issue 2 years ago • 1 comments

Confirm this is an issue with the Python library and not an underlying OpenAI API

  • [X] This is an issue with the Python library

Describe the bug

I try to run the curl and grit commands, but only got the error "-bash: cd: too many arguments"

To Reproduce

Just write

Code snippets

No response

OS

Windows

Python version

None

Library version

1.0.0

rfpanfil avatar Feb 20 '24 09:02 rfpanfil

Hi @rfpanfil, I take it you're following "Automatic migration with grit on Windows" from https://github.com/openai/openai-python/discussions/742? The error you're seeing usually shows up when you have spaces in the path you are trying to cd to: e.g.

cd /mnt/c/Users/Myself/My Documents/code/

where My Documents is a directory with spaces. In that case you just need to quote it, i.e.

cd "/mnt/c/Users/Myself/My Documents/code/"

If that's not the issue, then can you provide more context of what command you were trying to run and which previous steps you ran?

dackerman avatar Feb 20 '24 13:02 dackerman