How to fix the problem with the compilation?

In General wrote a program and wanted to put it,but it was not there!
When you compile, there's this error -

AttributeError: 'str' object has no attribute 'items'

Here is the code of the program -

from tkinter import *
from gtts gTTS import

root = Tk()
root.title("Create Sound")

def save_song():
 text = gTTS(text=entry_text.get(),lang="EN")

entry_text = Entry()
entry_text.insert(0,'Text'),rely=.1, anchor="c")

entry_save = Entry()
entry_save.insert(0,'file Name'),rely=.2, anchor="c")

savesong = Button(text="Save",command=save_song,background="#000000",foreground="#ffffff",font="Arial 15"), rely=.3, anchor="c")

info = Label(font="Arial 10",text="file Name must end in .mp3\n\Pfeil saved in a folder with the program!"),rely=.5,anchor="c")

Not for the first time this error
Compiling with pyinstaller
compiled with this command - pyinstaller -w-F-i"Then I pointed the path to the icon"
March 23rd 20 at 19:29
0 answer

Find more questions by tags Python