Python Forum
tuple indices must be integers or slices, not str
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tuple indices must be integers or slices, not str
#11
Thanks a lot for explaining things . I was not sure of saving the images in a list would work hence created a temporary folder to save the extracted images but i see that creating a list is better as it is more efficient . The folder method was i guess the main reason i was getting a lag in loading the images and secondly it was not working every time though the temporary folder was being created.As for the use of grid yes I might not be understanding it clearly , can you suggest a good tutorial to understand grid and pack methods.
I would also like to know what factors determine how the images are extracted from the pdf file. I have seen that in some cases all the images are individually extracted while in some cases they are extracted as a group.
Reply


Messages In This Thread
RE: tuple indices must be integers or slices, not str - by cybertooth - Mar-06-2023, 06:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  TypeError: string indices must be integers, not 'str' LEMA 2 229 Jun-12-2024, 09:32 PM
Last Post: LEMA
  No matter what I do I get back "List indices must be integers or slices, not list" Radical 4 1,441 Sep-24-2023, 05:03 AM
Last Post: deanhystad
  boto3 - Error - TypeError: string indices must be integers kpatil 7 1,605 Jun-09-2023, 06:56 PM
Last Post: kpatil
  Response.json list indices must be integers or slices, not str [SOLVED] AlphaInc 4 6,872 Mar-24-2023, 08:34 AM
Last Post: fullytotal
  "TypeError: string indices must be integers, not 'str'" while not using any indices bul1t 2 2,287 Feb-11-2023, 07:03 PM
Last Post: deanhystad
  Error "list indices must be integers or slices, not str" dee 2 1,728 Dec-30-2022, 05:38 PM
Last Post: dee
  TypeError: string indices must be integers JonWayn 12 3,809 Aug-31-2022, 03:29 PM
Last Post: deanhystad
  TypeError: list indices must be integers or slices, not range Anldra12 2 2,863 Apr-22-2022, 10:56 AM
Last Post: Anldra12
  string indices must be integers when parsing Json ilknurg 3 6,867 Mar-10-2022, 11:02 AM
Last Post: DeaD_EyE
  code with no tuple gets : IndexError: tuple index out of range Aggam 4 3,019 Nov-04-2020, 11:26 AM
Last Post: Aggam

Forum Jump:

User Panel Messages

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