Python Forum
multithreading xlwings error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
multithreading xlwings error
#1
here's the deal.. i barely know what i'm doing. hobby project.

i've got xlwings updating a ton of cells every few seconds with data from an API (Bitcoin/indicator info).

it's a long process.. it ticks through one cell at a time and then starts over.


so, since i wanted to speed this up i spent some time toying around with multithreading. i split up the whole thing in 6 little parts and it's way faster now. nice.


problem is... obviously it's getting gummed up with all the "busyness". if i run the program with excel open i get " AttributeError: 'NoneType' object has no attribute 'Worksheet' "

if i close the spreadsheet & run the program it'll open 6 separate instances of the same spreadsheet.


what's the best way to do what i'm trying to do here.. do i need maybe another program to take those 6 pieces and compile them into one master sheet?

is multiprocessing the way to go? what do i do........ Tongue


sorry, i know this is dopey but i have no idea.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  xlwings error when reading a workbook Mishal0488 1 2,339 Aug-01-2023, 02:05 AM
Last Post: deanhystad
  Help using a dynamic array excel formula with XLWings FXMonkey 2 2,812 Jun-06-2023, 09:46 PM
Last Post: FXMonkey
  multithreading Hanyx 4 2,158 Jul-29-2022, 07:28 AM
Last Post: Larz60+
Question Problems with variables in multithreading Wombaz 2 2,044 Mar-08-2022, 03:32 PM
Last Post: Wombaz
  Multithreading question amadeok 0 2,308 Oct-17-2020, 12:54 PM
Last Post: amadeok
  How can i add multithreading in this example WoodyWoodpecker1 3 3,375 Aug-11-2020, 05:30 PM
Last Post: deanhystad
  matplotlib multithreading catosp 0 3,579 Jul-03-2020, 09:33 AM
Last Post: catosp
  xlwings UDF showing name error pwt 9 7,251 May-29-2020, 07:09 AM
Last Post: pwt
  Multithreading dynamically syncronism Rodrigo 0 2,030 Nov-08-2019, 02:33 AM
Last Post: Rodrigo
  Locks in Multithreading Chuonon 0 2,318 Oct-03-2019, 04:16 PM
Last Post: Chuonon

Forum Jump:

User Panel Messages

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