Creating a site using nikola + github + netlify

Hello all,

Newbie to netlify, I’m trying to reproduce the creation of a static site using nikola + github + netlify. I’ve followed the procedure in the video:

Unfortunately, I’m facing errors on deploy:

10:20:29 PM: Installing missing commands
10:20:29 PM: Verify run directory
10:20:29 PM: Executing user command: nikola build
10:20:29 PM: Scanning posts..[2020-04-26T01:20:29Z] ERROR: Nikola: In order to use YAML metadata, you must install the "ruamel.yaml" Python package.
10:20:29 PM: [2020-04-26T01:20:29Z] ERROR: Nikola: Exiting due to missing dependencies.
10:20:29 PM: Skipping functions preparation step: no functions directory set
10:20:29 PM: Caching artifacts
10:20:29 PM: Started saving pip cache
10:20:29 PM: Finished saving pip cache
10:20:29 PM: Started saving emacs cask dependencies
10:20:29 PM: Finished saving emacs cask dependencies
10:20:29 PM: Started saving maven dependencies
10:20:29 PM: Finished saving maven dependencies
10:20:29 PM: Started saving boot dependencies
10:20:29 PM: Finished saving boot dependencies
10:20:29 PM: Started saving go dependencies
10:20:29 PM: Finished saving go dependencies
10:20:33 PM: Error running command: Build script returned non-zero exit code: 5
10:20:33 PM: Failing build: Failed to build site
10:20:33 PM: failed during stage 'building site': Build script returned non-zero exit code: 5

Am I missing something? Maybe some adjustmet in the nikola forked repo must be done:

Any ideas?

Thanks in advance

Solved!

  1. Add a line in “requirements.in”: ruamel.yaml
  2. Install the package pip-tools: pip install pip-tools
  3. Run pip-compile. This will generate a new requirements.txt file
  4. Commit and Push the changes

Enjoy!

1 Like

ahh! so awesome. thanks for sharing.