Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inserting into IMDB fails #110

Closed
pedrojvaz opened this issue Mar 3, 2020 · 1 comment
Closed

Inserting into IMDB fails #110

pedrojvaz opened this issue Mar 3, 2020 · 1 comment
Labels
Projects
Milestone

Comments

@pedrojvaz
Copy link

Describe the bug
I'm using Trakt to IMDB and it fails with an error

To Reproduce
Execute the command. It fails every time

Expected behavior
A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

  • Version: 9608b14
  • Platform OS: Ubuntu 18.04.4 LTS (bionic)
  • Firefox version: 74.0b9 (64-bit)
  • Geckodriver version: geckodriver 0.26.0 (e9783a644016 2019-10-10 13:38 +0000)
  • Python version: Python 3.6.9
  • PIP version: pip 19.2.3 from /home/vaz/.local/lib/python3.6/site-packages/pip (python 3.6)
  • Running in a virtualenv?: No
  • Running in Docker?:No
  • Executed command: sudo -H python3 transfer_ratings.py --source trakt --destination imdb --file 20200302224956_Trakt.json

Stacktrace

<!--
===== Trakt: performing login^[[B
===== loaded 1723 movies from /opt/RatS/RatS/exports/20200302224956_Trakt.json
===== IMDB: performing loginTraceback (most recent call last):
  File "transfer_ratings.py", line 227, in <module>
    main()
  File "transfer_ratings.py", line 79, in main
    execute(args)
  File "transfer_ratings.py", line 129, in execute
    execute_inserting(args, movies, parser)
  File "transfer_ratings.py", line 146, in execute_inserting
    inserter = get_inserter_from_arg(destination)(args)
  File "/opt/RatS/RatS/imdb/imdb_ratings_inserter.py", line 15, in __init__
    super(IMDBRatingsInserter, self).__init__(IMDB(args), args)
  File "/opt/RatS/RatS/imdb/imdb_site.py", line 19, in __init__
    self.USERID = self.browser.find_element_by_id('main').get_attribute('data-userid')
  File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 360, in find_element_by_id
    return self.find_element(by=By.ID, value=id_)
  File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 978, in find_element
    'value': value})['value']
  File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: [id="main"]
-->

Geckodriver log

<!--
1583185797208   addons.webextension.doh-rollout@mozilla.org     WARN    Loading extension 'doh-rollout@mozilla.org': Reading manifest: Invalid extension permission: networkStatus
1583185797254   addons.webextension.screenshots@mozilla.org     WARN    Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons
1583185797254   addons.webextension.screenshots@mozilla.org     WARN    Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: telemetry
1583185797255   addons.webextension.screenshots@mozilla.org     WARN    Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/
1583185797255   addons.webextension.screenshots@mozilla.org     WARN    Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader*
1583185800399   Marionette      WARN    TLS certificate errors will be ignored for this session
1583192653000   addons.webextension.doh-rollout@mozilla.org     WARN    Loading extension 'doh-rollout@mozilla.org': Reading manifest: Invalid extension permission: networkStatus
1583192653052   addons.webextension.screenshots@mozilla.org     WARN    Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons
1583192653052   addons.webextension.screenshots@mozilla.org     WARN    Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: telemetry
1583192653053   addons.webextension.screenshots@mozilla.org     WARN    Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/
1583192653053   addons.webextension.screenshots@mozilla.org     WARN    Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader*
1583192656513   Marionette      WARN    TLS certificate errors will be ignored for this session
-->

Additional context
Add any other context about the problem here.

@mraniki
Copy link

mraniki commented Mar 29, 2020

Encountering the same issue

@StegSchreck StegSchreck added this to Backlog in RatS via automation Mar 29, 2020
@StegSchreck StegSchreck added this to the v0.13 milestone Mar 29, 2020
RatS automation moved this from Backlog to Done Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
RatS
  
Done
Development

No branches or pull requests

3 participants