I can't figure out all the conditions to reproduce this because it seems inconsistent. When I click the "Begin Monitoring Folder" button, sometimes it changes to "Stop Monitoring Folder" and sometimes it doesn't. One one occasion when it remained "Begin.." I clicked again and got the following error. There are some errors I can reproduce but will document them separately.
On Mac OS:
Traceback (most recent call last):
File "postProcessing.py", line 237, in toggle_folder_monitoring
folder_watcher.run()
File "/Users/jbest/Documents/brit-svn/git/autoPostProcessing_caleb/libs/folderMonitor.py", line 97, in run
self.observer.start()
File "/Users/jbest/Documents/brit-svn/git/autoPostProcessing/env/lib/python3.6/site-packages/watchdog/observers/api.py", line 255, in start
emitter.start()
File "/Users/jbest/Documents/brit-svn/git/autoPostProcessing/env/lib/python3.6/site-packages/watchdog/utils/init.py", line 111, in start
threading.Thread.start(self)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 842, in start
raise RuntimeError("threads can only be started once")
RuntimeError: threads can only be started once
Abort trap: 6
I can't figure out all the conditions to reproduce this because it seems inconsistent. When I click the "Begin Monitoring Folder" button, sometimes it changes to "Stop Monitoring Folder" and sometimes it doesn't. One one occasion when it remained "Begin.." I clicked again and got the following error. There are some errors I can reproduce but will document them separately.
On Mac OS: Traceback (most recent call last): File "postProcessing.py", line 237, in toggle_folder_monitoring folder_watcher.run() File "/Users/jbest/Documents/brit-svn/git/autoPostProcessing_caleb/libs/folderMonitor.py", line 97, in run self.observer.start() File "/Users/jbest/Documents/brit-svn/git/autoPostProcessing/env/lib/python3.6/site-packages/watchdog/observers/api.py", line 255, in start emitter.start() File "/Users/jbest/Documents/brit-svn/git/autoPostProcessing/env/lib/python3.6/site-packages/watchdog/utils/init.py", line 111, in start threading.Thread.start(self) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 842, in start raise RuntimeError("threads can only be started once") RuntimeError: threads can only be started once Abort trap: 6