pmus pmus - 2 years ago 664
Python Question

PyInstaller doesn't import Queue

I'm trying to compile some script with twisted and Queue.

pyinstaller --onefile

# -*- coding: utf-8 -*-#
from twisted import *
import queue as Queue
a = Queue.Queue()

Unfortunately, produced file fails with
ImportError: No module named queue

Answer Source
pip install twisted --upgrade

fixed everything.


also don't forget to use --hidden-import=queue in cmdline.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download