From 4abcce013c9ee3053badf2abda77190233066676 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Fri, 23 Feb 2024 10:35:22 +0100 Subject: Testing thoughts page --- _posts/notes/2023-09-18-aws-eb-pyyaml-fix.md | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 _posts/notes/2023-09-18-aws-eb-pyyaml-fix.md (limited to '_posts/notes/2023-09-18-aws-eb-pyyaml-fix.md') diff --git a/_posts/notes/2023-09-18-aws-eb-pyyaml-fix.md b/_posts/notes/2023-09-18-aws-eb-pyyaml-fix.md new file mode 100644 index 0000000..b1dd0cd --- /dev/null +++ b/_posts/notes/2023-09-18-aws-eb-pyyaml-fix.md @@ -0,0 +1,36 @@ +--- +title: "AWS EB PyYAML fix" +permalink: /aws-eb-pyyaml-fix.html +date: 2023-09-18T07:27:29+02:00 +layout: post +type: note +draft: false +--- + +Recent update of my system completely borked [EB CLI](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install-advanced.html) +on my machine. + +I tried installing it with `pip install awsebcli --upgrade --user` and it failed. + +The error was the following. + +```text +Collecting PyYAML<6.1,>=5.3.1 (from awsebcli) + 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 + ╰─> [68 lines of output] +``` + +To fix this issue with PyYAML you must install PyYAML separately. + +Do the following and try installing `eb` again after. + +```sh +echo 'Cython < 3.0' > /tmp/constraint.txt +PIP_CONSTRAINT=/tmp/constraint.txt pip install 'PyYAML==5.4.1' +``` -- cgit v1.2.3