Oct-14-2019, 05:43 PM
Hi
The following program runs ok in idle mode python
after run pyinstaller I got one exe file and I run it I got the error disctibed in the title of the post.
I try several things like
But no luck. What is the solution for this error. The value of pimba is one youtube address maybe this is the problem with the enconding.
Thank you
The following program runs ok in idle mode python
1 2 3 4 5 6 7 8 9 10 |
from tkinter import * from playsound import playsound from pytube import YouTube root = Tk() root.title( "Download vídeos do Youtube" ) def descarrega(): a = lopes.get(); pimba = lopes.get() yt = YouTube(pimba).streams.first().download() playsound( 'sineta2.mp3' ) |
I try several things like
1 2 3 4 5 6 |
def descarrega(): a = lopes.get(); pimba = lopes.get() pimba.encode(encoding = 'UTF-8' ,errors = 'ignore' ) yt = YouTube(pimba).streams.first().download() playsound( 'sineta2.mp3' ) |
Thank you