Python Forum
Py2exe Writing UNKNOWN-0.0.0-py3.7.egg-info
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Py2exe Writing UNKNOWN-0.0.0-py3.7.egg-info
#1
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
Reply
#2
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)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
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!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  What is all the info in the info window in Idle? Pedroski55 3 691 Jul-08-2023, 11:26 AM
Last Post: DeaD_EyE
  [split] Py2exe Writing UNKNOWN-0.0.0-py3.7.egg-info sarahroxon7 1 935 Apr-20-2022, 08:02 AM
Last Post: VadimCr
  Py2exe and pycryptodome reks2004 5 4,191 Dec-16-2020, 06:42 PM
Last Post: reks2004
  py2exe failed to compiled gahhon 9 7,522 Mar-04-2019, 03:29 AM
Last Post: gahhon
  py2exe keegan_010 4 4,499 Aug-22-2018, 07:58 AM
Last Post: buran
  How would I combine multiple .py files into one .exe with Py2Exe shlomi27 0 3,108 Aug-20-2018, 10:27 AM
Last Post: shlomi27
  jira-2.0.0.dist causing error with py2exe johnlawlor 1 2,522 Aug-09-2018, 08:27 PM
Last Post: Larz60+
  can not open .exe file generated by py2exe: ImportError: cannot import name _remove_d py2exe 0 2,750 May-22-2018, 09:57 AM
Last Post: py2exe
  trouble with pip and py2exe sylas 12 13,764 Sep-17-2017, 06:38 AM
Last Post: sylas
  Convert py2exe daltorya19 6 5,389 May-28-2017, 11:48 PM
Last Post: daltorya19

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020