python multiprocessing returning attributeerror

ساخت وبلاگ
چکیده : import multiprocessing from multiprocessing import Process import mainWindow import hotFolder import... با عنوان : python multiprocessing returning attributeerror بخوانید :

import multiprocessing from multiprocessing import Process import mainWindow import hotFolder import sys

def process(): """ this is done when the user clicks the .exe file, the watchdog also starts its process and the GUI code simultaneously """ inspection_process = Process(target=hotFolder.main) capture_process = Process(target=mainWindow.main)

inspection_process.start()
capture_process.start()
inspection_process.join()
capture_process.join()

if name == 'main':

if sys.platform.startswith('win'):
    # On Windows, calling this function is necessary.
    multiprocessing.freeze_support()
    process()

Traceback (most recent call last): File "C:UsersUSERAppDataLocalProgramsPythonPython36libmultiprocessingprocess.py", line 258, in _bootstrap self.run() File "C:UsersUSERAppDataLocalProgramsPythonPython36libmultiprocessingprocess.py", line 93, in run self._target(*self._args, **self._kwargs) File "D:utvyaktaComponent Quality Inspector-20181208T052515Z-001cqihotFolder.py", line 112, in main observer.start() File "C:UsersUSERAppDataLocalProgramsPythonPython36libsite-packageswatchdogobserversapi.py", line 255, in start emitter.start() File "C:UsersUSERAppDataLocalProgramsPythonPython36libsite-packageswatchdogutils__init__.py", line 110, in start self.on_thread_start() File "C:UsersUSERAppDataLocalProgramsPythonPython36libsite-packageswatchdogobserversread_directory_changes.py", line 68, in on_thread_start self._handle = get_directory_handle(self.watch.path) File "C:UsersUSERAppDataLocalProgramsPythonPython36libsite-packageswatchdogobserverswinapi.py", line 277, in get_directory_handle None, OPEN_EXISTING, WATCHDOG_FILE_FLAGS, None) File "C:UsersUSERAppDataLocalProgramsPythonPython36libsite-packageswatchdogobserverswinapi.py", line 115, in _errcheck_handle raise ctypes.WinError() FileNotFoundError: [WinError 2] The system cannot find the file specified. Traceback (most recent call last): File "D:utvyaktaComponent Quality Inspector-20181208T052515Z-001cqimainWindow.py", line 136, in OnCloseWindow self.StopThreads() File "D:utvyaktaComponent Quality Inspector-20181208T052515Z-001cqimainWindow.py", line 142, in StopThreads thread = WorkerThread(self, self.pattern) AttributeError: 'Frame' object has no attribute 'pattern'

back soft...
ما را در سایت back soft دنبال می کنید

نویسنده : استخدام کار بازدید : 4 تاريخ : شنبه 1 دی 1397 ساعت: 7:50