Hi Humsawani, I have experienced similar errors creating installers: even when the import is done in the project, it cannot be retrieved.
You must try to add as much you can, the packages that have errors during the compilation. For example, PyQt5 was imported on my last project but still I got some resolution errors, so my package_includes was forcing to include it : packages_include = ["sys", "os", "re", "codecs", "getopt", "PyQt5", "importlib"] packages_exclude = ["email", "html", "http", "mediaservice", "urllib", "xml"] build_exe_options = { 'packages' : packages_include, 'excludes' : packages_exclude, } Hope you can resolve this issue. Cheers, Leandro GARCIA On Fri, Nov 23, 2018 at 12:53 PM Humsawani Loganathan < humsawani.loganat...@technicolor.com> wrote: > Hi Team, > > > > We are trying to generate installer for python scripts using cx-freeze to > support our employees. > > In python script, we used this import statement, "from oslo_concurrency > import lockutils" > > Following are some of the import errors due to the above import statement, > > > > ImportError: no module named message > > Solution: added "from email.mime.message import MIMEMessage" > > > > ImportError: no module named text > > Solution: added "from email.mime.text import MIMEText" > > > > ImportError: no module named Multipart > > Solution: added "from email.mime.multipart import MIMEMultipart" > > > > This was finally narrowed down to the attached error. > > > > PFA of the error and setup.py file. > > > > Could you please help us to resolve this issue? > > > > Thanks and regards, > > *Humsawani Loganathan.* > > > _______________________________________________ > cx-freeze-users mailing list > cx-freeze-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users >
_______________________________________________ cx-freeze-users mailing list cx-freeze-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cx-freeze-users