0

我正在探索人脸 API。我正在使用 GUI 示例。

图形用户界面链接:https ://github.com/Microsoft/Cognitive-Face-Python

运行示例时发生此错误:

Traceback (most recent call last):
File "D:\Tin Central\programming\DOAN\Cognitive-Face-Python-
master\Cognitive-Face-Python-master\sample\view\__init__.py", line 101, in 
OnInit
frame = MyFrame(None)
File "D:\Tin Central\programming\DOAN\Cognitive-Face-Python-
master\Cognitive-Face-Python-master\sample\view\__init__.py", line 80, in 
__init__
self.book = MyLabelBook(self)
File "D:\Tin Central\programming\DOAN\Cognitive-Face-Python-
master\Cognitive-Face-Python-master\sample\view\__init__.py", line 31, in 
__init__
subscription_panel = SubscriptionPanel(self)
File "D:\Tin Central\programming\DOAN\Cognitive-Face-Python-
master\Cognitive-Face-Python-master\sample\view\panel_subscription.py", line 
42, in __init__
subgridsizer = wx.GridSizer(rows=2, cols=2)
TypeError: GridSizer(): arguments did not match any overloaded call:
overload 1: 'rows' is not a valid keyword argument
overload 2: 'rows' is not a valid keyword argument
overload 3: not enough arguments
overload 4: not enough arguments
4

1 回答 1

0

您可能安装了 wxPython 4,它仍处于测试阶段。

您需要通过此处安装 wxPython 3.0.2:https ://sourceforge.net/projects/wxpython/files/wxPython/3.0.2.0/ 。

确保选择与您拥有的 Python 版本(32 位或 64 位)相对应的 .exe。

运行示例应用程序的完整说明在这里

于 2017-09-23T21:10:24.400 回答