Find more posts tagged with
Sort by:
1 - 3 of
31
The error message does not have any ^ operator pointing to the exact position where the command fails. It seems like some kind of installation issue, since I didn't even spontaneously call this function, but I'd like help to understand what exactly it is.
On top of that, the line 575 that the error mentions in file default.cfg does not it even exist, because this file only has 431 lines:
<?xml version="1.0" encoding="UTF-8"?>
Regards,
Roberta
Syntax errors, also known as parsing errors, are perhaps the most common kind of complaint you get while you are still learning Python:
>>> while True print('Hello world')
File '<stdin>', line 1
while True print('Hello world')
^
SyntaxError: invalid syntax
The parser repeats the offending line and displays a little ‘arrow’ pointing at the earliest point in the line where the error was detected. The error is caused by (or at least detected at) the token preceding the arrow: in the example, the error is detected at the function
<span>print()</span>
, since a colon (<span>':'</span>
) is missing before it. File name and line number are printed so you know where to look in case the input came from a script.thanks