Issue34029
Created on 2018-07-03 09:20 by rsteel1, last changed 2022-04-11 14:59 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| minimal_file.py | rsteel1, 2018-07-03 09:56 | |||
| Messages (5) | |||
|---|---|---|---|
| msg320949 - (view) | Author: Ryan (rsteel1) * | Date: 2018-07-03 09:20 | |
I'm creating a GUI application that needs to give the user the option to change a folder that's used for saving data. I managed to track it down to the import of pywinauto to the application. All other filedialogs seem to work, it's only askdirectory that's having issues. I've attached a small file that shows the crash - if you comment out the pywinauto import, no crash occurs. |
|||
| msg320963 - (view) | Author: Ryan (rsteel1) * | Date: 2018-07-03 11:23 | |
It seems reinstalling pywinauto has fixed this issue for now - I have no idea what could have caused it in the first place though. |
|||
| msg320982 - (view) | Author: Ryan (rsteel1) * | Date: 2018-07-03 13:28 | |
Okay so I'm an idiot and forgot that I'd commented out the pywinauto import in one of my project files, which is how I found out that was the issue in the first place. Crash is still occurring after a pywinauto reinstall. |
|||
| msg321079 - (view) | Author: Tal Einat (taleinat) * ![]() |
Date: 2018-07-05 06:13 | |
Confirmed with Python 3.6.3 on Windows 10 64-bit: It hangs showing an empty window. Debugging a bit, the hang happens in Lib/tkinter/commondialog.py, line 43: s = w.tk.call(self.command, *w._options(self.options)) The value of self.command is 'tk_chooseDirectory', and w._options(self.options) just gives an empty tuple, so the actual call is: s = w.tk.call('tk_chooseDirectory', ()) This means that the hang is within w.tk.call(). I'd follow this up with the pywinauto devs. To me this doesn't seem like something wrong with the tkinter module. |
|||
| msg321198 - (view) | Author: Terry J. Reedy (terry.reedy) * ![]() |
Date: 2018-07-07 01:51 | |
Ryan: this tracker only covers issues with the PSF CPython distribution. Problems with 3rd party modules like pywinauto are not our responsibility until someone determines that its misbehavior reflects a CPython bug. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:59:02 | admin | set | github: 78210 |
| 2018-07-07 01:51:45 | terry.reedy | set | status: open -> closed nosy:
+ terry.reedy resolution: third party |
| 2018-07-05 06:13:03 | taleinat | set | nosy:
+ taleinat messages: + msg321079 |
| 2018-07-03 13:28:00 | rsteel1 | set | status: closed -> open messages: + msg320982 |
| 2018-07-03 11:23:54 | rsteel1 | set | status: open -> closed messages:
+ msg320963 |
| 2018-07-03 09:56:05 | rsteel1 | set | files: + minimal_file.py |
| 2018-07-03 09:21:41 | rsteel1 | set | title: tkinter.filedialog.askdirectory() crashing before dialog opens -> tkinter.filedialog.askdirectory() crashing before dialog opens when importing pywinauto |
| 2018-07-03 09:20:43 | rsteel1 | set | nosy:
+ serhiy.storchaka |
| 2018-07-03 09:20:25 | rsteel1 | create | |
