Duckapple / Kat

Kattis shell for getting examples, testing and submitting.
19 stars 6 forks source link

Exception: "'dict' object has no attribute 'set'" #70

Closed samsapti closed 3 years ago

samsapti commented 3 years ago

Bug description

The bug occurs on running kat startup after entering something in step 2. This happens no matter what I type (tried with blank, "python" and "java").

Traceback (most recent call last):
  File "/usr/bin/kat", line 40, in main
    execCommand[command](data)
  File "/path/to/Kat/commands/startup.py", line 44, in startupCommand
    result = v['fn']()
  File "/path/to/Kat/commands/startup.py", line 30, in languageStep
    cfg.set("kat", "language", language if language.lower() in allLangs else lang)
AttributeError: 'dict' object has no attribute 'set'

Error occurred:
 'dict' object has no attribute 'set'

Also, when running kat test <problem>, I get this error (tried with several problems, others don't have this issue):

Error: Could not find or load main class 
Caused by: java.lang.ClassNotFoundException:

System information

All dependancies are installed.