Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Open an Excel file
#1
Hi all,
I am trying to open an excel file (LibreOffice) with the following code:
import openpyxl
wb = openpyxl.load_workbook(r'C:\Users\user\Desktop\Python\example.xlsx')
but i get the follwing error:
Error:
KeyError: "There is no item named '[Content_Types].xml' in the archive"
Can someone please tell what this error means and to read my Excel file.

Thanks
Reply


Messages In This Thread
Open an Excel file - by Friend - Feb-17-2020, 08:42 PM
RE: Open an Excel file - by jefsummers - Feb-18-2020, 12:32 AM
RE: Open an Excel file - by Friend - Feb-18-2020, 08:38 AM
RE: Open an Excel file - by buran - Feb-18-2020, 09:11 AM
RE: Open an Excel file - by Friend - Feb-18-2020, 02:19 PM
RE: Open an Excel file - by buran - Feb-18-2020, 02:33 PM
RE: Open an Excel file - by Friend - Feb-18-2020, 03:27 PM
RE: Open an Excel file - by buran - Feb-18-2020, 03:43 PM
RE: Open an Excel file - by jefsummers - Feb-18-2020, 04:34 PM
RE: Open an Excel file - by Friend - Feb-18-2020, 05:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python openyxl not updating Excel file MrBean12 1 345 Mar-03-2024, 12:16 AM
Last Post: MrBean12
  Copy Paste excel files based on the first letters of the file name Viento 2 455 Feb-07-2024, 12:24 PM
Last Post: Viento
  Open/save file on Android frohr 0 339 Jan-24-2024, 06:28 PM
Last Post: frohr
  file open "file not found error" shanoger 8 1,163 Dec-14-2023, 08:03 AM
Last Post: shanoger
  Search Excel File with a list of values huzzug 4 1,266 Nov-03-2023, 05:35 PM
Last Post: huzzug
  Updating sharepoint excel file odd results cubangt 1 856 Nov-03-2023, 05:13 PM
Last Post: noisefloor
  How can i combine these two functions so i only open the file once? cubangt 4 876 Aug-14-2023, 05:04 PM
Last Post: snippsat
  Reading data from excel file –> process it >>then write to another excel output file Jennifer_Jone 0 1,118 Mar-14-2023, 07:59 PM
Last Post: Jennifer_Jone
  Save and Close Excel File avd88 0 3,084 Feb-20-2023, 07:19 PM
Last Post: avd88
  Trying to access excel file on our sharepoint server but getting errors cubangt 0 824 Feb-16-2023, 08:11 PM
Last Post: cubangt

Forum Jump:

User Panel Messages

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