Python Forum
How would I use Watchdog to get triggered when DVD is inserted?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How would I use Watchdog to get triggered when DVD is inserted?
#3
This happens when a DVD is not inserted and I want Watchdog to wait until a DVD is inserted then run my main function.
This is the complete traceback error:
Error:
Traceback (most recent call last): File "C:/Users/Daren/Documents/01 PYTHON/DVD Auto Ripper/watcher.py", line 16, in <module> observer.start() File "C:\Users\Daren\Documents\01 PYTHON\DVD Auto Ripper\venv\lib\site-packages\watchdog\observers\api.py", line 256, in start emitter.start() File "C:\Users\Daren\Documents\01 PYTHON\DVD Auto Ripper\venv\lib\site-packages\watchdog\utils\__init__.py", line 93, in start self.on_thread_start() File "C:\Users\Daren\Documents\01 PYTHON\DVD Auto Ripper\venv\lib\site-packages\watchdog\observers\read_directory_changes.py", line 67, in on_thread_start self._handle = get_directory_handle(self.watch.path) File "C:\Users\Daren\Documents\01 PYTHON\DVD Auto Ripper\venv\lib\site-packages\watchdog\observers\winapi.py", line 316, in get_directory_handle return CreateFileW(path, FILE_LIST_DIRECTORY, WATCHDOG_FILE_SHARE_FLAGS, File "C:\Users\Daren\Documents\01 PYTHON\DVD Auto Ripper\venv\lib\site-packages\watchdog\observers\winapi.py", line 112, in _errcheck_handle raise ctypes.WinError() PermissionError: [WinError 21] The device is not ready.
Reply


Messages In This Thread
RE: How would I use Watchdog to get triggered when DVD is inserted? - by Daring_T - Aug-14-2021, 03:01 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  watchdog on_modified CAD79 3 495 Apr-24-2024, 06:23 PM
Last Post: deanhystad
  [SOLVED] [BeautifulSoup] Why does it turn inserted string's brackets into &lt;/&gt;? Winfried 0 1,666 Sep-03-2022, 11:21 PM
Last Post: Winfried
  Error when using Watchdog and Qt to keep open a Queue before and after sending first pyhill00 0 1,712 Oct-28-2021, 09:10 AM
Last Post: pyhill00
  Halting if command if gpio triggered event triggered knoxvilles_joker 7 3,456 Jun-21-2021, 01:27 AM
Last Post: knoxvilles_joker
  How to make input come after input if certain line inserted and if not runs OtherCode Adrian_L 6 3,477 Apr-04-2021, 06:10 PM
Last Post: Adrian_L
  Picture changing triggered by GPIO q_nerk 2 2,725 Dec-14-2020, 03:32 PM
Last Post: DeaD_EyE
  lxml - etree/lxml need help storing variable for most inserted element goeb 0 2,637 Apr-01-2019, 03:09 AM
Last Post: goeb

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020