[Python-Dev] SystemError: new style getargs format but argument is not a tuple

Serhiy Storchaka storchaka at gmail.com
Sun Jan 1 18:40:38 EST 2017


On 02.01.17 01:23, Terry Reedy wrote:
> There are several recent question on Stackoverflow about
>
> SystemError: new style getargs format but argument is not a tuple
>
> PIL/pillow, 2.7, Nov 28, 2016
> https://stackoverflow.com/questions/40844212/systemerror-new-style-getargs-format-but-argument-is-not-a-tuple-even-the-argum
>
>
> ImageDraw.draw.line(), python, Sep 14, 2016
> https://stackoverflow.com/questions/39497458/imagedraw-draw-line-systemerror-new-style-getargs-format-but-argument-is-no?rq=1
>
>
> opencv, cv2.line, python, Sep 19, 2016
> https://stackoverflow.com/questions/32673359/systemerror-new-style-getargs-format-but-argument-is-not-a-tuple?rq=1
>
>
> opencv, cv2.imread/show, python, Nov 5, 2016
> https://stackoverflow.com/questions/13225525/system-error-new-style-getargs-format-but-argument-is-not-a-tuple-when-using?rq=1
>
> (code mostly from doc)
>
> ??.imread?, python, Jan 1, 2017
> https://stackoverflow.com/questions/41419688/systemerror-new-style-getargs-format-but-argument-is-not-a-tuple-it-is-a-tup
>
>
> (and maybe others)
> [Would that people would identify OS and exact version of both python
> and imported module ;-)]
>
> No one commenting has a clue.  Is message from Victor's new calling
> code?  Was it backported to 2.7?  Could error be a result of running old
> 3rd party binary that needs to be recompiled?

A system error "new style getargs format but argument is not a tuple" is 
not new. It means that PyArg_ParseTuple() is called with not a tuple as 
the first arguments. This is just a programmical error in third-party 
extension.




More information about the Python-Dev mailing list