pyyaml: Error installing Pyyaml==5.4, Cython_sources
I am tyring to install the 5.4 version, but I got the following output:
`Collecting pyyaml==5.4 Using cached PyYAML-5.4.tar.gz (174 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
╰─> [68 lines of output]
/private/var/folders/jq/gc3kdhbj0tg3r798nj8wlgl86xxhf9/T/pip-build-env-qbudtvrl/overlay/lib/python3.11/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)
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
Traceback (most recent call last):
File "/Users/uangutierrez/.fury/fury_venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/Users/uangutierrez/.fury/fury_venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/uangutierrez/.fury/fury_venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/jq/gc3kdhbj0tg3r798nj8wlgl86xxhf9/T/pip-build-env-qbudtvrl/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/jq/gc3kdhbj0tg3r798nj8wlgl86xxhf9/T/pip-build-env-qbudtvrl/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
self.run_setup()
File "/private/var/folders/jq/gc3kdhbj0tg3r798nj8wlgl86xxhf9/T/pip-build-env-qbudtvrl/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 338, in run_setup
exec(code, locals())
File "<string>", line 271, in <module>
File "/private/var/folders/jq/gc3kdhbj0tg3r798nj8wlgl86xxhf9/T/pip-build-env-qbudtvrl/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 107, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/jq/gc3kdhbj0tg3r798nj8wlgl86xxhf9/T/pip-build-env-qbudtvrl/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/private/var/folders/jq/gc3kdhbj0tg3r798nj8wlgl86xxhf9/T/pip-build-env-qbudtvrl/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/private/var/folders/jq/gc3kdhbj0tg3r798nj8wlgl86xxhf9/T/pip-build-env-qbudtvrl/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/private/var/folders/jq/gc3kdhbj0tg3r798nj8wlgl86xxhf9/T/pip-build-env-qbudtvrl/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 1234, in run_command
super().run_command(command)
File "/private/var/folders/jq/gc3kdhbj0tg3r798nj8wlgl86xxhf9/T/pip-build-env-qbudtvrl/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/private/var/folders/jq/gc3kdhbj0tg3r798nj8wlgl86xxhf9/T/pip-build-env-qbudtvrl/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 314, in run
self.find_sources()
File "/private/var/folders/jq/gc3kdhbj0tg3r798nj8wlgl86xxhf9/T/pip-build-env-qbudtvrl/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 322, in find_sources
mm.run()
File "/private/var/folders/jq/gc3kdhbj0tg3r798nj8wlgl86xxhf9/T/pip-build-env-qbudtvrl/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 551, in run
self.add_defaults()
File "/private/var/folders/jq/gc3kdhbj0tg3r798nj8wlgl86xxhf9/T/pip-build-env-qbudtvrl/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 589, in add_defaults
sdist.add_defaults(self)
File "/private/var/folders/jq/gc3kdhbj0tg3r798nj8wlgl86xxhf9/T/pip-build-env-qbudtvrl/overlay/lib/python3.11/site-packages/setuptools/command/sdist.py", line 104, in add_defaults
super().add_defaults()
File "/private/var/folders/jq/gc3kdhbj0tg3r798nj8wlgl86xxhf9/T/pip-build-env-qbudtvrl/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
self._add_defaults_ext()
File "/private/var/folders/jq/gc3kdhbj0tg3r798nj8wlgl86xxhf9/T/pip-build-env-qbudtvrl/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
self.filelist.extend(build_ext.get_source_files())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 201, in get_source_files
File "/private/var/folders/jq/gc3kdhbj0tg3r798nj8wlgl86xxhf9/T/pip-build-env-qbudtvrl/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
raise AttributeError(attr)
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.
note: This error originates from a subprocess, and is likely not a problem with pip.`
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 275
- Comments: 92 (2 by maintainers)
Links to this issue
Commits related to this issue
- fix: workaround for https://github.com/yaml/pyyaml/issues/724 — committed to Updater/action-yamllint by acobaugh a year ago
- Fix docker builds for Ubuntu 22.04 Python dependency snafus mean we have to constrain pyyaml to an older version, see: https://github.com/yaml/pyyaml/issues/724 — committed to buildkite/agent by moskyb a year ago
- Fixed error with Pyyaml version https://github.com/yaml/pyyaml/issues/724 — committed to KhaosResearch/mlops-landcoverpy by AmbroxMr a year ago
- Fixed error with Pyyaml version https://github.com/yaml/pyyaml/issues/724 — committed to KhaosResearch/mlops-landcoverpy by AmbroxMr a year ago
- Fixed error with Pyyaml version https://github.com/yaml/pyyaml/issues/724 — committed to KhaosResearch/mlops-landcoverpy by AmbroxMr a year ago
- ⬆️ Upgrade PyYaml to 6.0.1 This works around a bug when installing PyYaml >=5.4.1,<6.0.1 ever since Cython 3.0 has been released. PyYaml 6.0.1 pins Cython to a version less than 3.0 which resolves ... — committed to OctoPrint/OctoPrint by foosel a year ago
- Pin PyYAML to version 5.3.1 Temporary workaround for issue in PyYAML 5.4.1. See https://github.com/yaml/pyyaml/issues/724 Signed-off-by: Jacopo De Amicis <jdamicis@amazon.it> — committed to jdeamicis/aws-parallelcluster by jdeamicis a year ago
- Pin PyYAML to version 5.3.1 Temporary workaround for issue in PyYAML 5.4.1. See https://github.com/yaml/pyyaml/issues/724 Signed-off-by: Jacopo De Amicis <jdamicis@amazon.it> — committed to aws/aws-parallelcluster by jdeamicis a year ago
- Removed Python 3.12 from test pipeline due to https://github.com/yaml/pyyaml/issues/724 — committed to uploadcare/pyuploadcare by evgkirov a year ago
- Updated the PyYAML package in pull-secret-example to include patch fix see https://github.com/yaml/pyyaml/issues/724#issuecomment-1639579725 Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.co... — committed to secureCodeBox/secureCodeBox by Ilyesbdlala a year ago
- fix: pin PyYAML==5.3.1 https://github.com/yaml/pyyaml/issues/724 — committed to mirta-com/aziona-cli by fabio-bianchi a year ago
- Updated the PyYAML package in pull-secret-example to include patch fix see https://github.com/yaml/pyyaml/issues/724#issuecomment-1639579725 Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.co... — committed to secureCodeBox/secureCodeBox by Ilyesbdlala a year ago
- Pin PyYAML<5.3 Looks like the particular issue is caused by a new release of Cython which breaks PyYAML builds. yaml/pyyaml#724 https://github.com/yaml/pyyaml/issues/724 Pinning PyYAML to earlier ver... — committed to aiidateam/aiida-core by unkcpz a year ago
- change pyyaml version See https://github.com/yaml/pyyaml/issues/724 — committed to VlachosGroup/AIMSim by JacksonBurns a year ago
- Troubleshoot pyyaml installation per https://github.com/yaml/pyyaml/issues/724 — committed to NeonGeckoCom/NeonCore by NeonDaniel a year ago
- Fix pyyaml version This is related to the recent release of Cython 3.0.0. See https://github.com/yaml/pyyaml/issues/724 Fixes #1891 — committed to open-telemetry/opentelemetry-python-contrib by ocelotl a year ago
- More pyyaml troubleshooting https://github.com/yaml/pyyaml/issues/724 — committed to NeonGeckoCom/NeonCore by NeonDaniel a year ago
- More pyyaml troubleshooting https://github.com/yaml/pyyaml/issues/724 — committed to NeonGeckoCom/NeonCore by NeonDaniel a year ago
- Hack for cython/pyyaml issue Fighting upstream issues: https://github.com/yaml/pyyaml/issues/724 https://github.com/yaml/pyyaml/issues/601 Signed-off-by: Andy Doan <andy@foundries.io> — committed to doanac/jobserv by doanac a year ago
- Hack for cython/pyyaml issue Fighting upstream issues: https://github.com/yaml/pyyaml/issues/724 https://github.com/yaml/pyyaml/issues/601 Signed-off-by: Andy Doan <andy@foundries.io> — committed to doanac/jobserv by doanac a year ago
You can use PyYaml 5.3.1 until the issue is resolved.
Affecting us too and our security policy won’t let us downgrade to 5.3 because of pre-5.4 vulnerabilities
But
pip install "cython<3.0.0" && pip install --no-build-isolation pyyaml==6.0
did work (as per the linked issue)You can also upgrade to 6.0.1, which pins the Cython < 3.0.0.
We cannot use PyYAML 5.3 due to dependencies requiring 5.4. On Python 3.10+3.11, using PyYAML 6.0 also works, because it provides wheel archives for these Python versions.
Is there a way to have PyYAML use Cython<3 for its installation?
Cython 3.0 came out since Friday.
If you have a dependency that depends on PyYAML 5.4.1 you can install these before:
pip3 install wheel -v
pip3 install "cython<3.0.0" pyyaml==5.4.1 --no-build-isolation -v
Cython 3 was released 4 hours ago: https://pypi.org/project/Cython/3.0.0/#history
This coincides with when our PyYAML 6.0.0 installs via Poetry in Alpine Linux containers started failing. 😢
A little recap, do correct me if I’m wrong:
If PyYAML is your own dependency or your dependencies support PyYAML~=6
6.0.1
.5.3.1
(NOT RECOMMENDED due to security issues. Consider updating Python.)If your problem is related to awscli
1.29.4
, do so.If your problem is related to aws-sam-cli or another package which requires PyYAML < 6
pip install "cython<3.0.0" wheel && pip install pyyaml==5.4.1 --no-build-isolation
wheel
; that might be dependent on your preinstalled packages; on CI, I needed to include it.setuptools
alongsidewheel
.Given the 5.3.1 work around has CVE: https://github.com/advisories/GHSA-8q59-q68h-6hv4 When will an updated release be available and what version do you anticipate it being?
Confirm. Upgrading to 6.0.1 helped me too!
This has broken Python 3.12 as well; there aren’t pre-built wheels for 3.12 yet (ABI is now supposed to be stable as of beta 4, so you can add them 😉 )
Setting:
Does work for now on 3.12.
The steps outlined in the post worked for me to get docker-compose working on arm64
I just had the same issue with pyyaml 6.0.0
Duplicate of https://github.com/yaml/pyyaml/issues/723?
https://stackoverflow.com/questions/77490435/attributeerror-cython-sources/77491847#77491847
Out of curiosity, any chance of https://github.com/yaml/pyyaml/pull/702 being merged in soon, or should everybody go ahead and implement local workarounds? There are quite a few projects relying on PyYaml to be working…
That actually fixed the issue for me. Thanks a lot!
Thanks @luabida ! Should we backport https://github.com/yaml/pyyaml/pull/702 for
PyYAML>=5.4,<6
for a more permanent workaround/fix?Tested this on Python 3.10 image, works as expected.
Please do not use this version. PyYAML version 5.3.1 is associated with CVE-2020-14343 that was fixed in version 5.4.
Instead use 6.0.1
Thanks @olliemath, your command saved the day. It also works with PyYaml < 6.0, and now I can at least move forward with the environment installation:
pip install "cython<3.0.0" && pip install --no-build-isolation "pyyaml<6.0"
Freezing pyyaml to 5.3.1 and 6.0.1 solves the issue. I prefer 6.0.1.
that is one of the reasons we started to work on a rebundle of the docker-compose v2: https://pypi.org/project/compose-go/
cc @luabida
With python version 3.11 you can use PyYAML 5.4.1 and above with no problem, but you might check the dependencies in other libraries
6.0.1 solved this by capping Cython < 3. So you want Cython < 3 until the next release of pyyaml. Use Cython < 3 until a new pyyaml release with a proper fix is out.
Apologies if you took anything personal, I didn’t mean anything personal, and the rapidity of response in getting a 6.0.1 (after Cython 3.0 came out) was excellent. I personally didn’t call for any 5.x releases (at least I’m pretty sure I didn’t, don’t know why I would), I was just showing workarounds that could be used to fix those releases. I’m just a bit frustrated when I see the response to “we’ve known this would break for six months” is “let’s cap things we don’t know are going to break and make it impossible for people who know what they are doing to use our software so people who don’t know how to build code won’t bother us”. As you can tell from my blog post, it’s a pet peeve, and not at all personal. 😃
BTW, breakages caused by capping (most breakages above are due to capping pyyaml < 6, by the way!), can’t be fixed like this. And “normal” systems, ones that have binary wheels, are absolutely fine. They don’t need Cython or setuptools. It’s entirely “weird” systems (not Python 3.18, I’m referring to Python 3.13, or Python 3.9 running on some new architecture, or the next macOS, or the next package manager, or the next brew update, etc.) that are building from binary.
Again, absolutely, thank you for 6.0.1, 99% of users didn’t even know something broke since they were using the wheels you provide, don’t let the 1% get you down!
@henryiii I hate it too (and yes, I understand the tradeoffs), but after recent events and the prospect of an endless line of setuptools breakages preventing future installs on everything we’ve ever shipped, I’ll choose continued build stability of released code over “look ma, I can build this 5 year old release of PyYAML on Python 3.18!”. Clearly your average Python user/dev doesn’t understand this stuff well enough (nor should they need to?) to figure out how to constrain a build for an old version once it’s been broken by a newly-released build dep. If it worked yesterday, it should work today… Of course there will be situations where capped releases will cause problems too, but I’d rather re-release the latest branch a hundred times doing nothing but moving build-dep pins than try to keep binary builds on non-Linux OSs functioning for old branches until the heat death of the universe.
You seem to be conflating “keeping new releases/unreleased things working with bleeding-edge build deps” with “keeping already-released code building reliably” when they’re nearly completely unrelated activities with competing goals. Life gets really difficult trying to reconstruct binary wheel builds for non-pure Python wheels on ancient Python/Windows/Mac versions when all publicly-available infra for building those things has rotted/disappeared. I’ve been following the Cython 3 progress for a long time, but clearly I missed that the release was actually occurring. In any case, that problem was handled in pretty short order. That has absolutely zero to do with every other release we’ve ever shipped since going to PEP517 being broken, since I don’t have a time machine.
The loudest voices here continue to shout “fix my problem by re-releasing old stuff- I don’t care who else it breaks”- IMO that’d be a pretty irresponsible approach.
… and on a personal note, thanks for the ego boost after a crappy couple of weeks. I know you understand, so I really didn’t expect that from you. 😐
I’m closing this issue, and will close everything else related to releases or backports on older branches of PyYAML- there are plenty of workarounds available, and we’re in a known state of stability at the moment. When setuptools starts breaking stuff too, the same workarounds should apply.
The way to fix this for packages that can’t use 6.0.1 is the following:
For example:
That’s how you can fix this as a user. You can’t fix a cap (like
pyyaml<6
) as a user. Binaries are still fine, of course, so this needs to be on a system that doesn’t have binaries (like alpine, or above I just required pip to not see the binary).This really needs to be fixed soon, though, as Cython 3 was a major rewrite and I’d expect package to start requiring it (I already know some that were requiring the alphas!), and I’d also rather expect some future version (maybe Python 3.13) to not be supported by Cython 0.
Now I’m going to go cry about how this example made me run Python 2, I think for the first time this year…
No, it’s not fixed yet. There are many packages that depends on
PyYAML>=5.4,<6
thus all the traffic in this issue. See also https://github.com/yaml/pyyaml/pull/726.I also would like to share with you our fix for this issue, hoping it will help others and maybe adopted officially by the maintainers and pushed to pypi to close this issue:
We have an internal python package repository, so we could publish
5.4.2
internally to fix this issue. We have users of Python 3.9 that are not effected by this issue (because binary wheels are available), but also Python>=3.10 that are.As @nitzmahone noted in https://github.com/yaml/pyyaml/pull/726#issuecomment-1640397938 we also wanted to be extra cautious and to make sure we don’t break anything for Python3.9 users.
So here’s what I did:
5.4.1
sdist from pypi Extracted it and made the following changes5.4.1
with5.4.2
in all the relevant files.pyproject.toml
(requires = ["setuptools", "wheel", "Cython<3.0"]
).PyYAML-5.4.2.tar.gz
. download link5.4.1
wheels as before.Here’s the output for
diff PyYAML-5.4.1/ PyYAML-5.4.2/
:Yea seems like now things are going to break more loudly for others since Cython3 was released.
it works using PyYAML~=6.0
For me, this is still failing with upgrading to
PyYAML
to6.0.1
and Cython 3.0.0. I am calling it aspip-tools
withpip-compile
What’s the next step for me? I am using Python 3.8 for upgrading a legacy repo and cannot upgrade Python to newer version yet.
OS: macOS 13.5 (22G74) Platform: Macbook Pro Processor: Apple M1 Max
If it helps had the same issue yesterday with pyyaml==6.0, I upgraded to 6.0.1 and it seemed to work (others have also reported this makes it work https://github.com/labgrid-project/labgrid/pull/1240). I am unable to find changelogs for 6.0.1 so would not be able to explain why it works with this version but it definitely solved my issue 😃
6.0.1 can support python3 user, but python2.7 support is removed in 6.0.0,so python2.7 user needs a fix in 5.4.x
We are experiencing the same issue today with
pyyaml@5.4.1
. What I don’t understand yet is why we were able to install this version on Friday and not today? What has changed since Friday?On Friday:
Today:
Failed to install /home/vscode/.cache/pypoetry/artifacts/b6/23/45/f5dfdd6e8ba0f620504858ddeb20b47f50b03d0c4b18f873f6575d2e78/PyYAML-5.4.1.tar.gz
Both are duplicates of https://github.com/yaml/pyyaml/issues/601. This has been on the horizon for a long time apparently.
We have the same problem when using python 3.12. On python 3.11 works OK.
if u are using pipenv try :
pip install “cython<3.0.0” wheel pipenv install Cython==0.29.37 pipenv run pip3 install --no-build-isolation pyyaml==6.0 then check with : pipenv run pip list | grep PyYAML pipenv run python3 -c “import yaml; print(yaml.version)”
Thanks! Fixed. Also see https://github.com/yaml/pyyaml/issues/724#issuecomment-1650538427 above.
I would absolutely not recommend this. Read https://iscinumpy.dev/post/bound-version-constraints/. This bug wasn’t too bad because user’s could work around it for older versions with the
PIP_CONSTRAINT
method. You can’t work around a broken upper cap! If you pin something, especially setuptools which regularly releases new major versions and provides no support to older versions, then you are basically guaranteed to make older versions eventually uninstallable when things outside your control (Python, architectures, or OS’s, for example - exactly the reason you are not getting a wheel in the first place!) update. Or if there’s a CVE. You should treat “x<2” equivalent to using library that is abandoned unless “x<2” is still updated after “x>=2” is released. Which is very rarely the case in they Python ecosystem.Another problem with pinning build dependencies, is that some ecosystems (Pyodide, Spack, etc) build a single setuptools version, and all projects have to use that. You don’t get to pick just one unless it’s the pre-built one.
Instead, you should enable all warnings as errors, possibly test dev releases in CI, and fix things promptly if they show up. Setuptools (and Cython, etc) should be producing warnings you are using something that is going away.
It’s easy to add a constraint if something breaks, and it’s important to quickly respond if there’s breakage - in this case, pyyaml had six months with the open report to avoid the issue and make a fixed release before any normal user broke.
@farazoman yep, as I’ve mentioned in some other places, it will almost certainly be an issue as
setuptools
in particular has plans to start removing deprecated functionality in the coming months, so old versions of the project will once again require external constraints or other hackery to build (also another reason that we’re probably not going to re-release old versions of the project, as it’ll potentially be an endless game of whack-a-mole).The likely plan is that as we add support for new Python versions, the release tags will also cap all build deps to “latest known working versions” in the build metadata to prevent these kinds of problems going forward. That has a lot of other implications that are somewhat incompatible with the historic dev/branch model this project uses, so we’re working through possibly changing to a more standard “main == development” branch model where we’d leave the development branch deps uncapped to be able to detect problems with newly-release build deps more quickly.
Looks like this issue was resolved in the 6.0.1 release.
This was the magic fix that they included: https://github.com/yaml/pyyaml/commit/ae08bdc82b4ddfcd2b93c8aedcd1963766c3307d#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711R2
I’m not sure if the maintainers read the issues (since almost 200 are unresolved). The commit they provided looked like they were updating their CI/CD. So I suspect it started to fail and they updated it for themselves, unaware of the impact that this issue had.
Either way, it looks like you can pull
~6.0
orlatest
again safely. @MeliJuanmi could probably mark this issue resolvedHi again @realFranco,
Alright, still, thanks for the help !
Have a great day.
Hello @LouissXI ,
Unfortunately no, I add it as a disclaimer and expose the consequences of install the package in that version.
@NeonDaniel you’re missing build isolation. Pip will not use your environment for building a wheel unless you explicitly tell it to use
--no-build-isolation
.Not sure what I’m missing here, but I’m getting the same exceptions when explicitly installing
cython<3.0.0
beforepyyaml~=5.4
https://github.com/NeonGeckoCom/NeonCore/actions/runs/5590442924/jobs/10220174498Found this in the thread which worked to patch things, hopefully only temporarily.
Was able to fix this by updating to the latest awscli v1(1.29.4) as it was a dependency for awscli. This pinned pyyaml to v 6.0.1
That’s exactly what was done:
https://github.com/yaml/pyyaml/blob/release/6.0/pyproject.toml
(FYI, you don’t need
"wheel"
there)Long term the fix is to fix the issue with Cython, as I’m sure people will want Cython 3 (and Cython 0.x will probably not support an upcoming version of Python if they don’t back port fixes).
The same issue with
docker-compose
Python dependency.Mostly in our case we removed pyyaml