aboutsummaryrefslogtreecommitdiff
path: root/_posts/2023-09-18-aws-eb-pyyaml-fix.md
diff options
context:
space:
mode:
Diffstat (limited to '_posts/2023-09-18-aws-eb-pyyaml-fix.md')
-rw-r--r--_posts/2023-09-18-aws-eb-pyyaml-fix.md36
1 files changed, 36 insertions, 0 deletions
diff --git a/_posts/2023-09-18-aws-eb-pyyaml-fix.md b/_posts/2023-09-18-aws-eb-pyyaml-fix.md
new file mode 100644
index 0000000..b1dd0cd
--- /dev/null
+++ b/_posts/2023-09-18-aws-eb-pyyaml-fix.md
@@ -0,0 +1,36 @@
1---
2title: "AWS EB PyYAML fix"
3permalink: /aws-eb-pyyaml-fix.html
4date: 2023-09-18T07:27:29+02:00
5layout: post
6type: note
7draft: false
8---
9
10Recent update of my system completely borked [EB CLI](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install-advanced.html)
11on my machine.
12
13I tried installing it with `pip install awsebcli --upgrade --user` and it failed.
14
15The error was the following.
16
17```text
18Collecting PyYAML<6.1,>=5.3.1 (from awsebcli)
19 Using cached PyYAML-5.4.1.tar.gz (175 kB)
20 Installing build dependencies ... done
21 Getting requirements to build wheel ... error
22 error: subprocess-exited-with-error
23
24 × Getting requirements to build wheel did not run successfully.
25 │ exit code: 1
26 ╰─> [68 lines of output]
27```
28
29To fix this issue with PyYAML you must install PyYAML separately.
30
31Do the following and try installing `eb` again after.
32
33```sh
34echo 'Cython < 3.0' > /tmp/constraint.txt
35PIP_CONSTRAINT=/tmp/constraint.txt pip install 'PyYAML==5.4.1'
36```