question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ctypes.ArgumentError: argument 1: <class 'OverflowError'>: int too long to convert

See original GitHub issue

Getting 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
hansonapcommented, May 11, 2019

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.

2reactions
ghostcommented, Mar 28, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found