Error deploy from github

PLEASE help us help you by writing a good post!
8:51:27 PM: build-image version: 62cfa4823f1d25ccec52411acd49f2b7f4d09e4f (noble)
8:51:27 PM: buildbot version: 2d12f611f7941175e78a4e788e4c1d626145cd0f
8:51:27 PM: Fetching cached dependencies
8:51:27 PM: Failed to fetch cache, continuing with build
8:51:27 PM: Starting to prepare the repo for build
8:51:27 PM: No cached dependencies found. Cloning fresh repo
8:51:27 PM: git clone --filter=blob:none GitHub - cubanosen/tikibar: Python Library to prepare and deploy a static version of a WordPress Installation on Netlify (Static Hosting Service Provider).
8:51:28 PM: Preparing Git Reference refs/heads/main
8:51:29 PM: Starting to install dependencies
8:51:29 PM: Python version set to 3.8
8:51:29 PM: Installing pip dependencies from requirements.txt
8:51:29 PM: Started restoring cached pip cache
8:51:29 PM: Finished restoring cached pip cache
8:51:31 PM: Collecting beautifulsoup4==4.11.1 (from -r requirements.txt (line 1))
8:51:31 PM: Downloading beautifulsoup4-4.11.1-py3-none-any.whl.metadata (3.5 kB)
8:51:31 PM: Collecting lxml>=4.9.1 (from -r requirements.txt (line 2))
8:51:31 PM: Downloading lxml-5.4.0-cp38-cp38-manylinux_2_28_x86_64.whl.metadata (3.2 kB)
8:51:31 PM: Collecting requests==2.31.0 (from -r requirements.txt (line 3))
8:51:31 PM: Downloading requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
8:51:31 PM: Collecting soupsieve>1.2 (from beautifulsoup4==4.11.1->-r requirements.txt (line 1))
8:51:31 PM: Downloading soupsieve-2.7-py3-none-any.whl.metadata (4.6 kB)
8:51:31 PM: Collecting charset-normalizer<4,>=2 (from requests==2.31.0->-r requirements.txt (line 3))
8:51:31 PM: Downloading charset_normalizer-3.4.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (35 kB)
8:51:31 PM: Collecting idna<4,>=2.5 (from requests==2.31.0->-r requirements.txt (line 3))
8:51:32 PM: Downloading idna-3.10-py3-none-any.whl.metadata (10 kB)
8:51:32 PM: Collecting urllib3<3,>=1.21.1 (from requests==2.31.0->-r requirements.txt (line 3))
8:51:32 PM: Downloading urllib3-2.2.3-py3-none-any.whl.metadata (6.5 kB)
8:51:32 PM: Collecting certifi>=2017.4.17 (from requests==2.31.0->-r requirements.txt (line 3))
8:51:32 PM: Downloading certifi-2025.4.26-py3-none-any.whl.metadata (2.5 kB)
8:51:32 PM: Downloading beautifulsoup4-4.11.1-py3-none-any.whl (128 kB)
8:51:32 PM: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 128.2/128.2 kB 5.8 MB/s eta 0:00:00
8:51:32 PM: Downloading requests-2.31.0-py3-none-any.whl (62 kB)
8:51:32 PM: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 4.5 MB/s eta 0:00:00
8:51:32 PM: Downloading lxml-5.4.0-cp38-cp38-manylinux_2_28_x86_64.whl (5.0 MB)
8:51:32 PM: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.0/5.0 MB 73.1 MB/s eta 0:00:00
8:51:32 PM: Downloading certifi-2025.4.26-py3-none-any.whl (159 kB)
8:51:32 PM: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 159.6/159.6 kB 9.0 MB/s eta 0:00:00
8:51:32 PM: Downloading charset_normalizer-3.4.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (147 kB)
8:51:32 PM: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 147.4/147.4 kB 12.7 MB/s eta 0:00:00
8:51:32 PM: Downloading idna-3.10-py3-none-any.whl (70 kB)
8:51:32 PM: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 70.4/70.4 kB 7.2 MB/s eta 0:00:00
8:51:32 PM: Downloading soupsieve-2.7-py3-none-any.whl (36 kB)
8:51:32 PM: Downloading urllib3-2.2.3-py3-none-any.whl (126 kB)
8:51:32 PM: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 126.3/126.3 kB 11.9 MB/s eta 0:00:00
8:51:32 PM: Installing collected packages: urllib3, soupsieve, lxml, idna, charset-normalizer, certifi, requests, beautifulsoup4
8:51:33 PM: Successfully installed beautifulsoup4-4.11.1 certifi-2025.4.26 charset-normalizer-3.4.2 idna-3.10 lxml-5.4.0 requests-2.31.0 soupsieve-2.7 urllib3-2.2.3
8:51:33 PM: [notice] A new release of pip is available: 24.1.2 → 25.0.1
8:51:33 PM: [notice] To update, run: pip install --upgrade pip
8:51:33 PM: Pip dependencies installed
8:51:33 PM: Ruby version set to 2.7.2
8:51:33 PM: mise go@1.19 install
8:51:33 PM: mise go@1.19 download go1.19.linux-amd64.tar.gz
8:51:35 PM: mise go@1.19 checksum go1.19.linux-amd64.tar.gz
8:51:35 PM: mise go@1.19 extract go1.19.linux-amd64.tar.gz
8:51:38 PM: mise go@1.19 go version
8:51:38 PM: mise go@1.19 go version go1.19 linux/amd64
8:51:38 PM: mise go@1.19 ✓ installed
8:51:38 PM: Go version set to 1.19
8:51:39 PM: Using PHP version 8.3
8:51:41 PM: v22.15.0 is already installed.
8:51:41 PM: Now using node v22.15.0 (npm v10.9.2)
8:51:41 PM: Enabling Node.js Corepack
8:51:41 PM: Started restoring cached build plugins
8:51:41 PM: Finished restoring cached build plugins
8:51:42 PM: Successfully installed dependencies
8:51:42 PM: Starting build script
8:51:43 PM: Detected 0 framework(s)
8:51:43 PM: Section completed: initializing
8:51:44 PM: ​
8:51:44 PM: Netlify Build
8:51:44 PM: ────────────────────────────────────────────────────────────────
8:51:44 PM: ​
8:51:44 PM: ❯ Version
8:51:44 PM: @netlify/build 32.1.3
8:51:44 PM: ​
8:51:44 PM: ❯ Flags
8:51:44 PM: accountId: 6287f9dee597192b7a1da80a
8:51:44 PM: baseRelDir: true
8:51:44 PM: buildId: 6820029a941c4c7590ef4ebe
8:51:44 PM: deployId: 6820029a941c4c7590ef4ec0
8:51:44 PM: ​
8:51:44 PM: ❯ Current directory
8:51:44 PM: /opt/build/repo
8:51:44 PM: ​
8:51:44 PM: ❯ Config file
8:51:44 PM: /opt/build/repo/netlify.toml
8:51:44 PM: ​
8:51:44 PM: ❯ Context
8:51:44 PM: production
8:51:44 PM: ​
8:51:44 PM: build.command from netlify.toml
8:51:44 PM: ────────────────────────────────────────────────────────────────
8:51:44 PM: ​
8:51:44 PM: $ python src/main.py
8:51:44 PM: DEBUG: {}
8:51:44 PM: Traceback (most recent call last):
8:51:44 PM: File “src/main.py”, line 405, in
8:51:44 PM: if isinstance(params[“archive_name”], list)
8:51:44 PM: KeyError: ‘archive_name’
8:51:44 PM: ​
8:51:44 PM: “build.command” failed
8:51:44 PM: ────────────────────────────────────────────────────────────────
8:51:44 PM: ​
8:51:44 PM: Error message
8:51:44 PM: Command failed with exit code 1: python src/main.py (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
8:51:44 PM: ​
8:51:44 PM: Error location
8:51:44 PM: In build.command from netlify.toml:
8:51:44 PM: python src/main.py
8:51:44 PM: ​
8:51:44 PM: Resolved config
8:51:44 PM: build:
8:51:44 PM: command: python src/main.py
8:51:44 PM: commandOrigin: config
8:51:44 PM: publish: /opt/build/repo/output
8:51:44 PM: publishOrigin: config
8:51:45 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2 (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)
8:51:45 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
8:51:45 PM: Failing build: Failed to build site
8:51:45 PM: Finished processing build request in 18.156s

  • We need to know your netlify site name. Example: gifted-antelope-58b104.netlify.app
  • DNS issues? Tell us the custom domain, tell us the error message! We can’t help if we don’t know your domain.
  • Build problems? Link or paste the FULL build log & build settings screenshot
  • Did you try Ask Netlify, our generative AI chatbot, before posting? It pulls info from Support Guides and recent solved forums posts.

The better the post - the faster the answer.

@manuel_alejandro The error is shown here:

Your build runs the command python src/main.py

When running src/main.py on line 405 it encounters this code:
if isinstance(params[“archive_name”], list)

For that code it encounters the error KeyError: ‘archive_name’

Presumably there is no archive_name key on the params object.

You’ll need to fix your code, or whatever it is that inserts the archive_name key/value.