AIGCT / EASYChatGPT

This is an application project of 'chatgpt',only applicable to desktop environment.
559 stars 691 forks source link

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

Open apple2099 opened 1 year ago

apple2099 commented 1 year ago

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 commented 1 year ago

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

shirubei commented 1 year ago

Same here