AWS EB PyYAML fix

note, Sep 18, 2023, on Mitja Felicijan's blog

Recent update of my system completely borked EB CLI on my machine.

I tried installing it with pip install awsebcli --upgrade --user and it failed.

The error was the following.

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.

echo 'Cython < 3.0' > /tmp/constraint.txt
PIP_CONSTRAINT=/tmp/constraint.txt pip install 'PyYAML==5.4.1'


Other notes