Newbie simple py2exe problem
urba0083 at tc.umn.edu
Sun Jan 12 19:52:38 CET 2003
This one I can't help you with.
But what I can tell you is this, which might help you with
your Python EXE problem.
- py2exe does create Python executables. I have used it for this.
- I've successfully compiled Tkinter and wxPython programs with py2exe.
- I've been unable to successfully compile a PyGtk2 program with py2exe.
Basically, py2exe doesn't always work. It depends on which modules
you are importing. Sometimes you can help it by explicitly telling
it which modules to import, but so far, I haven't been able to
do this with my PyGtk2 problem. It looks like all the relevant
modules were imported.
So in otherwords, py2exe works most of the time. But depending
on what you are doing, you may run into some situations where
it won't work.
> Since you guys are so good at this, how about this, I promise I'm
> going to learn this as soon as I get this cleared up, thanks.
> C:\Python22>python setup.py py2exe
> Traceback (most recent call last):
> File "setup.py", line 7, in ?
> File "C:\PYTHON22\distutils\core.py", line 101, in setup
> _setup_distribution = dist = klass(attrs)
> File "C:\PYTHON22\distutils\dist.py", line 130, in __init__
> setattr(self, method_name, getattr(self.metadata, method_name))
> AttributeError: DistributionMetadata instance has no attribute
More information about the Python-list