Skip to content
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

I get the error message :'ValueError: Unknown encoding gpt2' #14

Open
apple2099 opened this issue Feb 12, 2023 · 2 comments
Open

I get the error message :'ValueError: Unknown encoding gpt2' #14

apple2099 opened this issue Feb 12, 2023 · 2 comments

Comments

@apple2099
Copy link

When I run the program using the command 'python app.py', it runs normally. However, when I package the whole program using PyInstaller, I get the error message :'ValueError: Unknown encoding gpt2'.
File "EASYChatGPT\bbot.py", line 1, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
File "revChatGPT\Official.py", line 15, in
File "tiktoken\registry.py", line 60, in get_encoding
ValueError: Unknown encoding gpt2
[7740] Failed to execute script 'bbot' due to unhandled exception!

@apple2099
Copy link
Author

By the way, I have already packaged the libraries openai, revchatgpt, and tiktoken.

@shirubei
Copy link

shirubei commented Mar 3, 2023

Same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants