SystemError: new style getargs format but argument is not a tuple
SystemError: new style getargs format but argument is not a tuple
我尝试在github上使用一段代码,整个项目https://github.com/rtshadow/biometrics
我用了
python thining.py image.gif --save
但是有一个错误:
Traceback (most recent call last):
File "thining.py", line 77, in <module>
make_thin(im)
File "thining.py", line 59, in make_thin
utils.load_pixels(im, loaded)
File "---/Github/biometrics/utils.py", line 111, in load_pixels
im_load[i, j] = pixels[i][j]
SystemError: new style getargs format but argument is not a tuple
utiles.py对应的部分在这里:
def load_pixels(im, pixels):
(x, y) = im.size
im_load = im.load()
for i in range(0, x):
for j in range(0, y):
im_load[i, j] = pixels[i][j] // line 111
不知道怎么解决。感谢您的帮助。
检查您的 Python 版本:python -v
。它似乎适用于 2.7.6,但不适用于 2.7.10。 (见原评论post。)
我尝试在github上使用一段代码,整个项目https://github.com/rtshadow/biometrics 我用了
python thining.py image.gif --save
但是有一个错误:
Traceback (most recent call last):
File "thining.py", line 77, in <module>
make_thin(im)
File "thining.py", line 59, in make_thin
utils.load_pixels(im, loaded)
File "---/Github/biometrics/utils.py", line 111, in load_pixels
im_load[i, j] = pixels[i][j]
SystemError: new style getargs format but argument is not a tuple
utiles.py对应的部分在这里:
def load_pixels(im, pixels):
(x, y) = im.size
im_load = im.load()
for i in range(0, x):
for j in range(0, y):
im_load[i, j] = pixels[i][j] // line 111
不知道怎么解决。感谢您的帮助。
检查您的 Python 版本:python -v
。它似乎适用于 2.7.6,但不适用于 2.7.10。 (见原评论post。)