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

Cython latest 3.0 version resulting in pip installation error for PyYAML package #288

Closed
tiendatphan opened this issue Aug 16, 2023 · 0 comments · Fixed by TOSIT-IO/tdp-lib#409

Comments

@tiendatphan
Copy link

When running the setup script on environment with up-to-date Python, the latest Cython version (3.0.0) causing the following error while installing PyYAML package:

`
Collecting PyYAML<6.0.0 (from tdp-lib@ git+https://github.com/TOSIT-IO/[email protected]>tdp-server==0.1.0)
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]
/tmp/pip-build-env-peey6o5u/overlay/lib/python3.10/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.
          ********************************************************************************
  
  !!
    parsed = self.parsers.get(option_name, lambda x: x)(value)

`

There are several discussions recently mentioning this error and the solution to fix it:
yaml/pyyaml#736 - The ticket on PyYAML repo
https://discuss.python.org/t/getting-requirements-to-build-wheel-did-not-run-successfully-exit-code-1/30365 - a generic Python discussion forum

The solution proposed is to add a constraints.txt file that limit the version of Cython to be below 3.0.0.

This file will remain useful later for further constraints regarding other packages.

tiendatphan added a commit to tiendatphan/tdp-getting-started that referenced this issue Aug 16, 2023
…e setup.sh script passes this constraints to pip when installing packages to venv folder.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant