Skip to content

Instantly share code, notes, and snippets.

@gartha1
Created August 3, 2022 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gartha1/5e3f6c9ca47e65a9acad6046a925157f to your computer and use it in GitHub Desktop.
Save gartha1/5e3f6c9ca47e65a9acad6046a925157f to your computer and use it in GitHub Desktop.
C:\pythontest\wang-youtube-auto-upload>python onefile-example_douyin.py
whether run in view mode False
start web page without proxy
Traceback (most recent call last):
File "C:\pythontest\wang-youtube-auto-upload\onefile-example_douyin.py", line 146, in <module>
scheduletopublish_tomorrow()
File "C:\pythontest\wang-youtube-auto-upload\onefile-example_douyin.py", line 77, in scheduletopublish_tomorrow
asyncio.run(upload.upload(
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1776.0_x64__qbz5n2kfra8p0\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1776.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 646, in run_until_complete
return future.result()
File "C:\pythontest\wang-youtube-auto-upload\ytb_up\douyin.py", line 100, in upload
self.browser = await self._start_browser("firefox", **browserLaunchOptionDict)
File "C:\pythontest\wang-youtube-auto-upload\ytb_up\douyin.py", line 552, in _start_browser
return await self._playwright.firefox.launch(record_video_dir=os.path.abspath('')+os.sep+"screen-recording", **kwargs)
TypeError: BrowserType.launch() got an unexpected keyword argument 'record_video_dir'
Exception ignored in: <function BaseSubprocessTransport.__del__ at 0x0000026A3F26F520>
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1776.0_x64__qbz5n2kfra8p0\lib\asyncio\base_subprocess.py", line 126, in __del__
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1776.0_x64__qbz5n2kfra8p0\lib\asyncio\base_subprocess.py", line 104, in close
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1776.0_x64__qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 108, in close
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1776.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 750, in call_soon
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1776.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 515, in _check_closed
RuntimeError: Event loop is closed
C:\pythontest\wang-youtube-auto-upload>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment