Oct-14-2019, 05:43 PM
Hi
The following program runs ok in idle mode python
I try several things like
Thank you
The following program runs ok in idle mode python
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')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
def descarrega(): a=lopes.get(); pimba=lopes.get() pimba.encode(encoding='UTF-8',errors='ignore') yt = YouTube(pimba).streams.first().download() playsound('sineta2.mp3')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