EEschema BOM Generate hangs on Windows BATCH file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Invalid
|
Undecided
|
Unassigned |
Bug Description
In Windows when the command line in the EEschema BOM generator is a batch file, KiCad hangs completely.
It appears to hang in a busy state. It can only be killed through the Windows Tasks Manager where you need to kill KiCad, the Bill Of Material window and also in the process list ensure that kicad.exe is killed too.
The problem seems related to the recently introduced feature that reports the result of the executed command in the 'Plugin Info:' window in the Bill of Material dialog.
When used with a direct executable (e.g. python.exe) it executes and reports correctly.
When the option wxEXEC_SHOW_CONSOLE is added to the wxExecute (line 107 in eeschema/
Also, when I change eechema/
So this is something with wxExecute and its I/O redirect as the simpler ProcessExecute which also uses wxExecute works correctly.
Further to this. With the wxEXEC_SHOW_CONSOLE in there and the ability to kill the CMD window, the dialog info windows displays some output like. Note what seems like a recursion occuring. Richt after the first 'Command Error' there is a new 'Run Command' and a further one in the text of the 'Info messages'
Run command: Python27\ python_ pause.bat "W:\Development Tools\KiCad\ scripts\ Bom\bom\ bom_csv_ element14. py" "W:\Projects\ AT-GNSS\ electronics\ AT-GNSS- 01.xml" "W:\Projects\ AT-GNSS\ electronics\ AT-GNSS- 01-BOM- Element14. csv"
C:\Tools\
Command error. Return code -1073741510 Python27\ python_ pause.bat "W:\Development Tools\KiCad\ scripts\ Bom\bom\ bom_csv_ element14. py" "W:\Projects\ AT-GNSS\ electronics\ AT-GNSS- 01.xml" "W:\Projects\ AT-GNSS\ electronics\ AT-GNSS- 01-BOM- Element14. csv"
Run command:
C:\Tools\
Info messages: Python27\ python_ pause.bat "W:\Development Tools\KiCad\ scripts\ Bom\bom\ bom_csv_ element14. py" "W:\Projects\ AT-GNSS\ electronics\ AT-GNSS- 01.xml" "W:\Projects\ AT-GNSS\ electronics\ AT-GNSS- 01-BOM- Element14. csv"
Python returned 1 !Press any key to continue . . . Run command:
C:\Tools\
Info messages:
Error messages:
ImportError: No module named site