Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 在GUI程序中使用esky?_Python_Python 2.7_Py2exe_Distutils_Esky - Fatal编程技术网

Python 在GUI程序中使用esky?

Python 在GUI程序中使用esky?,python,python-2.7,py2exe,distutils,esky,Python,Python 2.7,Py2exe,Distutils,Esky,我有一个用python编写的GUI程序,并用py2exe打包。我现在想使用Esky来允许自动更新 但是,当我运行python setup.py bdist_esky时,出现以下错误: RuntimeError: don't call setup(windows=[...]) with esky; use setup(scripts=[...]) instead TypeError: Must specify name if script is not a file 更改为脚本时,出现以下错误

我有一个用python编写的GUI程序,并用
py2exe
打包。我现在想使用
Esky
来允许自动更新

但是,当我运行
python setup.py bdist_esky
时,出现以下错误:

RuntimeError: don't call setup(windows=[...]) with esky; use setup(scripts=[...]) instead
TypeError: Must specify name if script is not a file
更改为
脚本时,出现以下错误:

RuntimeError: don't call setup(windows=[...]) with esky; use setup(scripts=[...]) instead
TypeError: Must specify name if script is not a file
我无法摆脱它。有什么帮助吗


(setup.py:)

脚本应该是可执行的
实例的列表

下面是代码示例: