json-schema-org/understanding-json-schema

Fix netlify build previews

Relequestual opened this issue · 6 comments

It looks like after Netlify updated their build-image from 4.4 to 4.5, the build preview is broken.

Last successful deploy preview: https://app.netlify.com/sites/lucid-bardeen-10edfb/deploys/618977f53d31ad0008c6d102
First failed deploy preview: https://app.netlify.com/sites/lucid-bardeen-10edfb/deploys/61a14281b8ff390007646a62

Line 3 identifies the build image tag.
On inspection of the changelog, I can't see what would have caused this issue.

I found one other person experiencing a similar issue on the Netlify support forums: https://answers.netlify.com/t/issues-with-netlify-python-requests/48018
The only lead seemed to be related to an Ubunto OS update, which isn't covered by the build-image minor version jump.

@jdesrosiers had a go at trying to fix the build, but had no luck: #181

Related: #165

Having battled with this for a while, I'm out of ideas.
I managed to duplicate the issue locally using Netlify's image-build.
Most of the advice I see says uninstall requests and reinstall it, but I don't see how we can do that.
It seems like the issue is urllib3 and chardet are being picked up from the system installed versions.

@jdesrosiers I re-ran the deploy previews, and we seem to have hit a different error.
I tried to make sense of it, but I can't, and I don't know if it's just becasue I don't know this side of things or I'm just run down and exhausted.

@Relequestual The error seems to be because python 3.8 is being used which isn't compatible with the code in the repo. Is it possible to tell netlify to use python 3.7?

Actually, it looks like we are using 3.8 for the local builds (which is working), so not sure why netlify is having issues.

Fixed in #181
I twas shown to be working in #183

I updated a couple things and that seems to have made Netlify happy. It's still not clear what changed to make the changes necessary, but hopefully it will stay fixed for a while.

Thanks for digging into this @jdesrosiers! 🙇‍♂️