Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated setup.cfg used in [email protected] version not compatible with Python versions 3.10 and above #9949

Closed
ghost opened this issue Aug 31, 2023 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Aug 31, 2023

Description

pip install -r requirements.txt fails on Python 3.10 and 3.11 due to deprecated setup.cfg in pyyaml 5.4.1 using license_file instead of license_files . According to PyYaml this problem was fixed and recommended version is 6.0.1.
Fixing this issue may require to update requirements to accept pyyaml>=5.4.1.

Materials and reference

yaml/pyyaml#724

Environment

  • How do you deploy Kubeflow Pipelines (KFP)? Private fork
  • KFP version: 1.8.19
  • KFP SDK version: 1.8.22

Steps to reproduce

$ pip install -r requirements.txt

Collecting PyYAML==5.4.1 (from -r requirements.txt (line 43))
  Using cached .../PyYAML-5.4.1.tar.gz (175 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [62 lines of output]
      .../python3.9/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.
              ********************************************************************************
      
      !!

     ...

      AttributeError: cython_sources
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

Expected result

pip install -r requirements.txt installs all dependencies successfully.

Labels


Impacted by this bug? Give it a 👍.

@ghost ghost added the kind/bug label Aug 31, 2023
@ghost ghost changed the title [bug] <Bug Name> Deprecated setup.cfg used in [email protected] version not compatible with Python versions ^3.10 Aug 31, 2023
@ghost ghost changed the title Deprecated setup.cfg used in [email protected] version not compatible with Python versions ^3.10 Deprecated setup.cfg used in [email protected] version not compatible with Python versions 3.10 and above Aug 31, 2023
@connor-mccarthy
Copy link
Member

This is fixed. See requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant