This is my first time using pyInstaller to convert a python script to exe.
I have a script written in python that uses several libraries. Among them 'whaaaaat' ( https://github.com/markfink/whaaaaat )
When I run the script in the cmd using the command python my-script.py
everything is executed correctly without any problem.
Then I wanted to pass my script to exe using pyInstaller, but when I run the resulting .exe file I get the following error:
Traceback (most recent call last):
File "my-script.py", line 896, in <module>
File "my-script.py", line 170, in menu
File "site-packages\whaaaaat\prompt.py", line 65, in prompt
File "site-packages\prompt_toolkit\shortcuts.py", line 576, in run_application
File "site-packages\prompt_toolkit\shortcuts.py", line 118, in create_output
File "site-packages\prompt_toolkit\terminal\win32_output.py", line 80, in __init__
File "site-packages\prompt_toolkit\terminal\win32_output.py", line 172, in get_win32_screen_buffer_info
prompt_toolkit.terminal.win32_output.NoConsoleScreenBufferError: No Windows console found. Are you running cmd.exe?
[7052] Failed to execute script my-script
I always run the script from cmd.
I have Python 2.7 (And I can't change version)
Could someone tell me why I'm getting this error?
Thank you! :)
I'm finally done using cx_Freeze to export my .py file to .exe and the error is gone.
:)