Python Forum
xlwings error when reading a workbook
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
xlwings error when reading a workbook
#1
Hi Guys

I have some code which reads reads an excel file and there after uses the data to develop stress plots of structural sections.
I literally just demonstrated the program to my peers and it worked and a few minutes later is has broke down.

From what I see the issue stems from xlwings.
I have pasted a a similar set of code which produces the same error, please refer below.
Note that I am using python3.7.9

Any assistance would be greatly appreciated.


pywintypes.com_error: (-2146827284, 'OLE error 0x800a03ec', None, None)

import xlwings as wx

wb = wx.Book(r"C:\Users\mishal.mohanlal\OneDrive - Aurecon Group\GitHub resources\Plane-stress-analysis-of-sections\Book.xlsx")
sht = wb.sheets['Sheet1']
Reply
#2
Use pandas. Xlwings is the wrong kind of tool for just reading an excell file.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to copy work sheet data one workbook to other? sayyedkamran 2 711 Nov-03-2023, 09:10 AM
Last Post: Larz60+
  Help using a dynamic array excel formula with XLWings FXMonkey 2 1,301 Jun-06-2023, 09:46 PM
Last Post: FXMonkey
  Help in opening and editing an excel workbook from a web-browser test 4 1,448 Aug-10-2022, 02:31 PM
Last Post: test
  I have an issue with Netmiko Error reading SSH protocol banner omarhegazy 2 3,578 May-16-2022, 06:05 PM
Last Post: omarhegazy
  Add a new column when I extract each sheet in an Excel workbook as a new csv file shantanu97 0 2,241 Mar-24-2021, 04:56 AM
Last Post: shantanu97
  [split] openpyxl workbook module not callable yosoyebj 1 2,796 Sep-14-2020, 10:18 AM
Last Post: buran
  Facing issue while saving workbook Abhisht 3 5,609 Aug-19-2020, 11:44 AM
Last Post: Larz60+
  Saving Excel workbook file with dataframe names Biplab1985 0 2,044 Jun-07-2020, 12:25 PM
Last Post: Biplab1985
  xlwings UDF showing name error pwt 9 5,048 May-29-2020, 07:09 AM
Last Post: pwt
  Error With Reading Files In Directory And Calculating Values chascp 2 2,454 Feb-15-2020, 01:57 PM
Last Post: chascp

Forum Jump:

User Panel Messages

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