From abd69a9bae66c4f81e294742b32d53a76537c400 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 3 Nov 2018 09:53:03 -0700 Subject: [PATCH] use Thread instead of Pool due to python 3.7 issue --- gooey/__init__.py | 2 +- gooey/gui/processor.py | 7 +++++-- setup.py | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gooey/__init__.py b/gooey/__init__.py index e851d12..243693a 100644 --- a/gooey/__init__.py +++ b/gooey/__init__.py @@ -2,4 +2,4 @@ import os from gooey.python_bindings.gooey_decorator import Gooey from gooey.python_bindings.gooey_parser import GooeyParser -__version__ = '1.0.1' +__version__ = '1.0.2' diff --git a/gooey/gui/processor.py b/gooey/gui/processor.py index 85ebfdf..c29bba8 100644 --- a/gooey/gui/processor.py +++ b/gooey/gui/processor.py @@ -3,7 +3,7 @@ import re import subprocess import sys from functools import partial -from multiprocessing.dummy import Pool +from threading import Thread from gooey.gui import events from gooey.gui.pubsub import pub @@ -52,7 +52,10 @@ class ProcessController(object): command, bufsize=1, stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True, env=env) - Pool(1).apply_async(self._forward_stdout, (self._process,)) + + t = Thread(target=self._forward_stdout, args=(self._process,)) + t.start() + def _forward_stdout(self, process): ''' diff --git a/setup.py b/setup.py index 1551983..816ade5 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages with open('README.md') as readme: long_description = readme.read() -version = '1.0.1' +version = '1.0.2' deps = [ 'Pillow>=4.3.0',