Open BewilderedAgain opened 3 years ago
A bit more info...
I've made an attempt to find out what is happening with my very limited Python knowledge.
I made an edit to csv_writer to let me know if the csv file was opened without error, it was. A few lines later, writer.writerow() fails with a file closed error message. Is the problem that there needs to be some delay between opening and writing if it's to a file that's located on a drive using Samba?
My code at line 39 of csv_writer.py :
if (sys.version_info[0] >= 3):
with open(filename,"w", encoding='utf-8') as f:
try:
print("open() OK")
except:
print("open() error")
else:
f = open(filename, "w")
writer = csv.writer(f, delimiter=delimiter, lineterminator="\n")
if not prefs.hideHeaders:
if prefs.numberRows:
writer.writerow(["Component"] + headings)
else:
writer.writerow(headings)
I have a fix. This applies to Win 10 users. You need to enable NetBIOS. Instructions thanks to Ed Tittel
Hope this helps others.
Looks like it's running but no output files are generated.
Run command: python "C:\Program Files\KiBoM-master/KiBOM_CLI.py" "Z:\bmamps\Projects\MIDI_Clock\Pulse_RxTR330#1C\Pulse_Rx_TR330.xml" "Z:/bmamps/Projects/MIDI_Clock/Pulse_RxTR330#1C/Pulse_Rx_TR330.pdf"
Success Info messages: KiBOM version 1.8.0 Output directory: 'Z:\bmxmps\Projects\MIDI_Clock\Pulse_RxTR330#1C' Input: Z:\bmxmps\Projects\MIDI_Clock\Pulse_RxTR330#1C\Pulse_Rx_TR330.xml Configuration file: Z:\bmxmps\Projects\MIDI_Clock\Pulse_RxTR330#1C\bom.ini PCB variant: [u'default'] Saving BOM File: Z:\bmxmps\Projects\MIDI_Clock\Pulse_RxTR330#1C\Pulse_Rx_TR330_bom_A.csv
More testing suggests it doesn't support network drives using samba. Pity as that's central to my workflow.