CrapTheCoder / UpCode

Upload accepted solutions from CodeChef and CodeForces to GitHub
45 stars 15 forks source link

the code chef solution are not uploading and every time I use it i get the error message please can you look into that #14

Closed devesh2531 closed 11 months ago

devesh2531 commented 1 year ago

in my system the error is this all_info = list(get_submission_info(username)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\User\Downloads\UpCode-master\UpCode-master\CodeForcesScraper.py", line 22, in get_submission_info submissions = json.loads(requests.get(f'https://codeforces.com/api/user.status?handle={username}').text)['result']


KeyError: 'result'

**and in the the code spaces the error is this** 

Traceback (most recent call last):
  File "/workspaces/UpCode/main.py", line 136, in <module>
    main()
  File "/workspaces/UpCode/main.py", line 130, in main
    codeforces_uploader(codeforces_username, repo)
  File "/workspaces/UpCode/main.py", line 75, in codeforces_uploader
    for solution in CodeForcesScraper.get_solutions(codeforces_username):
  File "/workspaces/UpCode/CodeForcesScraper.py", line 64, in get_solutions
    driver = webdriver.Chrome(ChromeDriverManager().install(), options=options)
  File "/home/codespace/.local/lib/python3.10/site-packages/selenium/webdriver/chrome/webdriver.py", line 70, in __init__
    super(WebDriver, self).__init__(DesiredCapabilities.CHROME['browserName'], "goog",
  File "/home/codespace/.local/lib/python3.10/site-packages/selenium/webdriver/chromium/webdriver.py", line 92, in __init__
    RemoteWebDriver.__init__(
  File "/home/codespace/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 275, in __init__
    self.start_session(capabilities, browser_profile)
  File "/home/codespace/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 365, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "/home/codespace/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 430, in execute
    self.error_handler.check_response(response)
  File "/home/codespace/.local/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 247, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary
Stacktrace:
#0 0x56128ab0cfe3 <unknown>
#1 0x56128a84bd36 <unknown>
#2 0x56128a872f4a <unknown>
#3 0x56128a870a9b <unknown>
#4 0x56128a8b2af7 <unknown>
#5 0x56128a8b211f <unknown>
#6 0x56128a8a9693 <unknown>
#7 0x56128a87c03a <unknown>
#8 0x56128a87d17e <unknown>
#9 0x56128aacedbd <unknown>
#10 0x56128aad2c6c <unknown>
#11 0x56128aadc4b0 <unknown>
#12 0x56128aad3d63 <unknown>
#13 0x56128aaa6c35 <unknown>
#14 0x56128aaf7138 <unknown>
#15 0x56128aaf72c7 <unknown>
#16 0x56128ab05093 <unknown>
#17 0x7f6cbe20d609 start_thread
SiddheshKukade commented 1 year ago

+1

SiddheshKukade commented 1 year ago

@CodeChef not working

dev-manojbagari commented 11 months ago

try doing pip3 install --upgrade webdriver-manager

SiddheshKukade commented 11 months ago

@dev-manojbagari Didn't worked out for me

CrapTheCoder commented 11 months ago

Hello, the project will actually be archived soon. I don't have time to update it and many UI changes are happening in websites. The project will be temporarily retired :(