-
Notifications
You must be signed in to change notification settings - Fork 1.1k
unknown encoding #51
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
Comments
This is not enough information to reproduce the problem. Could you run these commands and paste the full output:
|
Happens to me too when I try to pack my application into exe through pyinstaller. Seems like module tiktoken_ext is unavailable after packaging. PyInstaller args: Looks like the importing system for encoding is a little bit confuse. |
Thanks, there's another issue in which people are talking about pyinstaller: #43 If anyone has an issue that does not involve pyinstaller, please run the commands in #51 (comment) and paste the full log |
OP hasn't responded, so closing. #43 is the right issue to talk about pyinstaller in |
I am getting similar issue while loading the encoding: The code snippet is as follows: import tiktoken and the error i am getting is as follows: _--------------------------------------------------------------------------- File f:\pycharmprojects\llamaindex\venv\lib\site-packages\tiktoken\registry.py:68, in get_encoding(encoding_name) ValueError: Unknown encoding WhereIsAI/UAE-Large-V1. Plugins found: ['tiktoken_ext.openai_public']_ |
pip install tiktoken in python 3.10
Report error: ValueError: Unknown encoding p50k_base
assert ENCODING_CONSTRUCTORS is not None
59 if encoding_name not in ENCODING_CONSTRUCTORS:
---> 60 raise ValueError(f"Unknown encoding {encoding_name}")
The text was updated successfully, but these errors were encountered: