Search code examples
pythonpython-3.xpyqt5slackfbs

PyQt5 fbs can't execute slack


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

Solution

  • I f...king solved this.

    It was not even related to pyinstaller nor fbs.

    I checked every dependency installed in library. It turned out that the recent version for multidict(4.7.1) crashed with slack-client Downgrade to 4.6.1 solved the problem. This was insane.