带有cx_Freeze的AttributeError

时间:2017-09-30 14:42:40

标签: python python-3.x cx-freeze

我正在尝试在python 3中创建一个cx_Freeze gui。

当我输入["employees":{{"name" : "Jhon", "surname" : "smith"} , {"name" :"george","surname" : "black"}}]

我收到此错误:

string text = "asdsdas";
text = ConvertToUnicode(Text);//->/u231/u213/u123...

我的代码要在这里复制很长时间,但它分为两部分

  • tkinter类('long'部分)
  • 简单的cx_Freeze脚本

修改 错误所在的行是pyton setup.py build函数的最后一行:

running build
running build_exe
Traceback (most recent call last):
  File "setup.py", line 356, in <module>
    executables=executables
  File "C:\Program Files (x86)\lib\site-packages\cx_Freeze\dist.py",
n setup
    distutils.core.setup(**attrs)
  File "C:\Program Files (x86)\lib\distutils\core.py", line 148, in s
    dist.run_commands()
  File "C:\Program Files (x86)\lib\distutils\dist.py", line 955, in r

    self.run_command(cmd)
  File "C:\Program Files (x86)\lib\distutils\dist.py", line 974, in r
    cmd_obj.run()
  File "C:\Program Files (x86)\lib\distutils\command\build.py", line

    self.run_command(cmd_name)
  File "C:\Program Files (x86)\lib\distutils\cmd.py", line 313, in ru
    self.distribution.run_command(command)
  File "C:\Program Files (x86)\lib\distutils\dist.py", line 974, in r
    cmd_obj.run()
  File "C:\Program Files (x86)\lib\site-packages\cx_Freeze\dist.py",
n run
    zipExcludePackages = self.zip_exclude_packages)
  File "C:\Program Files (x86)\lib\site-packages\cx_Freeze\freezer.py
, in __init__
    self._VerifyConfiguration()
  File "C:\Program Files (x86)\lib\site-packages\cx_Freeze\freezer.py
, in _VerifyConfiguration
    executable._VerifyConfiguration(self)
AttributeError: 'str' object has no attribute '_VerifyConfiguration'

0 个答案:

没有答案