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

Trakt: Unable to locate element: .summary-user-rating #140

Closed
OdinGitDat opened this issue Oct 17, 2020 · 1 comment
Closed

Trakt: Unable to locate element: .summary-user-rating #140

OdinGitDat opened this issue Oct 17, 2020 · 1 comment

Comments

@OdinGitDat
Copy link

OdinGitDat commented Oct 17, 2020

  • Version: 9b549c7
  • Running in Docker?: yes
  • Executed command: docker run --rm -it -v ~/.RatS.cfg:/RatS/RatS/credentials.cfg stegschreck/rats:master python3 transfer_ratings.py --source imdb --destination trakt

Stacktrace

===== IMDB: CSV downloaded to /RatS/RatS/exports/20201017200533_IMDB.csv
===== getting movies from CSV

===== IMDB: saved 605 parsed movies to /RatS/RatS/exports/20201017200533_IMDB.json
===== Trakt: posting 605 movies
  2% (15 of 605) |#                                                              | Elapsed Time: 0:02:02 ETA:   1:40:03
ERROR: There was an exception inside Trakt (see below). Skipping insertion.

===== ABORTING =====
  2% (15 of 605) |#                                                              | Elapsed Time: 0:03:06 ETA:  12:17:04
Traceback (most recent call last):
  File "transfer_ratings.py", line 216, in insert_movie_ratings
    inserter.insert(movies, source)
  File "/RatS/RatS/base/base_ratings_inserter.py", line 44, in insert
    self._post_movie_rating(movie[source.lower()]['my_rating'])
  File "/RatS/RatS/base/base_ratings_inserter.py", line 146, in _post_movie_rating
    raise e
  File "/RatS/RatS/base/base_ratings_inserter.py", line 141, in _post_movie_rating
    self._click_rating(my_rating)
  File "/RatS/RatS/trakt/trakt_ratings_inserter.py", line 59, in _click_rating
    user_rating_section = self.site.browser.find_element_by_class_name('summary-user-rating')
  File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 564, in find_element_by_class_name
    return self.find_element(by=By.CLASS_NAME, value=name)
  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: .summary-user-rating
@StegSchreck StegSchreck added this to the v0.13 milestone Oct 18, 2020
@StegSchreck StegSchreck removed this from the v0.13 milestone Oct 8, 2022
@StegSchreck StegSchreck changed the title Unable to locate element: .summary-user-rating Trakt: Unable to locate element: .summary-user-rating Apr 28, 2024
@StegSchreck
Copy link
Owner

becomes obsolete with #306

@StegSchreck StegSchreck closed this as not planned Won't fix, can't repro, duplicate, stale Apr 28, 2024
@github-project-automation github-project-automation bot moved this to Done in RatS Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

2 participants