how to use py2exe packing python+gevent program into .exe file?

ldl

I use setup.py :

from distutils.core import setup
import py2exe

setup(
 windows=[{"script":"flask_gevent.py"}],
 options={
    "py2exe":{
        "includes": []
    },
  }
)        



Traceback (most recent call last):
File "flask_gevent.py", line 77, in <module>
File "gevent\pywsgi.pyc", line 605, in __init__
File "gevent\server.pyc", line 48, in __init__
File "gevent\baseserver.pyc", line 55, in __init__
File "gevent\event.pyc", line 27, in __init__
File "gevent\hub.pyc", line 169, in get_hub
File "gevent\hub.pyc", line 268, in __init__
File "gevent\hub.pyc", line 198, in _import
File "gevent\hub.pyc", line 210, in _import
File "gevent\core.pyc", line 12, in <module>
File "gevent\core.pyc", line 5, in __load
AttributeError: 'module' object has no attribute 'path'

can anyone please help me with this problem?
in the dist directory,
i can see some packages relavent to gevent already be included in : enter image description here

user3600655

This problem has been solved, just add "bundle_files": 1 to "options", it will work fine!

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to stop Python program compiled in py2exe from displaying ImportError: No Module names 'ctypes'

From Dev

How do I prevent multiple sessions launch for a Python program packed with py2exe?

From Dev

How to stop Python program compiled in py2exe from displaying ImportError: No Module names 'ctypes'

From Dev

Building an executable file for python code using py2exe

From Dev

Python: py2exe loses file path information

From Dev

Python: Is original source code viewable when converting a python script to .exe file using py2exe?

From Dev

Generating exe from PyQt program with py2exe

From Dev

"File not found" error with py2exe

From Dev

Py2Exe generate log file

From Dev

py2exe No such file or directory

From Dev

Packing python scripts into .exe file while keeping imported modules

From Dev

Python, pygame, py2exe

From Dev

Python, pygame, py2exe

From Dev

Image is not displayed in pyside exe file by py2exe

From Dev

Can we do file handling from executable created by py2exe in Python?

From Dev

Export Python to exe with "py2exe", Selenium error

From Dev

python py2exe: exe creation/errors

From Dev

How do I use cx_freeze or py2exe, with xlwings, numpy

From Dev

how to use py2exe when rewriting an imported module (and using the rewritten version)

From Dev

How to create .exe using py2exe(or pyinstaller) on Ubuntu

From Dev

program wont work after being compiled with py2exe

From Dev

Program doesn't work beyond py2exe

From Dev

how to tranfrom python3 program into exe file totally?

From Dev

py2exe error with Python 3.4: Errno2 , missing file 'run-py3 .4-win32.exe'

From Dev

py2exe error with Python 3.4: Errno2 , missing file 'run-py3 .4-win32.exe'

From Dev

Py2exe, Tkinter, and Setup File Problems?

From Dev

py2exe - Create single executable file out of a folder

From Dev

Missing file in compiled py2exe app selenium

From Dev

Create a single-file executable using py2exe

Related Related

  1. 1

    How to stop Python program compiled in py2exe from displaying ImportError: No Module names 'ctypes'

  2. 2

    How do I prevent multiple sessions launch for a Python program packed with py2exe?

  3. 3

    How to stop Python program compiled in py2exe from displaying ImportError: No Module names 'ctypes'

  4. 4

    Building an executable file for python code using py2exe

  5. 5

    Python: py2exe loses file path information

  6. 6

    Python: Is original source code viewable when converting a python script to .exe file using py2exe?

  7. 7

    Generating exe from PyQt program with py2exe

  8. 8

    "File not found" error with py2exe

  9. 9

    Py2Exe generate log file

  10. 10

    py2exe No such file or directory

  11. 11

    Packing python scripts into .exe file while keeping imported modules

  12. 12

    Python, pygame, py2exe

  13. 13

    Python, pygame, py2exe

  14. 14

    Image is not displayed in pyside exe file by py2exe

  15. 15

    Can we do file handling from executable created by py2exe in Python?

  16. 16

    Export Python to exe with "py2exe", Selenium error

  17. 17

    python py2exe: exe creation/errors

  18. 18

    How do I use cx_freeze or py2exe, with xlwings, numpy

  19. 19

    how to use py2exe when rewriting an imported module (and using the rewritten version)

  20. 20

    How to create .exe using py2exe(or pyinstaller) on Ubuntu

  21. 21

    program wont work after being compiled with py2exe

  22. 22

    Program doesn't work beyond py2exe

  23. 23

    how to tranfrom python3 program into exe file totally?

  24. 24

    py2exe error with Python 3.4: Errno2 , missing file 'run-py3 .4-win32.exe'

  25. 25

    py2exe error with Python 3.4: Errno2 , missing file 'run-py3 .4-win32.exe'

  26. 26

    Py2exe, Tkinter, and Setup File Problems?

  27. 27

    py2exe - Create single executable file out of a folder

  28. 28

    Missing file in compiled py2exe app selenium

  29. 29

    Create a single-file executable using py2exe

HotTag

Archive