m-s-abeer / vjudge-to-oj

Import your vJudge solutions to actual online judges. Currently supports UVa, CodeForces, SPOJ, and CodeForces GYM.
MIT License
59 stars 10 forks source link

Wrong extensionId on codeforces #8

Closed TRSWNCA closed 3 years ago

TRSWNCA commented 3 years ago

Message here:

Trying Problem: 1210A - Anadi and Domino, 0
Traceback (most recent call last):
  File "/home/cyc/Downloads/vjudge-to-oj-master/main.py", line 45, in <module>
    cfUser.submitAll(submitSolvedOnes = False, limitSubmissionCount = 10)
  File "/home/cyc/Downloads/vjudge-to-oj-master/modules/judges.py", line 379, in submitAll
    sid = str(self.submitSolution(solve))
  File "/home/cyc/Downloads/vjudge-to-oj-master/modules/judges.py", line 402, in submitSolution
    self.br.form.find_control(name="programTypeId").value = [self.extentionId[solution.solutionExt]]
  File "/home/cyc/.local/lib/python3.9/site-packages/mechanize/_form_controls.py", line 1130, in __setattr__
    self._set_value(value)
  File "/home/cyc/.local/lib/python3.9/site-packages/mechanize/_form_controls.py", line 1149, in _set_value
    self._single_set_value(value)
  File "/home/cyc/.local/lib/python3.9/site-packages/mechanize/_form_controls.py", line 1172, in _single_set_value
    on, off = self._get_items(value[0])
  File "/home/cyc/.local/lib/python3.9/site-packages/mechanize/_form_controls.py", line 1156, in _get_items
    raise ItemNotFoundError("insufficient items with name %r" %
mechanize._form_controls.ItemNotFoundError: insufficient items with name '42'

thought that was the extensionID error.