1. Anthony Tuininga
  2. cx_Freeze
  3. Issues
Issue #1 invalid

setup() can't take dictionary as keyword arguments

Anonymous created an issue

If I pass a dictionary {{{ setup_args = {... ,'options' = {'build_exe'=...},'cible' = [ Executable(...) ]}

setup(setup_args) }}} It's failed : {{{ Traceback (most recent call last): File "setup.py", line 60, in <module> setup( setup_args) File "C:Python27libsite-packagescx_Freezedist.py", line 359, in setup distutils.core.setup(attrs) File "C:Python27libdistutilscore.py", line 112, in setup _setup_distribution = dist = klass(attrs) File "C:Python27libsite-packagescx_Freezedist.py", line 23, in init distutils.dist.Distribution.init(self, attrs) File "C:Python27libdistutilsdist.py", line 241, in init for (command, cmd_options) in options.items(): AttributeError: 'tuple' object has no attribute 'items' }}}

But if I pass cx_freeze specials arguments outside of the dict :

{{{ setup(options = {'build_exe'=...},cible=[ Executable(...) ], **setup_args) }}} it's work.

Comments (1)

  1. Anthony Tuininga repo owner

    I followed your instructions as best as I could and was unable to duplicate your issue. If you can provide the exact source that you used that is causing the problem, that would be appreciated and I'll re-examine the issue. Until then I am going to mark it as invalid.

  2. Log in to comment