pythontutor uncaught assertion failure

36 views
Skip to first unread message

Alex Jordan

unread,
Mar 10, 2021, 7:45:56 PM3/10/21
to prete...@googlegroups.com
I was attempting to play with the pythontutor example at

But I don't think it's working, and there is a console error:

> Blocked loading mixed active content “http://pythontutor.com/build/pytutor-embed.bundle.js?cc25af72af

to
(add the 's')

So I tried that and rebuilt the sample article. I got a CORS error if I tried to open it locally, so I put it up here:

[Side note: there seem to be no permalinks for Listings.]

Now it still doesn't work. Firefox says I have a console error:
Uncaught Assertion Failure
And Chrome says something similar.

Now I'm not sure where to take things.



Rob Beezer

unread,
Mar 10, 2021, 8:03:06 PM3/10/21
to prete...@googlegroups.com
"Uncaught Assertion Failure"

Aah, good to know where *that* has been coming from. (I've seen it on the
*entire* sample article built as a single web page for testing, but had not
chased it down.)

Also unsure what to do. Python Tutor has never been very well behaved. I think
Brad uses it for Runestone. Maybe he knows the root cause?

Rob
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-dev...@googlegroups.com
> <mailto:pretext-dev...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-dev/CA%2BR-jrcYzZVWQY1UOeJNT1hV71vjwtdkY1g4SN8fgP5udpHgdg%40mail.gmail.com
> <https://groups.google.com/d/msgid/pretext-dev/CA%2BR-jrcYzZVWQY1UOeJNT1hV71vjwtdkY1g4SN8fgP5udpHgdg%40mail.gmail.com?utm_medium=email&utm_source=footer>.

David Farmer

unread,
Mar 13, 2021, 11:33:34 AM3/13/21
to prete...@googlegroups.com

What if everything it working properly, but there is a bug in the
code somewhere that is triggering line 4436 in pytutor-embed.bundle.js ?

Can you replace "happy" by another example and see what happens?
(I could not see where happy came from, so I was not able to test
this myself.)

http://spot.pcc.edu/~ajordan/pytutor/happy.json
> --
> You received this message because you are subscribed to the Google Groups "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> pretext-dev...@googlegroups.com.
> .
>
>
Reply all
Reply to author
Forward
0 new messages