...">

PyInstaller: "ImportError: no module named htmlentitydefs"

I made an executable using pyinstaller like this (no -onefile or other options)

> pyinstaller brdg2.py

When I run it, this is what I get (screenshot of the command line before closing it).

Of the other threads, the warning at the beginning seems inconsequential, so the problem would be

ImportError: No module named htmlentitydefs

Edit: I get the same ImportError with the .exe created using cx_freeze, so it doesn't look related to the packaging program.

Also, to add some information, I just reinstalled Python and the necessary modules, and I did not get this error while doing the same operations before (I really got other errors).

+4
source share

All Articles