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 1,547 Jul-08-2023, 11:26 AM
Last Post: DeaD_EyE
  Unknown Expression Led_Zeppelin 5 3,183 Oct-15-2022, 12:14 PM
Last Post: deanhystad
  [split] Py2exe Writing UNKNOWN-0.0.0-py3.7.egg-info sarahroxon7 1 1,426 Apr-20-2022, 08:02 AM
Last Post: VadimCr
  Py2exe and pycryptodome reks2004 5 5,598 Dec-16-2020, 06:42 PM
Last Post: reks2004
  Help!Unknown ERROR bwdu 1 2,638 Apr-20-2020, 02:09 PM
Last Post: deanhystad
  Unknown error TheIDarKIKnight 0 2,023 Apr-19-2020, 05:27 PM
Last Post: TheIDarKIKnight
  py2exe failed to compiled gahhon 9 9,608 Mar-04-2019, 03:29 AM
Last Post: gahhon
  py2exe keegan_010 4 5,738 Aug-22-2018, 07:58 AM
Last Post: buran
  How would I combine multiple .py files into one .exe with Py2Exe shlomi27 0 3,934 Aug-20-2018, 10:27 AM
Last Post: shlomi27
  jira-2.0.0.dist causing error with py2exe johnlawlor 1 3,249 Aug-09-2018, 08:27 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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