ERROR:Failed to load the extension "openai".
envgap__oobabooga__text-generation-webui-4010
Original GitHub issue ↗Opened 2023-09-21
01 / FAILURE SIGNATURE
As reported upstream
ERROR: bitsandbytes-0.41.1-py3-none-win_amd64.whl is not a supported wheel on this platform.
Not a benchmark task.
- No curated issue-specific recipe or verified environment fix is available.
02 / ENVIRONMENT RECIPE
- Base commit
Not freshly verified- Manifest
requirements.txt- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
oobabooga/text-generation-webui #4010 · read the original issue
### Describe the bug
ERROR:Failed to load the extension "openai". when I try to load it from cli
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Reproduction
this might be related to another issue (can't install requirements.txt)
https://github.com/oobabooga/text-generation-webui/issues/4005#issuecomment-1728717754
### Screenshot

### Logs
```shell
Output generated in 13.28 seconds (6.18 tokens/s, 82 tokens, context 6, seed 286069800)
Closing server running on port: 7860
2023-09-20 20:35:26 INFO:Loading the extension "gallery"...
2023-09-20 20:35:26 INFO:Loading the extension "openai"...
2023-09-20 20:35:27 ERROR:Failed to load the extension "openai".
Traceback (most recent call last):
File "/data/text-generation-webui/modules/extensions.py", line 36, in load_extensions
exec(f"import extensions.{name}.script")
File "<string>", line 1, in <module>
File "/data/text-generation-webui/extensions/openai/script.py", line 24, in <module>
import speech_recognition as sr
ModuleNotFoundError: No module named 'speech_recognition'
Thanks for being a Gradio user! If you have questions or feedback, please join our Discord server and chat with us: https://discord.gg/feTf9x3ZSB
Running on local URL: http://0.0.0.0:7860
To create a public link, set `share=True` in `launch()`.
127.0.0.1 - - [20/Sep/2023 20:41:52] code 404, message Not Found
127.0.0.1 - - [20/Sep/2023 20:41:52] "POST /v1/completions HTTP/1.1" 404 -
127.0.0.1 - - [20/Sep/2023 20:42:38] code 404, message Not Found
127.0.0.1 - - [20/Sep/2023 20:42:38] "POST /v1//completions HTTP/1.1" 404 -
127.0.0.1 - - [20/Sep/2023 20:44:28] code 404, message Not Found
127.0.0.1 - - [20/Sep/2023 20:44:28] "POST /v1//chat/completions HTTP/1.1" 404 -
127.0.0.1 - - [20/Sep/2023 20:44:42] code 404, message Not Found
127.0.0.1 - - [20/Sep/2023 20:44:42] "POST /v1//chat/completions HTTP/1.1" 404 -
Traceback (most recent call last):
File "/data/text-generation-webui/server.py", line 229, in <module>
time.sleep(0.5)
KeyboardInterrupt
(textgen) [root@pve0 text-generation-webui]#
(textgen) [root@pve0 text-generation-webui]#
(textgen) [root@pve0 text-generation-webui]# python server.py --api --listen --extensions openai
2023-09-20 20:45:32 INFO:Loading the extension "openai"...
2023-09-20 20:45:33 ERROR:Failed to load the extension "openai".
Traceback (most recent call last):
File "/data/text-generation-webui/modules/extensions.py", line 36, in load_extensions
exec(f"import extensions.{name}.script")
File "<string>", line 1, in <module>
File "/data/text-generation-webui/extensions/openai/script.py", line 24, in <module>
import speech_recognition as sr
ModuleNotFoundError: No module named 'speech_recognition'
Starting streaming server at ws://0.0.0.0:5005/api/v1/stream
2023-09-20 20:45:33 I04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]
Issue-specific recipe and runtime smoke command require review against the complete issue and repository.
Legacy reproduction is generic install-only; match the actual issue failure before admission.