无法运行Cognitive-Face-Python-master测试

问题描述 投票:0回答:1

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

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
python-2.7 microsoft-cognitive face-api
1个回答
0
投票

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

你需要在这里安装wxPython 3.0.2:https://sourceforge.net/projects/wxpython/files/wxPython/3.0.2.0/

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

运行示例应用程序的完整说明是here

© www.soinside.com 2019 - 2024. All rights reserved.