LifeActor / ykdl

a video downloader focus on China mainland video sites.(一款专注于中国大陆视频网站的视频下载器。)
https://github.com/LifeActor/ykdl
Other
1.44k stars 285 forks source link

ykdl1.8.2在python3.7.1中不能运行 #630

Closed 97612336 closed 1 year ago

97612336 commented 1 year ago

在提交前,请确保您已经检查了以下内容!

请将错误输出粘贴在下面:

(scrapy_py37) PS D:\project\wk-spider-appshare\appshare> ykdl
Traceback (most recent call last):
  File "D:\python_env\scrapy_py37\lib\site-packages\ykdl\compact.py", line 22, in <module>
    functools.cache
AttributeError: module 'functools' has no attribute 'cache'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\PC\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\PC\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "D:\python_env\scrapy_py37\Scripts\ykdl.exe\__main__.py", line 4, in <module>
  File "D:\python_env\scrapy_py37\lib\site-packages\cykdl\__main__.py", line 7, in <module>
    import ykdl
  File "D:\python_env\scrapy_py37\lib\site-packages\ykdl\__init__.py", line 1, in <module>
    from . import compact
  File "D:\python_env\scrapy_py37\lib\site-packages\ykdl\compact.py", line 28, in <module>
    ''', functools.__dict__)
  File "<string>", line 1
    def cache(user_function, /):
                             ^
SyntaxError: invalid syntax

如果你有其他附言,例如问题只在某个视频发生,或者是一般性讨论或者提出新功能,请在下面添加:

[在这里输入内容文本]