webvideo-downloader icon indicating copy to clipboard operation
webvideo-downloader copied to clipboard

source code string cannot contain null bytes

Open zhuxiaole opened this issue 2 years ago • 0 comments

运行 python daemon.py,无法正常启动,日志如下 环境:win11 python3.7.7 powershell7.3.2

Traceback (most recent call last):
  File "daemon.py", line 5, in <module>
    from dispatcher import TaskDispatcher
  File "H:\Projects\webvideo-downloader\downloader\dispatcher.py", line 4, in <module>
    import config
  File "H:\Projects\webvideo-downloader\downloader\config.py", line 2, in <module>
    import tools
  File "H:\Projects\webvideo-downloader\downloader\tools\__init__.py", line 4, in <module>
    from .webserver import *
  File "H:\Projects\webvideo-downloader\downloader\tools\webserver.py", line 7, in <module>
    from http.server import BaseHTTPRequestHandler
ValueError: source code string cannot contain null bytes

作者大大,请问这种情况应该如何处理?

zhuxiaole avatar Feb 16 '23 07:02 zhuxiaole