You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Win] COM Retry wrapper fails when clicking around in Excel #587
import xlwings as xw
import time
import datetime as dt
xw.Range('A1').number_format = 'dd/mm/yy hh:mm:ss' # include seconds
while True:
xw.Range('A1').value = dt.datetime.now()
time.sleep(0.5)
This works when writing into a cell - it resumes correctly. But when double clicking a few cells randomly, it fails with the following error:
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "C:\Users\felix\Anaconda\lib\site-packages\xlwings\main.py", line 1498, in value
conversion.write(data, self, self._options)
File "C:\Users\felix\Anaconda\lib\site-packages\xlwings\conversion\__init__.py", line 35, in write
pipeline(ctx)
File "C:\Users\felix\Anaconda\lib\site-packages\xlwings\conversion\framework.py", line 66, in __call__
stage(*args, **kwargs)
File "C:\Users\felix\Anaconda\lib\site-packages\xlwings\conversion\standard.py", line 91, in __call__
self._write_value(ctx.range, ctx.value, scalar)
File "C:\Users\felix\Anaconda\lib\site-packages\xlwings\conversion\standard.py", line 71, in _write_value
rng.raw_value = value
File "C:\Users\felix\Anaconda\lib\site-packages\xlwings\main.py", line 1119, in raw_value
self.impl.raw_value = data
File "C:\Users\felix\Anaconda\lib\site-packages\xlwings\_xlwindows.py", line 710, in raw_value
self.xl.Value = data
File "C:\Users\felix\Anaconda\lib\site-packages\xlwings\_xlwindows.py", line 99, in __setattr__
return setattr(self._inner, key, value)
File "C:\Users\felix\Anaconda\lib\site-packages\win32com\client\dynamic.py", line 565, in __setattr__
self._oleobj_.Invoke(entry.dispid, 0, invoke_type, 0, value)
pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, None, None, None, 0, -2146777998), None)
changed the title [-]COM Retry wrapper fails when clicking around in Excel[/-][+][Win] COM Retry wrapper fails when clicking around in Excel[/+]on Jan 23, 2018
Activity
Ashish424 commentedon Jan 7, 2018
Can you tell when this issue is planned to resolve?This is really critical for an application I am working on and will be grateful to see this fixed.
fzumstein commentedon Jan 7, 2018
It looks like a bug that's hard to track down and at the same time not critical for most users, so no, I can't give you a timeline.
Ashish424 commentedon Jan 7, 2018
Ok,thanks.
Merge pull request #800 from ZoomerAnalytics/xlwings-586-fix-retry-wr…
[-]COM Retry wrapper fails when clicking around in Excel[/-][+][Win] COM Retry wrapper fails when clicking around in Excel[/+]fzumstein commentedon Jan 23, 2018
@Ashish424 is now fixed and will be part of upcoming 0.11.6 release
Ashish424 commentedon Aug 3, 2018
I checked this project after a long time,Thanks a lot :)
ElisabethDuijnstee commentedon Jun 30, 2021
hi! i have the same error message but not able to resolve yet. how did you solve it?