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

import tkinter as tk
from tkinter import *
import math as mt
from math import *

canvas=tk.Canvas(width=800,height=600,bg="white")
canvas.pack(expand=True)
canvas.create_oval(100,100,500,500)
angle=0
xc,yc=300,300
while angle < 2*pi:
    xh,yh=300+200*cos(angle),300+200*sin(angle)
    canvas.create_line(xc,yc,xh,yh,fill="red")
    angle += 2*pi/256.
    print (angle)


tk.mainloop()
------------------------------------------------------------------------------
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

Reply via email to