Site builds fine on Ubuntu 20.04, fails on 24.04

Did you try Ask Netlify, our generative AI chatbot, before posting? It pulls info from Support Guides and recent solved forums posts.

  • Yes. Not useful.

Hello,

-Possible for python version mismatch.
-Specify a supported version of Python in Netlify
-LaTeX / Pandoc / system dependencies missing

-Node.js version changes

-Your local environment is not matching Netlify’s runtime

1 Like

It looks like I wasn’t allowed to include the link in the above question (or it got removed?) - this is the GH issue I’m referring to: [BUG]: Netlify build fails on Ubuntu Noble 24.04 · Issue #4307 · the-turing-way/the-turing-way · GitHub

The issue was resolved here: Ubuntu noble builds by JimMadge · Pull Request #4363 · the-turing-way/the-turing-way · GitHub

Quote from above:

Using the noble image, pip packages are installed to a directory that is not on $PATH. This is possibly because Netlify assumes the project is an NPM build as no Python dependencies file was found.
Netlify expects Python dependencies in a file called requirements.txt, located at the build root.
This PR renames the requirements files to be consistent with the pip-tools defaults and in line with what Netlify expects, so the noble builds pass.