tumblelog
tumblelog copied to clipboard
ModuleNotFoundError: No module named 'yaml'
Hello.
I was looking for a static site generator and found this software.
When I tried it, I found that it requires PyYAML
on my environment.
The environment is Debian sid amd64.
$ python3 tumblelog.py --template-filename tumblelog.html \
--output-dir htdocs/ \
--author 'Test' --name 'Test Blog' --description 'This is a test' \
--blog-url 'http://localhost:8000/' --css steel.css \
tumblelog.md
Traceback (most recent call last):
File "/home/matoken/src/tumblelog/tumblelog.py", line 16, in <module>
import yaml
ModuleNotFoundError: No module named 'yaml'
I was able to install it by following these steps.
$ git diff README.md
diff --git a/README.md b/README.md
index c73b036..4931be4 100644
--- a/README.md
+++ b/README.md
@@ -31,9 +31,10 @@ Then:
git clone https://github.com/john-bokma/tumblelog.git
cd tumblelog
python3 -m venv venv
+source venv/bin/activate
pip3 install commonmark
pip3 install regex
-source venv/bin/activate
+pip3 install PyYAML
mkdir htdocs