Python Forum
can not open .exe file generated by py2exe: ImportError: cannot import name _remove_d
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
can not open .exe file generated by py2exe: ImportError: cannot import name _remove_d
#1
I have used py2exe to generate a .exe file, but I can noT open it. the log file says there's something wrone with jinja2 module, which I have imported in the main program. I have tried to installed every jinja2 version from version 2.5.5 to 2.10, but I did not success in open any .exe generated.

the warning in log file is :

ImportError: cannot import name _remove_dead_weakref
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  open a text file using list() Pedroski55 2 116 Feb-25-2026, 06:57 PM
Last Post: noisefloor
  If I open a file write or append, is the file loaded into RAM? Pedroski55 11 1,118 Jan-14-2026, 07:49 AM
Last Post: Pedroski55
  ImportError: cannot import name 'NullHandler' from 'logging' sukanta80 0 630 Jul-28-2025, 03:26 PM
Last Post: sukanta80
  ImportError: cannot import name 'Pyfhel' from 'Pyfhel' Anldra12 11 8,147 Jun-16-2025, 07:08 AM
Last Post: ItsTheGoose
Question [SOLVED] Open file, and insert space in string? Winfried 7 2,524 May-28-2025, 07:56 AM
Last Post: Winfried
  Errors during run .exe file generated with Pyinstaller BushyAxis793 4 5,610 Mar-25-2025, 05:57 PM
Last Post: BushyAxis793
  How to write variable in a python file then import it in another python file? tatahuft 4 2,253 Jan-01-2025, 12:18 AM
Last Post: Skaperen
  Trying to open depracated joblib file mckennamason 0 2,156 Sep-19-2024, 03:30 PM
Last Post: mckennamason
  import a function from another file using relative path paul18fr 6 10,448 Aug-01-2024, 06:40 AM
Last Post: paul18fr
  ImportError: cannot import name 'scipy_namespace_for' from 'scipy._lib._array_api' AgileAVS 0 3,963 Jul-15-2024, 08:45 AM
Last Post: AgileAVS

Forum Jump:

User Panel Messages

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