ctypes.ArgumentError: argument 1: <class 'OverflowError'>: int too long to convert
See original GitHub issueGetting the error when calling is_minimized()
Using pywinauto 0.6.6 on python 3.6.8 64-bit (Intel channel) to automate 64-bit Excel 2016
Traceback (most recent call last):
File "C:\proj\proj.py", line 479, in func
if wnd.is_minimized():
File "C:\Miniconda3\envs\py3\lib\site-packages\pywinauto\application.py", line 378, in __getattribute__
ctrls = self.__resolve_control(self.criteria)
File "C:\Miniconda3\envs\py3\lib\site-packages\pywinauto\application.py", line 256, in __resolve_control
criteria)
File "C:\Miniconda3\envs\py3\lib\site-packages\pywinauto\timings.py", line 436, in wait_until_passes
func_val = func(*args, **kwargs)
File "C:\Miniconda3\envs\py3\lib\site-packages\pywinauto\application.py", line 201, in __get_ctrl
dialog = self.backend.generic_wrapper_class(findwindows.find_element(**criteria[0]))
File "C:\Miniconda3\envs\py3\lib\site-packages\pywinauto\findwindows.py", line 84, in find_element
elements = find_elements(**kwargs)
File "C:\Miniconda3\envs\py3\lib\site-packages\pywinauto\findwindows.py", line 281, in find_elements
elements = [elem for elem in elements if _title_match(elem)]
File "C:\Miniconda3\envs\py3\lib\site-packages\pywinauto\findwindows.py", line 281, in <listcomp>
elements = [elem for elem in elements if _title_match(elem)]
File "C:\Miniconda3\envs\py3\lib\site-packages\pywinauto\findwindows.py", line 277, in _title_match
t = w.rich_text
File "C:\Miniconda3\envs\py3\lib\site-packages\pywinauto\win32_element_info.py", line 83, in rich_text
return handleprops.text(self.handle)
File "C:\Miniconda3\envs\py3\lib\site-packages\pywinauto\handleprops.py", line 91, in text
handle, win32defines.WM_GETTEXT, length, ctypes.byref(buffer_))
ctypes.ArgumentError: argument 1: <class 'OverflowError'>: int too long to convert
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Python 3.5.1 (AMD64) ctypes.ArgumentError: argument 1 ...
I'm running the code in Windows 10 Any suggestions how to fix the error? ctypes.ArgumentError: argument 1: <class 'OverflowError'>: int too long ......
Read more >[Solved] OverflowError: Python int too large to convert to C long
OverflowError : Python int too large to convert to C long is a typical error in python which occurs when you initialize too...
Read more >argument 3: <class 'OverflowError'>: int too long to convert
ctypes.ArgumentError: argument 3: <class 'OverflowError'>: int too long to convert. [ENGLISH]:. Hey guys, i didn't understand thats error, ...
Read more >Re: Windows and Subclassing - 'OverflowError': int too long to ...
ArgumentError : argument 4: <class 'OverflowError'>: int too long > to ... recent call last): > File "<stdin>", line 1, in <module> >...
Read more >View topic - Python cTypes - int too long to convert
ctypes.ArgumentError: argument 2: <class 'OverflowError'>: int too long to convert (skullgirls) C:\skullgirls> ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Not sure if your having a hard time reproducing this issue, but I am able to using CATIA. I can also report that uninstalling master and installing pip install https://github.com/pywinauto/pywinauto/archive/master.zip resolved the issue.
Thanks - maybe that did the trick. I upgraded a couple days ago and the error hasn’t re-appeared yet. Will let you know if does.