Dependencies for slides
diegoquintanav opened this issue · comments
I don't know if it's just me, but the instructions in slides/README.md
are not helping.
What version of python is required? By looking at slides/index.py
I can tell it's python 2, but which version? I've tried with 2.7.14
and with this environment
$ (env2714) pip list
Package Version
---------- -------
Jinja2 2.10
MarkupSafe 1.1.0
pip 18.1
PyYAML 3.13
setuptools 40.6.3
wheel 0.32.3
From the instructions,
After making changes, run
./build.sh once
; it will compile eachfoo.yml
file intofoo.yml.html
.
and I'm getting this error
./build.sh once
Traceback (most recent call last):
File "./index.py", line 143, in <module>
past_workshops.sort(key=lambda i: i["date"], reverse=True)
TypeError: can't compare datetime.date to list
I'm lost at this point. In short, my issue is
- Which python version is required to build the slides?
- Is there something I'm missing from the readme?
- Why not using a container for this workflow?
Thanks!
I've managed to get a copy working by doing the following
- Edit a
yml
file with the slides I want in - Install python 2.7.14 in a virtual environment
- source environment, and
cd
in/slides
- Build the slides with
python markmaker.py mycustom.yml > mycustomslides.html
- Serve the folder
python -m SimpleHTTPServer <port>
Same thing, I ended up writing a Dockerfile
, and using a "containerized" command to build slides.
Hi!
This error:
TypeError: can't compare datetime.date to list
... might be related to a change in the index.yaml
format to introduce time ranges. It is likely that some branches are broken, at least in the way that they generate the slides.
But!
We should definitely have a stable/reproducible way of building the slides, for sure.
I hadn't bothered with it so far because it worked out of the box on Netlify.
I'll provide something shortly!
Voilà, I added a proper Dockerfile and Compose file. Let me know if this helps!