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

PyYAML 5.4.1 is broken, use PyYAML 5.3.1 instead #397

Open
gameoverhack opened this issue Aug 7, 2023 · 3 comments
Open

PyYAML 5.4.1 is broken, use PyYAML 5.3.1 instead #397

gameoverhack opened this issue Aug 7, 2023 · 3 comments

Comments

@gameoverhack
Copy link

gameoverhack commented Aug 7, 2023

PyYAML version 5.4.1 is causing 'pip install gradient' to fail.

See: yaml/pyyaml#724

Solution is to use 5.3.1

ie., change line 70 in setup.py from PyYAML==5.* to PyYAML==5.3.*

Collecting PyYAML==5.* (from gradient)
  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]
      running egg_info
      writing lib3/PyYAML.egg-info/PKG-INFO
      writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
      writing top-level names to lib3/PyYAML.egg-info/top_level.txt
      /private/var/folders/fd/b8flfqkj3_bf4hp3dnr1l2hh0000gn/T/pip-build-env-usxd2f4p/overlay/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.
              ********************************************************************************
@gameoverhack gameoverhack changed the title PyYAML 5.4.1 is broken, use PyYaml 5.3.1 instead PyYAML 5.4.1 is broken, use PyYAML 5.3.1 instead Aug 7, 2023
@BobbyRaduloff
Copy link

For anyone else struggling with this, until the devs fix it in the repo, you can force pip to use a different version like so:

  1. create a file called constraints.txt which contains PyYAML==5.3.*.
  2. install gradient with pip install -c constraints.txt gradient.

@bitnovus
Copy link

bitnovus commented Nov 4, 2023

Found this while trying to pip install with python 3.12.0 and 3.11.6

Use the workaround above

@pi-robot-dev
Copy link

gui is locked. will not record task

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

No branches or pull requests

4 participants