Closed noyse27 closed 6 months ago
same errors as well when trakt to letterboxd
it seems to be depending on the waiting time:
when im changing in letterboxd_site.py
from
def _pre_login_action(self):
time.sleep(2)
to
def _pre_login_action(self):
time.sleep(10)
and inbase_site.py
from
def _click_login_button(self):
login_button = self.browser.find_element_by_xpath(self.LOGIN_BUTTON_SELECTOR)
login_button.click()
time.sleep(2) # wait for page to load
to
def _click_login_button(self):
login_button = self.browser.find_element_by_xpath(self.LOGIN_BUTTON_SELECTOR)
login_button.click()
time.sleep(10) # wait for page to load
it continues the import until the next error occurs
noyse@MSI:~/RatS$ sudo python3 transfer_ratings.py --source trakt --destination letterboxd --file /home/noyse/RatS/RatS/exports/20211125202703_Trakt.json
===== Trakt: performing login
===== loaded 662 movies from /home/noyse/RatS/RatS/exports//home/noyse/RatS/RatS/exports/20211125202703_Trakt.json
===== Letterboxd: posting 662 movies
===== saving movies to CSV
===== Letterboxd: matching the movies...
100% (662 of 662) |##############################################################| Elapsed Time: 0:00:20 Time: 0:00:20
ERROR: There was an exception inside Letterboxd (see below). Skipping insertion.
===== ABORTING =====
Traceback (most recent call last):
File "/home/noyse/RatS/transfer_ratings.py", line 252, in insert_movie_ratings
inserter.insert(movies, source)
File "/home/noyse/RatS/RatS/letterboxd/letterboxd_ratings_inserter.py", line 42, in insert
self.upload_csv_file(len(movies))
File "/home/noyse/RatS/RatS/letterboxd/letterboxd_ratings_inserter.py", line 60, in upload_csv_file
self._wait_for_movie_matching(wait, movies_count)
File "/home/noyse/RatS/RatS/letterboxd/letterboxd_ratings_inserter.py", line 100, in _wait_for_movie_matching
self.site.browser.find_element_by_xpath(enabled_import_button_selector).click()
File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webelement.py", line 80, in click
self._execute(Command.CLICK_ELEMENT)
File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webelement.py", line 672, in _execute
return self._parent.execute(command, params)
File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 318, in execute
self.error_handler.check_response(response)
File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementClickInterceptedException: Message: Element <a class="button -action button-large button-action save-users-imported-imdb-history submit-matched-films add-import-films-to-list track-event" href="#"> is not clickable at point (529,509) because another element <iframe id="zIframe_tyche_trendi_video" class="zeus_iframe" src="//cdn.playwire.com/bolt4/js/zeus/releases/4.3.66/frame/frame.html#id=tyche_trendi_video___pv=4___eu=true___eis=1638483171411"> obscures it
but i do not know where i have to improve the waiting time so the import goes further
tried it on my vserver- same error there
becomes obsolete by #306
tried several times but always the same result: