m-s-abeer / vjudge-to-oj Goto Github PK
View Code? Open in Web Editor NEWImport your vJudge solutions to actual online judges. Currently supports UVa, CodeForces, SPOJ, and CodeForces GYM.
License: MIT License
Import your vJudge solutions to actual online judges. Currently supports UVa, CodeForces, SPOJ, and CodeForces GYM.
License: MIT License
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.
When running main.py
, it shown an error FileNotFoundError: [WinError 3] that says "The system cannot find the path in modules\solutions\Gym and there is no folder generated named Gym
.
In the current solution, we're updating main.py
directly to insert raw credentials. Not good! It requires you to clean it up before taking the latest pull and the credentials shouldn't be put into an actual source code file.
The next approach is going to be:-
env.example
file containing credential format and if the profile will be used actively for the next run.env.example
to .env
file and insert their credentials there..env
to determine which profiles to use and collect credentials from .env
for submission.This can also be improved in the future, depending on the demand. Leave a comment if you think we should take a different path.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.