0x727 / ShuiZe_0x727

信息收集自动化工具
3.78k stars 572 forks source link

Deprecated config in `setup.cfg` used in pyyaml@5.3.1 #165

Open ShellMars opened 1 year ago

ShellMars commented 1 year ago

错误信息

Collecting PyYAML==5.3.1 (from -r requirements.txt (line 74))
  Using cached PyYAML-5.3.1.tar.gz (269 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [48 lines of output]
      /home/asiv/anaconda3/envs/hack/lib/python3.8/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in setup.cfg
      !!

              ********************************************************************************
              The license_file parameter is deprecated, use license_files instead.

              By 2023-Oct-30, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.

              See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
              ********************************************************************************

pip install -r requirements.txt or bash build.sh fails on Python 3.8 due to deprecated setup.cfg in pyyaml 5.3.1 using license_file instead of license_files .

Materials and reference

修复建议:将requirements.txt中的

PyYAML==5.3.1

改为

PyYAML>=5.3,<7