Error with Python command

New Altair Community Member
Updated by robertavarela
Hello,
When I load the Python command window in v2019.2 of Compose, I get the following error when typing help('modules'):
Although this error pops up, I am able to see the installed modules when I hit OK. But why is this error happening? How to avoid it?
Thanks,
Roberta
Sort by:
1 - 3 of
31

New Altair Community Member
OPUpdated by robertavarela
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