[issue18655] GUI apps take long to launch on Windows
New submission from netrick: On both Python 2 or 3, when you have GUI app (for example something in pygame or pyside or tk), when you launch it on Windows it takes about 4-6 seconds to display the Window for the first run. The next runs are faster, but only untill you reboot the PC. The thing is that on Linux even when launching the script for first time ever, the GUI Window shows instantly. Something how Python displays windows on Windows is wrong, there is something that causes the serious lag. You can see it very easy with IDLE. On Linux it launches instantly, on Windows XP on the same PC takes about 6 seconds to launch. I asked other people with different config and they have the same issue on Windows. -- components: Windows messages: 194374 nosy: netrick priority: normal severity: normal status: open title: GUI apps take long to launch on Windows type: performance versions: Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18655 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18655] GUI apps take long to launch on Windows
netrick added the comment: The simplest way to reproduce it is: 1) Reboot your PC 2) Launch IDLE (pre-installed with Python) 3) Look how long it takes to launch and then compare that with instant launch on Linux -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18655 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17290] pythonw - loading cursor bug when launching scripts
netrick added the comment: Mark, you are my hero! I can't believe it got fixed that fast. I confirm that for me, the fix works. I just replaced pyw.exe in python33 folder and the bug is gone. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17290] pythonw - loading cursor bug when launching scripts
netrick added the comment: Vinay, is there a chance that the fix will be included in 3.3.1? If not, is there a chance to create a python 3.3 installer with the patched pyw.exe? As I know nothing of python packaging so I have no idea how to do it and it would be very handy for me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17290] pythonw - loading cursor bug when launching scripts
netrick added the comment: Well actually it IS a photo, so I think it can remain .jpg (because on print screen there is no cursor). Thanks for the temporary solution, altough I'm not sure if pyside/pygame etc will allow me to change busy cursor too. Is there any chance for this to be fully fixed? It is a regression as it isn't present in previous releases, my bet is new windows launcher which does some work in the background. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17290] pythonw - loading cursor bug when launching scripts
netrick added the comment: The issue is NOT present in python 3.2. I'm not expert, but given that it work in 3.2 and works in 3.3 using direct pythonw command, I'm almost sure it's new windows launcher. Even if I'm wrong, you guys can be sure that the issue appeared in 3.3 so there are only few possibilities. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17290] pythonw - loading cursor bug when launching scripts
netrick added the comment: My OS is Windows XP so it may be only XP related. So, python 3.3 and my testing: 1) pythonw app.pyw - no bug 2) python app.pyw - no bug 3) pyw app.pyw - no bug 4) py app.pyw - no bug 5) double click on app.pyw - BUG Tested on 2 different computers with exactly the same results. Both windows xp. Now I'm a little bit lost as running directly pyw app.pyw doesn't cause the bug. However I read that the launcher assigns .pyw files in windows to some .bat script instead of pure pyw.exe. How can we check it? We need to dig into what exactly is started when .pyw script is run through double click. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17290] pythonw - loading cursor bug when launching scripts
netrick added the comment: So: 1) assoc .pyw # - Python.NoConFile gives an error that it can't find association for .pyw extension 2) opening terminal in proper directory and typing just app.pyw gives error that this is not known command I did small test. Using normal (from explorer) open with + always use this program to open this file, firstly I associated .pyw to pythonw.exe - there is no bug when double clicking. Then, I changed it to pyw.exe and the bug reappeared when double clicking. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17290] pythonw - loading cursor bug when launching scripts
netrick added the comment: I can use assoc command for .py extension but I can't for .pyw. Maybe that's some clue... The strange thing is that explicit pyw.exe app.pyw gives no bug, and associating .pyw files to pyw.exe gives the bug when double clicking. Honestly I have no idea what's going on. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17290] pythonw - loading cursor bug when launching scripts
netrick added the comment: And remember that on the exactly the same computers when I uninstalled python 3.3 and installed python 3.2, everything works flawlessy (because python 3.2 sets .pyw files to open through pythonw.exe). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17290] pythonw - loading cursor bug when launching scripts
netrick added the comment: Well I did fresh install of windows xp and encountered it. On the other pc with xp I tried it is also present. I don't know why I encounter this, I must try more PCs. If you have xp, please try if you can reproduce the issue and post your result here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17290] pythonw - loading cursor bug when launching scripts
netrick added the comment: Differences: [HKEY_CLASSES_ROOT\Python.CompiledFile\DefaultIcon] @=F:\Python33\DLLs\pyc.ico [HKEY_CLASSES_ROOT\Python.CompiledFile\shell\open] value not set [HKEY_CLASSES_ROOT\Python.File\DefaultIcon] @=F:\Python33\DLLs\py.ico [HKEY_CLASSES_ROOT\Python.File\shell\open] value not set [HKEY_CLASSES_ROOT\Python.NoConFile\DefaultIcon] @=F:\Python33\DLLs\py.ico [HKEY_CLASSES_ROOT\Python.NoConFile\shell\open] value not set I once agained formatted partition and installed brand new windows, installed drivers and SP3, then python 3.3 and the behaviour is still the same. As for my python installation, I didn't set anything, just clicked through install. And set install for all users. Also, I tried another XP machine and the bug was there. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17290] pythonw - loading cursor bug when launching scripts
netrick added the comment: Well I installed python using standard python 3.3.0.msi from python.org, so maybe there is something wrong with setting registry keys? I downloaded standalone launcher from bitbucket and the results are the same: 1) command line pyw.exe app.pyw no bug 2) I assigned that standalone launcher to open .pyw files (tried .pyw1 also for unique extension) and in both cases when double clicked in explorer the bug existed -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17290] pythonw - loading cursor bug when launching scripts
netrick added the comment: Of course, the py.exe launcher with console (both standalone and from python 3.3) DOES NOT produce the error even when launching with double click. It's only pyw.exe double click thing. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17290] pythonw - loading cursor bug when launching scripts
New submission from netrick: Firstly, just to mention - the issue that I will describe doesn't exist in python 2.7. It is python3 and windows related (python 3.3 for sure, didn't test previous). I also tested it on 2 different PCs (one fresh windows install, second long running with different hardware), so it's not my OS messed up. So - the issue appears with every gui script I tried (PySide and tkinter, various codes). Basically when I have the script saved as *.py, everything is great but there is unwanted console. So I save the script as *.pyw to run it using pythonw without console. When I run it there is indeed no console, but for the first 10-15 seconds no matter what I do the cursor is loading cursor, everywhere in Windows. (see the screen I uploaded to this issue). I can click everything but the cursor won't return to normal for about 15 secs. Of course, the cursor is normal when using standard python 3.3 (with console) or pythonw 2.7. The code pasted from 3.3 documentation which reproduces the problem: #START CODE import tkinter as tk class Application(tk.Frame): def __init__(self, master=None): tk.Frame.__init__(self, master) self.pack() self.createWidgets() def createWidgets(self): self.hi_there = tk.Button(self) self.hi_there[text] = Hello World\n(click me) self.hi_there[command] = self.say_hi self.hi_there.pack(side=top) self.QUIT = tk.Button(self, text=QUIT, fg=red, command=root.destroy) self.QUIT.pack(side=bottom) def say_hi(self): print(hi there, everyone!) root = tk.Tk() app = Application(master=root) app.mainloop() #END CODE To sum up, the issue is present with pythonw 3.3 on Windows XP 32 bit. BUT! When I typed in terminal: ftype Python.File=C:\Python33\pythonw.exe %1 %* then every .py file started to be run using pythonw. What matters is in that case, there is no loading cursor at all! Add to it that in python 2.7 the issue doesn't exist and I think that in recent windows packages something with extensions is messed up. I have no idea what, but this stops me from using python3 for serious GUI development on windows (which is something I really want to do). I wanted to write some commercial GUI apps using python, but I can't say my customers to type that line in terminal. Also, they won't accept terminal or 15 sec loading cursor. It's just unwanted thing. Right now I have to use python 2.7, but I like python 3 much more. I think it's something with the way .pyw extension is handled as something adds that loading cursor. Python is the best, I hope that you will be able to fix it! -- components: Installation, Tkinter, Windows files: AZb4toA.jpg messages: 182895 nosy: netrick priority: normal severity: normal status: open title: pythonw - loading cursor bug when launching scripts type: behavior versions: Python 3.3 Added file: http://bugs.python.org/file29224/AZb4toA.jpg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17290] pythonw - loading cursor bug when launching scripts
netrick added the comment: I just want to add that it *may* be the issue with the new windows launcher introtuced in 3.3. Because in 2.7 everything runs great and running through pythonw command works flawlessy as well. I think it's worth to look into it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com