Python Forum
Error ' Attribute error: 'str' object has no attribute 'items'' in pyinstaller
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error ' Attribute error: 'str' object has no attribute 'items'' in pyinstaller
#1
I tried to convert a .py file format to a .exe file by using PyInstaller.It seems not to work with this error:
Quote:' Attribute error: 'str' object has no attribute 'items''
. What does this message error mean and how to solve it?(Thanks in advance!) Huh Wink
Reply
#2
That error means that the code is trying to index a string as if it were a dictionary. Could you provide the full traceback?
Reply
#3
Quote:Could you provide the full traceback?
and how about the offending code.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  error in class: TypeError: 'str' object is not callable akbarza 2 444 Dec-30-2023, 04:35 PM
Last Post: deanhystad
  Error: audioio has no attribute 'AudioOut' netwrok 3 592 Oct-22-2023, 05:53 PM
Last Post: netwrok
  getpass.getpass() results in AttributeError: module 'os' has no attribute 'O_NOCTTY' EarthAndMoon 4 718 Oct-03-2023, 02:00 PM
Last Post: deanhystad
  pyserial/serial "has no attribute 'Serial' " gowb0w 9 3,299 Aug-24-2023, 07:56 AM
Last Post: gowb0w
  AttributeError: '_tkinter.tkapp' object has no attribute 'username' Konstantin23 4 1,528 Aug-04-2023, 12:41 PM
Last Post: Konstantin23
  Need help with 'str' object is not callable error. Fare 4 775 Jul-23-2023, 02:25 PM
Last Post: Fare
  Using pyinstaller with .ui GUI files - No such file or directory error diver999 3 3,067 Jun-27-2023, 01:17 PM
Last Post: diver999
  Parallel processing - AttributeError: Can't get attribute 'sktimekmeans' Mohana1983 1 704 Jun-22-2023, 02:33 AM
Last Post: woooee
  Python: AttributeError: 'PageObject' object has no attribute 'extract_images' Melcu54 2 3,660 Jun-18-2023, 07:47 PM
Last Post: Melcu54
  Object attribute behavior different in 2 scripts db042190 1 685 Jun-14-2023, 12:37 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020