Pyforms,pysettings和pyinstaller,对象没有属性'settings'

时间:2017-08-04 08:06:18

标签: python-2.7 pyinstaller pyforms

编译到可执行文件后,我在python 2.7中遇到pyforms和pysettings问题。

脚本在“python godziny.py”执行时正常运行且没有错误。

然而,在我创建可执行文件后(目前我使用pyinstaller,但我也尝试了py2exe和cx_freeze同样的问题)我启动应用程序并收到以下内容: C:\...>dist\godziny\godziny.exe Traceback (most recent call last): File "godziny.py", line 10, in <module> from pyforms import BaseWidget File "c:\users\...\appdata\local\temp\pip-build-hzzm3w\pyinstaller\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module File "site-packages\pyforms\__init__.py", line 6, in <module> File "site-packages\pysettings\settings_manager.py", line 22, in __add__ File "site-packages\pysettings\settings_manager.py", line 16, in __load_module AttributeError: 'module' object has no attribute 'settings' Failed to execute script godziny

我正在使用Python 2.7,来自Pysettings的pysettings和来自pip(0.1.7.3)的pyforms。 Pyinstaller在编译期间不报告任何错误。

0 个答案:

没有答案