-
Notifications
You must be signed in to change notification settings - Fork 18
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
Error: any ideas? #11
Comments
Seems like YouTube have changed around yet again. I'll update it now. |
Should be fixed now. Try running |
Hmm, that's weird. Just tried it again and it works for me. It was uploading when you opened the issue, but now it isn't? I didn't update anything surrounding the actual uploading so that's quite weird. Try to set |
Thanks. It does seem weird. I created a new YT profile and tested with both the old a new profile.
And got different errors hmmm odd.
It only works headless from what I tell
Here is the output from both attempts. I wonder if its different in the US?
I will run some debug on it.
thanks for your help.
First attempt
PS C:\Users\johnj\Desktop\auto-downloader\config> & C:/Users/johnj/AppData/Local/Microsoft/WindowsApps/PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0/python.exe c:/Users/johnj/Desktop/auto-downloader/PYYTUploader-V3d.py
DEBUG: Firefox is now running
DEBUG: Trying to upload "D:/ToYouTube/upload/365tour.mp4" to YouTube...
DEBUG: Trying to set "365 Propery Tour" as title...
DEBUG: Trying to set video to "Not made for kids"...
Traceback (most recent call last):
File "c:/Users/johnj/Desktop/auto-downloader/PYYTUploader-V3d.py", line 37, in <module>
was_uploaded, video_id = upload.upload(
File "C:\Users\johnj\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\opplast\upload.py", line 135, in upload
self.driver.find_element_by_id(NEXT_BUTTON).click()
File "C:\Users\johnj\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\remote\webelement.py", line 80, in click
self._execute(Command.CLICK_ELEMENT)
File "C:\Users\johnj\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\remote\webelement.py", line 633, in _execute
return self._parent.execute(command, params)
File "C:\Users\johnj\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\johnj\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementNotInteractableException: Message: Element <ytcp-button id="next-button" class="style-scope ytcp-uploads-dialog"> could not be scrolled into view
second attempt
PS C:\Users\johnj\Desktop\auto-downloader\config> & C:/Users/johnj/AppData/Local/Microsoft/WindowsApps/PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0/python.exe c:/Users/johnj/Desktop/auto-downloader/TestUpload03152021.py
DEBUG: Firefox is now running
DEBUG: Trying to upload "D:/ToYouTube/upload/365tour.mp4" to YouTube...
Traceback (most recent call last):
File "c:/Users/johnj/Desktop/auto-downloader/TestUpload03152021.py", line 9, in <module>
was_uploaded, video_id = upload.upload(
File "C:\Users\johnj\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\opplast\upload.py", line 55, in upload
self.driver.find_element_by_xpath(INPUT_FILE_VIDEO).send_keys(path)
File "C:\Users\johnj\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\remote\webdriver.py", line 394, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "C:\Users\johnj\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\remote\webdriver.py", line 976, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\johnj\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\johnj\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-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: ***@***.***='file']
PS C:\Users\johnj\Desktop\auto-downloader\config>
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
From: ***@***.***>
Sent: Monday, March 15, 2021 2:56 PM
To: ***@***.***>
Cc: ***@***.***>; ***@***.***>
Subject: Re: [offish/opplast] Error: any ideas? (#11)
Hmm, that's weird. Just tried it again and it works for me. It was uploading when you opened the issue, but now it isn't? I didn't update anything surrounding the actual uploading so that's quite weird. Try to set headless=False and see what happens. I don't really have any other advice on how to fix this.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Foffish%2Fopplast%2Fissues%2F11%23issuecomment-799746058&data=04%7C01%7C%7C09103f7354634a6118ee08d8e7f4c727%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637514385778539927%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=g5ZHVkemAzmp8Krzub%2F48mYXHhWftagAjmnwxZmzchs%3D&reserved=0>, or unsubscribe<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FATCQQSCNT3TIZYVHIU5DG2LTDZX7BANCNFSM4ZHC3RXQ&data=04%7C01%7C%7C09103f7354634a6118ee08d8e7f4c727%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637514385778539927%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=keKv2kTLoHSCqPYB%2BJMyHkFCf6fW%2BLkKocH9DnwgLUU%3D&reserved=0>.
|
Hey Thanks for doing this. Very cool and easy.
it was working fine until today. i did pull your latest release. getting this error today using your sample code with a valid file location. on Windows 10 and FF 86.0 (64-bit)
PS C:\Users\johnj> & python c:/Users/johnj/Desktop/auto-downloader/TestUpload03152021.py
DEBUG: Firefox is now running
DEBUG: Trying to upload "D:/ToYouTube/upload/365tour.mp4" to YouTube...
DEBUG: Trying to set "My YouTube Title" as title...
DEBUG: Trying to set "My YouTube Description" as description...
Traceback (most recent call last):
File "c:/Users/johnj/Desktop/auto-downloader/TestUpload03152021.py", line 8, in
was_uploaded, video_id = upload.upload(
File "C:\Users\johnj\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\opplast\upload.py", line 78, in upload
container = self.driver.find_element_by_xpath(DESCRIPTION_CONTAINER)
File "C:\Users\johnj\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\remote\webdriver.py", line
394, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "C:\Users\johnj\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\remote\webdriver.py", line
976, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\johnj\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\remote\webdriver.py", line
321, in execute
self.error_handler.check_response(response)
File "C:\Users\johnj\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-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: /html/body/ytcp-uploads-dialog/tp-yt-paper-dialog/div/ytcp-animatable[1]/ytcp-uploads-details/div/ytcp-uploads-basics/ytcp-mention-textbox[2]
The text was updated successfully, but these errors were encountered: