Bonjour Pierre,
Hope it is not so late to answer, I got the same problem with the
modules... and
*resolvedd it defining EXPLICITLY the modules dependencies:*packages_include
= ["sys",
"os", "re", "pprint", "importlib", "openpyxl",
"codecs", "getopt", "pyperclip", "json",
"urllib", "PyQt5", "socket", "base64"]
packages_exclude = ["scipy", "sqlite3", "setuptools", "pandas", "numpy",
"matplotlib"]
build_exe_options = {
'packages' : packages_include,
'excludes' : packages_exclude,
}
This is how it was for my case... in your case, you must include tkinter.
Cheers,
Leandro
On Mon, Oct 16, 2017 at 11:58 AM, Pierre Dimo <pierre.d...@free.fr> wrote:
> Hello all !
>
> I am using Python 3.6 and all the latest module updates under Windows10 on
> a 64 bit machine *but **I really do not understand what happens* !.
>
> After receiving the error message (see attachements) when trying to
> execute a CX_FREEZE generated program (the script works perfectly ! ) I
> wrote and tested within the same CMD session a small script (tk1.py). In
> the attachements I joined 3 imagesshowing that I can't start * th**is
> script from the **exe.win-amd64-3.6 directory generated by CX_FREEZE,
> although the script works perfectly if launched from the build directory as
> well as from a manually created directory at the same level as
> **exe.win-amd64-3.6.
> *The message says that tkinter could not be found (same as the one in the
> case of starting my EXE program) !
>
> *1. Starting tk1.py from the exe.win-amd64-3.6 directory (generated by the
> build procedure) : cmd_access_tkinter_err.gif*
>
> *2. Starting tk1.py from the build directory (generated by the build
> procedure - same session as the previous one) : cmd_access_tkinter_build*
>
> *3. Starting tk1.py from a manually created directory, same level as
> **exe.win-amd64-3.6
> : cmd_access_tkinter_testpath*
>
> Please give me a hint if you know the explanation... Thanks,
>
> Pierre
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> cx-freeze-users mailing list
> cx-freeze-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users