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!
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!