Closed thistleknot closed 9 months ago
+1
I've similar issue:
To create a public link, set `share=True` in `launch()`.
Closing server running on port: 7860
2023-09-26 10:53:01 INFO:Loading the extension "gallery"...
2023-09-26 10:53:01 INFO:Loading the extension "openai"...
2023-09-26 10:53:01 ERROR:Failed to load the extension "openai".
Traceback (most recent call last):
File "F:\Projects\text-generation-webui\modules\extensions.py", line 36, in load_extensions
exec(f"import extensions.{name}.script")
File "<string>", line 1, in <module>
File "F:\Projects\text-generation-webui\extensions\openai\script.py", line 7, in <module>
import extensions.openai.completions as OAIcompletions
File "F:\Projects\text-generation-webui\extensions\openai\completions.py", line 3, in <module>
import tiktoken
ModuleNotFoundError: No module named 'tiktoken'
Running on local URL: http://127.0.0.1:7860
To create a public link, set `share=True` in `launch()`.
pip install tiktoken sentence_transformers
On Tue, Sep 26, 2023 at 1:09 AM Alexey Korkota @.***> wrote:
I've similar issue:
To create a public link, set
share=True
inlaunch()
. Closing server running on port: 7860 2023-09-26 10:53:01 INFO:Loading the extension "gallery"... 2023-09-26 10:53:01 INFO:Loading the extension "openai"... 2023-09-26 10:53:01 ERROR:Failed to load the extension "openai". Traceback (most recent call last): File "F:\Projects\text-generation-webui\modules\extensions.py", line 36, in load_extensions exec(f"import extensions.{name}.script") File "", line 1, in File "F:\Projects\text-generation-webui\extensions\openai\script.py", line 7, in import extensions.openai.completions as OAIcompletions File "F:\Projects\text-generation-webui\extensions\openai\completions.py", line 3, in import tiktoken ModuleNotFoundError: No module named 'tiktoken' Running on local URL: http://127.0.0.1:7860 To create a public link, set
share=True
inlaunch()
.— Reply to this email directly, view it on GitHub https://github.com/oobabooga/text-generation-webui/issues/4010#issuecomment-1735040755, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHKKOWS2JDLFWAJEC65VFDX4KESVANCNFSM6AAAAAA5A3Y57Q . You are receiving this because you authored the thread.Message ID: @.***>
pip install tiktoken sentence_transformers … On Tue, Sep 26, 2023 at 1:09 AM Alexey Korkota @.> wrote: I've similar issue: To create a public link, set
share=True
inlaunch()
. Closing server running on port: 7860 2023-09-26 10:53:01 INFO:Loading the extension "gallery"... 2023-09-26 10:53:01 INFO:Loading the extension "openai"... 2023-09-26 10:53:01 ERROR:Failed to load the extension "openai". Traceback (most recent call last): File "F:\Projects\text-generation-webui\modules\extensions.py", line 36, in load_extensions exec(f"import extensions.{name}.script") File "", line 1, in @.>File "F:\Projects\text-generation-webui\extensions\openai\script.py", line 7, in import extensions.openai.completions as OAIcompletions File "F:\Projects\text-generation-webui\extensions\openai\completions.py", line 3, in import tiktoken ModuleNotFoundError: No module named 'tiktoken' Running on local URL: http://127.0.0.1:7860 To create a public link, set share=True
inlaunch()
. — Reply to this email directly, view it on GitHub <#4010 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHKKOWS2JDLFWAJEC65VFDX4KESVANCNFSM6AAAAAA5A3Y57Q . You are receiving this because you authored the thread.Message ID:
I've tried to install all dependencies from openai/requirements.txt but an api responded 503. Now I'm using 1.6.0, and it just works.
Same thing here Titoken first,
and after a manual pip3 install -r requirements.txt
2023-09-26 16:28:52 ERROR:Failed to load the extension "openai".
Traceback (most recent call last):
File "E:\PROJETS\AI-Text\modules\extensions.py", line 36, in load_extensions
exec(f"import extensions.{name}.script")
File "
I guess that's a global extension loading problem, because I can't load any extensions, I've got the same error message:
...line 36, in load_extensions exec(f"import extensions.{name}.script")
version 1.6 : work ok last version 1.6.1 : this openai extension error, can't install tiktoken
Make sure you're in the active miniconda environment before pip installing...
For those of you on windows:
.\cmd_windows.bat
pip install tiktoken sentence_transformers SpeechRecognition
Thanks, this helped under Linux too: ./cmd_linux.sh, and pip install [whatever's missing].
To summarize:
in my linux install this "fixed" the issue maybe it just needs to be added to the right requirements file.
conda activate installer_files/env/ pip install tiktoken sentence_transformers SpeechRecognition sse_starlette conda deactivate
I am seeing the same issue but running with Docker. I would have to modify requirements.txt and re-run docker compose up --build?
I am having this issue as well.
2023-12-09 15:47:49 INFO:Loading the extension "openai"...
2023-12-09 15:47:49 ERROR:Failed to load the extension "openai".
Traceback (most recent call last):
File "/Users/lafintiger/aidev/text-generation-webui/modules/extensions.py", line 36, in load_extensions
exec(f"import extensions.{name}.script")
File "
I have install sse_starlette and its dependencies.
Thoughts anyone?
Try: pip install tiktoken sentence_transformers SpeechRecognition sse_starlette
This issue has been closed due to inactivity for 6 weeks. If you believe it is still relevant, please leave a comment below. You can tag a developer in your comment.
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?
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
System Info