Please enable JavaScript to view this site.

GeoDict User Guide 2025

Error Reporting

Learn about common error messages to debug your Python scripts. Exceptions which happen in Python code and are not caught in Python code (e.g. when you try to open a file that does not exist) trigger an error dialog box in GeoDict and terminate the execution of the macro.

In the following find error messages and their explanations for common errors.

Variables Dictionary

Note-Info

Note! Since GeoDict 2025 the variables section does not need to be a dictionary anymore, but instead can be a list of dictionaries. Thus, the errors regarding variable numbering also can be easily solved by changing the section to the new syntax. The old syntax, however, is still supported.

hmtoggle_arrow0KeyError: 'Variable#'

hmtoggle_arrow0AssertionError: NumberOfVariables does not match the number of entries in the Variables Dictionary

GeoDict Commands

hmtoggle_arrow0Command Queue: pre-checking of command no # … failed: Error while reading settings and materials for …

hmtoggle_arrow0A command with the name X:Y is not valid.

Invalid Syntax

There are many possibilities to obtain a syntax error. Some of the most common syntax errors are:

hmtoggle_arrow0SyntaxError: invalid syntax. Perhaps you forgot a comma? (macrofilepath, line)

hmtoggle_arrow0SyntaxError: invalid syntax. '{' was never closed (macrofilepath, line)

hmtoggle_arrow0SyntaxError: invalid syntax. unterminated string literal (macrofilepath, line)

hmtoggle_arrow0SyntaxError: invalid syntax. expected ':' (macrofilepath, line)

hmtoggle_arrow0IndentationError: expected an indented block (macrofilepath, line)

©2025 created by Math2Market GmbH / Imprint / Privacy Policy