Hi,
I'm having some trouble using cx_Freeze 4.0.1 and excluding Tkinter
(which is not installed). I've tried:
* adding excludes=["Tkinter"] to the Executable arg
* adding excludes="Tkinter" to the Executable arg
* adding excludes=["Tkinter"] to the setup call
* adding excludes="Tkinter" to the setup call
* adding "-e Tkinter" to the command line call
None of these seem to have any effect. I always end up with a
traceback that ends with:
File "/usr/lib/python2.5/lib-tk/Tkinter.py", line 41, in <module>
raise ImportError, str(msg) + ', please install the python-tk package'
ImportError: No module named _tkinter, please install the python-tk package
I took a look at the code, and I'm puzzled as to how this is meant to
work. In _ScanCode in cx_Freeze/finder.py there is the line:
if name not in module.excludeNames:
Here 'name' is "Tkinter" at the point of the traceback, as expected.
However, module.excludeNames is always an empty dictionary. From what
I can see, it will always be an empty dictionary, because when the
module object is created, no excludes are passed to it, and
module.excludeName() is never called.
If someone could explain where I'm going wrong, that would be great,
thanks! Please let me know if more information is required.
Thanks,
Tony Meyer
------------------------------------------------------------------------------
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users