There's definitely something wrong with slack
in that after fbs freeze
, I cannot run the standalone .exe file.
This is so weird because all other imports have no issues. For example, this simple code won't even work with slack
from fbs_runtime.application_context.PyQt5 import ApplicationContext
from PyQt5.QtWidgets import QMainWindow
import slack
import sys
if __name__ == '__main__':
appctxt = ApplicationContext() # 1. Instantiate ApplicationContext
window = QMainWindow()
window.resize(250, 150)
window.show()
exit_code = appctxt.app.exec_() # 2. Invoke appctxt.app.exec_()
sys.exit(exit_code)
Steps to reproduce:
pip install fbs PyQt5==5.9.2
pip install slackclient
fbs startproject
fbs run
<-- this works (can open up window)
fbs freeze
<-- this works, no error
Then click on executable file from ~/target/name/name.exe
it won't even start.
Anyone can guess what the problem is?
Windows 10 Pro
Visual Studio Code
Python 3.6.8 64-bit
I f...king solved this.
It was not even related to
pyinstaller
norfbs
.I checked every dependency installed in library. It turned out that the recent version for
multidict
(4.7.1) crashed withslack-client
Downgrade to 4.6.1 solved the problem. This was insane.