Difficulty Building thinkcspy with recent versions of runestone

21 views
Skip to first unread message

Stephen Schaub

unread,
May 14, 2020, 3:52:46 PM5/14/20
to Runestone Dev
I'm having difficulty building and running thinkcspy with recent versions of runestone.

When I install runestone using pip install runestone==4.2.3, I can build, but runestone serve produces:

error -- dynamic_pages is True, but this server does not support templates
You should update pavement.py and rebuild

When I install runestone using pip install runestone==4.2.6, runestone build produces:

module 'runestone' has no attribute 'codelens'

Help?

Stephen

Bradley Miller

unread,
May 14, 2020, 4:23:21 PM5/14/20
to runestonei...@googlegroups.com
So with 4.2.3 just modify your pavement.py file and set dynamic_pages to False. You should only set it to true if you are using a full blown runestone server.

I’m guessing that the 4.2.6 issue is due to you using Python <= 3.6 — we’ve been developing on 3.7 for 2 years, and have moved on to 3.8. I made a note in the readme to alert people to that fact. I’ve also fixed that bug but I have don’t a release since I’ve been devoting time to Runestone 5.0.0. — Actually I think that the master on GitHub right now is basically 4.2.6 + the fix that restores compatibility with Python 3.6.

Runestone 5.0.0 will become the master branch on runestone this Friday. Its a big refactoring of the components so they can come in one runestone.js file instead of 100+ small files. I made a video on how you can install the “webpack branch” — https://youtu.be/Fy0S4bGRPNE

Brad

Bradley Miller, PhD
Professor Emeritus Computer Science
Luther College

Democratizing Textbooks for the 21st Century - Please Support Runestone
--
You received this message because you are subscribed to the Google Groups "Runestone Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to runestoneinterac...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/runestoneinteractive/67109b1a-5150-4156-9993-509e33f2cf1e%40googlegroups.com.

ssc...@gmail.com

unread,
May 14, 2020, 5:13:14 PM5/14/20
to runestonei...@googlegroups.com

You’re right about 4.2.6 – I was using Python 3.6. I updated to Python 3.8 and set dynamic_pages to False, and was able to build and serve successfully. I look forward to trying out Runestone 5.

 

I appreciate your quick response.

 

While I’m at it, I would like to say that the instructor interface has really improved this past year. Keep up the great job!

 

Stephen

--
You received this message because you are subscribed to a topic in the Google Groups "Runestone Dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/runestoneinteractive/7QIYBSSNqXA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to runestoneinterac...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/runestoneinteractive/c389135b-d862-4066-a702-43b20b2aca29%40Spark.

Reply all
Reply to author
Forward
0 new messages