如何调试精简python脚本?

如何调试精简python脚本?,python,Python,我正在尝试在github中使用这个python脚本aangfanboy/pindown 但我有这个错误 Opening browser...: 0%| | 0/12 [00:00<?, ?it/s] DevTools listening on ws://127.0.0.1:49614/devtools/browser/9501c6f7-21b0-4

我正在尝试在github中使用这个python脚本aangfanboy/pindown

但我有这个错误

Opening browser...:   0%|                                                                       | 0/12 [00:00<?, ?it/s]
DevTools listening on ws://127.0.0.1:49614/devtools/browser/9501c6f7-21b0-4297-96fb-e44c4fcfa4cb
Going to link...:   8%|█████▍                                                           | 1/12 [00:05<01:01,  5.63s/it][0122/062528.296:INFO:CONSOLE(0)] "A cookie associated with a cross-site resource at http://google.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.", source: https://www.pinterest.com/search/pins/?q=art (0)
Starting download...:  42%|█████████████████████████▍                                   | 5/12 [00:10<00:26,  3.82s/it][0122/062531.262:INFO:CONSOLE(1)] "Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.", source: https://s.pinimg.com/webapp/js/pjs-entryChunk-www-unauth-93845af8c143b49d2f47.mjs (1)
Starting download...:  42%|█████████████████████████▍                                   | 5/12 [00:10<00:15,  2.18s/it]

打开浏览器…:0%| | 0/12[00:00您没有发布引发此错误的位置。我们只看到它在Popen中,但此Popen或子进程在哪里?此外,您应该发布一个最小的可复制示例。我们不能在所有问题上只查看整个代码。
Exception ignored in: <function Popen.__del__ at 0x02F12C88>
    Traceback (most recent call last):
      File "C:\Users\windows user name\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 945, in __del__
        self._internal_poll(_deadstate=_maxsize)
      File "C:\Users\windows user name\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 1344, in _internal_poll
        if _WaitForSingleObject(self._handle, 0) == _WAIT_OBJECT_0:
    OSError: [WinError 6] The handle is invalid