Forums

Got an error when running the file

when i run file, i see the following TypeError

how could i fix it? thanks

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/bin/pythonanywhere_runner.py", line 17, in _pa_run
    for m in list(sys.modules.keys()):
TypeError: 'dict' object is not callable

hmm- out of curiosity, could you kill the console and run the file again? does that solve the error?