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")
root.geometry("400x350")



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

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

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

savesong = Button(text="Save",command=save_song,background="#000000",foreground="#ffffff",font="Arial 15")
savesong.place(relx=.4, 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!")
info.place(relx=.5,rely=.5,anchor="c")
root.mainloop()


Save!
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" sound.py
March 23rd 20 at 19:29
0 answer

Find more questions by tags Python