{"action":"created","issue":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1660","labels_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1660/labels{/name}","comments_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1660/comments","events_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1660/events","html_url":"https://github.com/pyinstaller/pyinstaller/issues/1660","id":115699343,"number":1660,"title":"How can I bypass: _tkinter.TclError: can't find package Tix ?","user":{"login":"georgemunteanu","id":15011455,"avatar_url":"https://avatars.githubusercontent.com/u/15011455?v=3","gravatar_id":"","url":"https://api.github.com/users/georgemunteanu","html_url":"https://github.com/georgemunteanu","followers_url":"https://api.github.com/users/georgemunteanu/followers","following_url":"https://api.github.com/users/georgemunteanu/following{/other_user}","gists_url":"https://api.github.com/users/georgemunteanu/gists{/gist_id}","starred_url":"https://api.github.com/users/georgemunteanu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgemunteanu/subscriptions","organizations_url":"https://api.github.com/users/georgemunteanu/orgs","repos_url":"https://api.github.com/users/georgemunteanu/repos","events_url":"https://api.github.com/users/georgemunteanu/events{/privacy}","received_events_url":"https://api.github.com/users/georgemunteanu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/labels/hooks","name":"hooks","color":"fef2c0"},{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/labels/PY2","name":"PY2","color":"fef2c0"},{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/labels/support","name":"support","color":"009800"},{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/labels/Windows","name":"Windows","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-07T23:21:27Z","updated_at":"2015-11-10T22:30:22Z","closed_at":null,"body":"[PROBLEM]\r\nHow can I bypass: _tkinter.TclError: can't find package Tix ?\r\n\r\n\r\n[CODE]\r\n################### Create splash screen #####################\r\nfrom Tkinter import *\r\nimport ttk\r\nfrom Tix import *\r\n\r\ndef splashScreen():\r\n    root = Tk()\r\n    root.overrideredirect(True)\r\n    # Add label\r\n    L1 = Label(root, text=\"Loading application ... \")\r\n    L1.pack( side = TOP)\r\n    # Center the window\r\n    w = 410 # width for the Tk root\r\n    h = 200 # height for the Tk root\r\n    # get screen width and height\r\n    ws = root.winfo_screenwidth() # width of the screen\r\n    hs = root.winfo_screenheight() # height of the screen\r\n    # calculate x and y coordinates for the Tk root window\r\n    x = (ws/2) - (w/2)\r\n    y = (hs/2) - (h/2)\r\n    # set the dimensions of the screen \r\n    # and where it is placed\r\n    root.geometry('%dx%d+%d+%d' % (w, h, x, y))\r\n    # Add progress bar\r\n    w=Meter(root, fillcolor='#009eff')\r\n    w.pack()\r\n    w.wait_visibility()\r\n    max=3000.0\r\n    maxi=3001\r\n    for i in range(0,maxi):\r\n           v=i/max\r\n           w.config(value=v)\r\n           w.update()\r\n    root.destroy()\r\n    root.mainloop()\r\nsplashScreen()\r\n########################### End splash screen ###########################\r\n\r\n[OUTPUT]\r\nOn running the .exe file, the system returns:\r\nTraceback (most recent call last):\r\n  File \"<string>\", line 78, in <module>\r\n  File \"<string>\", line 7, in splashScreen\r\n  File \"C:\\Python27\\lib\\lib-tk\\Tix.py\", line 221, in __init__\r\n    self.tk.eval('package require Tix')\r\n_tkinter.TclError: can't find package Tix\r\nTool returned -1 \r\n\r\n\r\n\r\nNOTE: I am using: python 2.7.10. I am using pyinstaller: 3.0\r\nNOTE: When running the .py in python IDLE, the app. works fine.\r\nNOTE: I have tried -onefile and one-dir options. The same result.\r\nNOTE: As a workaround I will use the progressbarObj from ttk."},"comment":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/comments/155588540","html_url":"https://github.com/pyinstaller/pyinstaller/issues/1660#issuecomment-155588540","issue_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1660","id":155588540,"user":{"login":"matysek","id":527280,"avatar_url":"https://avatars.githubusercontent.com/u/527280?v=3","gravatar_id":"","url":"https://api.github.com/users/matysek","html_url":"https://github.com/matysek","followers_url":"https://api.github.com/users/matysek/followers","following_url":"https://api.github.com/users/matysek/following{/other_user}","gists_url":"https://api.github.com/users/matysek/gists{/gist_id}","starred_url":"https://api.github.com/users/matysek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matysek/subscriptions","organizations_url":"https://api.github.com/users/matysek/orgs","repos_url":"https://api.github.com/users/matysek/repos","events_url":"https://api.github.com/users/matysek/events{/privacy}","received_events_url":"https://api.github.com/users/matysek/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T22:30:22Z","updated_at":"2015-11-10T22:30:22Z","body":"@georgemunteanu look at these links:\r\n* https://github.com/pyinstaller/pyinstaller/wiki/If-Things-Go-Wrong\r\n* https://github.com/pyinstaller/pyinstaller/wiki/How-to-Report-Bugs"}}