I updated the build image in the Netlify UI to Focal.
Previously I used Xenial. After reading this document I removed
runtime.txt because I was under the impression that Python 3.8 is supposed to be the default.
default implies to me, that I don’t have to override the Python version.
All builds fail if I don’t set
PYTHON_VERSION=3.8. Am I missing something?
Looking at the
build.log, it doesn’t seem like I’m using focal at all. It would be really nice if you could include a print statement near the top because
build-image-version don’t tell me anything at first glance.
I think this build runs Focal, because if I do
PYTHON_VERSION=3.7 the build continues to fail. Only when I set
PYTHON_VERSION=3.8 the build completes successfully.
My site’s name is
7:56:33 AM: Build ready to start 7:56:36 AM: build-image version: 081db65c3e4ce8423fedb40e7689a87de6f84667 7:56:36 AM: build-image tag: v4.3.1 7:56:36 AM: buildbot version: 407a98ff60139d85f01f4f8453046e19d02bbcfd 7:56:36 AM: Building without cache 7:56:36 AM: Starting to prepare the repo for build 7:56:36 AM: No cached dependencies found. Cloning fresh repo 7:56:36 AM: git clone https://github.com/kai687/sphinxawesome-theme 7:56:38 AM: Preparing Git Reference pull/598/head 7:56:38 AM: Parsing package.json dependencies 7:56:39 AM: Starting build script 7:56:39 AM: Installing dependencies 7:56:39 AM: Python version set to 2.7 7:56:40 AM: Downloading and installing node v10.24.1... 7:56:40 AM: Downloading https://nodejs.org/dist/v10.24.1/node-v10.24.1-linux-x64.tar.xz... 7:56:40 AM: Computing checksum with sha256sum 7:56:40 AM: Checksums matched! 7:56:43 AM: Now using node v10.24.1 (npm v6.14.12) 7:56:43 AM: Started restoring cached build plugins 7:56:43 AM: Finished restoring cached build plugins 7:56:43 AM: Attempting ruby version 2.6.2, read from environment 7:56:44 AM: Required ruby-2.6.2 is not installed - installing. 7:56:45 AM: Searching for binary rubies, this might take some time. 7:56:45 AM: Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/20.04/x86_64/ruby-2.6.2.tar.bz2 7:56:45 AM: Checking requirements for ubuntu. 7:56:45 AM: Requirements installation successful. 7:56:45 AM: ruby-2.6.2 - #configure 7:56:45 AM: ruby-2.6.2 - #download 7:56:46 AM: ruby-2.6.2 - #validate archive 7:56:48 AM: Canceling deploy 7:56:53 AM: ruby-2.6.2 - #extract 7:56:57 AM: ruby-2.6.2 - #validate binary 7:56:58 AM: ruby-2.6.2 - #setup 7:56:58 AM: sh: 0: getcwd() failed: No such file or directory 7:56:58 AM: sh: 0: getcwd() failed: No such file or directory 7:56:59 AM: ruby-2.6.2 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.6.2@global 7:56:59 AM: ruby-2.6.2 - #importing gemset /opt/buildhome/.rvm/gemsets/global.gems........................................ 7:56:59 AM: ruby-2.6.2 - #generating global wrappers............... 7:56:59 AM: Error running 'run_gem_wrappers regenerate', 7:56:59 AM: please read /opt/buildhome/.rvm/log/1632203819_ruby-2.6.2/gemset.wrappers.global.log 7:56:59 AM: ruby-2.6.2 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.6.2 7:56:59 AM: ruby-2.6.2 - #importing gemsetfile /opt/buildhome/.rvm/gemsets/default.gems evaluated to empty gem list 7:57:00 AM: ruby-2.6.2 - #generating default wrappers............... 7:57:00 AM: Error running 'run_gem_wrappers regenerate', 7:57:00 AM: please read /opt/buildhome/.rvm/log/1632203819_ruby-2.6.2/gemset.wrappers.default.log 7:57:00 AM: shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory 7:57:00 AM: shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory 7:57:00 AM: Execution cancelled 7:57:00 AM: Error running command: Command was cancelled 7:57:00 AM: Failing build: Failed to build site 7:57:00 AM: Finished processing build request in 24.337018707s