Python Forum
Py2exe Writing UNKNOWN-0.0.0-py3.7.egg-info - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Py2exe Writing UNKNOWN-0.0.0-py3.7.egg-info (/thread-24539.html)



Py2exe Writing UNKNOWN-0.0.0-py3.7.egg-info - Rickus - Feb-18-2020

Hello,

I using py2exe to generate an executable,

Here is my setup.py

from distutils.core import setup
import py2exe
setup(windows=['C:\\Users\source\repos\myapp.py'], 
      options={
          'py2exe': {
              'packages' : ['ringcentral']
              }
          }
      )
So I run this like so
C:\Users\source\repos\>python setup.py install

this givers me
running install
running build
running install_egg_info
Removing C:\Users\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\UNKNOWN-0.0.0-py3.7.egg-info
Writing C:\Users\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\UNKNOWN-0.0.0-py3.7.egg-info


No exe is produced, what am I missin?

Thanks


RE: Py2exe Writing UNKNOWN-0.0.0-py3.7.egg-info - buran - Feb-18-2020

https://www.py2exe.org/index.cgi/Tutorial

1. Command to create the exe is python setup.py py2exe
2. Using single backslash in following path 'C:\\Users\source\repos\myapp.py' will still cause problems after you fix 1.
3. Better use pyinstaller (actively developed) instead of py2exe (not updated since 2014)

NB: I don't even bother to look into your setup.py in detail, apart form the path problem (2)


RE: Py2exe Writing UNKNOWN-0.0.0-py3.7.egg-info - Rickus - Feb-18-2020

Buran,

Thanks for the help, it's still not working, I will try as you suggest.

Hello All

Tried pyinstaller and it seems to work,it creates an .exe in the dist folder which will not run, I just get a flash of a Command Window then nothing.
Checking the ouput I get ModuleNotFoundError: No module named 'win32com'
11510 INFO: Processing pre-safe import module hook win32com

Tried importing win32com, this throws a no matching distribution found tried pywin32 and pypiwin32 no joy!