Ask coding questions

← Back to all posts
Python (Turtle) External Error
Babbel (65)

Why do I get this error sometimes?
ExternalError: TypeError: /\((.*)\)/.exec(...) is null on line 2

The first two lines are
import random
import time

Doesn't look like repl.it can fix it, but I would like to know why it occurs.
Does someone know what it means?

Comments
hotnewtop
hannahbajhau1 (0)

ExternalError: TypeError: Cannot read property '$speed' of undefined on line 3

CoolqB (166)

Python (With Turtle) doesn't use the normal version of Python you're used to, instead it uses Skulpt, which is a remake of Python which runs in the browser.

Could you point me to the repl producing this error? I have a feeling this error isn't generated from line 2.

Babbel (65)

@CoolqB when i ran it on another device it worked. I had this problem in other repls too. Sometimes it works and sometimes it doesn't. So i don't think there's a problem with the code.