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

Error: any ideas? #11

Closed
PTGHJJD opened this issue Mar 15, 2021 · 6 comments · Fixed by #12
Closed

Error: any ideas? #11

PTGHJJD opened this issue Mar 15, 2021 · 6 comments · Fixed by #12
Labels
bug Something isn't working

Comments

@PTGHJJD
Copy link

PTGHJJD commented Mar 15, 2021

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]

@offish offish added the bug Something isn't working label Mar 15, 2021
@offish
Copy link
Owner

offish commented Mar 15, 2021

Seems like YouTube have changed around yet again. I'll update it now.

@offish
Copy link
Owner

offish commented Mar 15, 2021

Should be fixed now. Try running pip install --upgrade opplast and upload again.

@PTGHJJD
Copy link
Author

PTGHJJD commented Mar 15, 2021

thanks for the quick response. :> so getting this error now. I appreciate your help.

image

@offish
Copy link
Owner

offish commented Mar 15, 2021

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.

@PTGHJJD
Copy link
Author

PTGHJJD commented Mar 15, 2021 via email

@PTGHJJD
Copy link
Author

PTGHJJD commented Mar 15, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants