netlify/build

bug: Error in netlify deploy builds because initializing python venv fails

Closed this issue ยท 2 comments

Describe the bug

Netlify builds fail right now because in the Initializing step the python venv setup fails:

Error is in https://github.com/netlify/build-image but it is a read-only archive now.

Steps to reproduce

Setps:

  • Set up a new site in netfliy with Ubuntu 20.04
  • Create a github repo with a nuxt project
  • Trigger a build

Configuration

No response

Deploy logs

Full log is here

10:13:29 AM: build-image version: 4b067841aaa59ef71931d3505b98c2bc3e63f36f (focal)
10:13:29 AM: buildbot version: cb022b5c389c78cd673ed1d1d88df2933edea03f
10:13:29 AM: Building without cache
10:13:29 AM: Starting to prepare the repo for build
10:13:30 AM: No cached dependencies found. Cloning fresh repo
10:13:30 AM: git clone --filter=blob:none https://github.com/hegerdes/HomePage
10:13:30 AM: Preparing Git Reference refs/heads/main
10:13:33 AM: Starting to install dependencies
10:13:33 AM: /opt/build-bin/run-build-functions.sh: line 325: /opt/buildhome/python3.9/bin/activate: No such file or directory
10:13:33 AM: Error setting python version from the PYTHON_VERSION environment variable
10:13:33 AM: Please see https://github.com/netlify/build-image/blob/focal/included_software.md for current versions
10:13:33 AM: Build was terminated: dependency_installation script returned non-zero exit code: 1
10:13:33 AM: Failed during stage 'Install dependencies': dependency_installation script returned non-zero exit code: 1
10:13:33 AM: Failing build: Failed to install dependencies

Hey @hegerdes ๐Ÿ‘‹

Seems like your build in specific is using a python version we currently don't support (python 3.9) you can check the list of available software at build time in - https://docs.netlify.com/configure-builds/available-software-at-build-time/

I took a brief look at your site and seems like you have a PYTHON_VERSION environment variable set to 3.9. You should be able to either use one of our supported versions or remove that env var entirely if you're not doing anything specific with python.

Closing this.

Thanks for the Tipp @JGAntunes ๐Ÿ‘Œ
I have had the env set for over 3 months and it always worked until yesterday. Removed it now and it works again.

Would be nice to update your deps, not much choice and there are some pretty dated version in the build env.