openui icon indicating copy to clipboard operation
openui copied to clipboard

Getting `ImportError: cannot import name 'AsyncStream'

Open irom77 opened this issue 1 year ago • 1 comments

Getting

ImportError: cannot import name 'AsyncStream' from partially initialized module 'openai' (most likely due to a circular import) (E:\JupyterNotebooks\openui\backend\openui\openai.py)

Tried python -m pip install openai --upgrade but it didn't help. Using Python 3.11.8

irom77 avatar May 06 '24 12:05 irom77

Ahh, be sure to run the code from the backend directory. You'll get this error if you run in a directory that has a one office or die named openai

vanpelt avatar May 08 '24 10:05 vanpelt