Closed firebladed closed 3 years ago
ok looks like a result of having "output_file_name" missing from bom.ini causes the error for both python 3 and kicads own 2.7 python
@firebladed I have now reverted to use the original kibom_cli.py
script as it is much easier to support. Cheers
the readme for installing kibom in windows is unclear
the readme still mentions KiBOM_CLI.py in the quick start section
trying to use the 2.7 python from kicad appears not to work
C:\Program Files\KiCad\bin>pip install kibom
works howeverpython -m kibom "%I" "%O"
in the BOM window getsError messages: Traceback (most recent call last): File "C:\Program Files\KiCad\lib\python2.7/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "C:\Program Files\KiCad\lib\python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "C:\Program Files\KiCad\lib\python2.7\site-packages\kibom/__main__.py", line 198, in <module> main() File "C:\Program Files\KiCad\lib\python2.7\site-packages\kibom/__main__.py", line 170, in main pref.Read(config_file) File "C:\Program Files\KiCad\lib\python2.7\site-packages/kibom/preferences.py", line 143, in Read self.outputFileName = cf.get(self.SECTION_GENERAL, self.OPT_OUTPUT_FILE_NAME) File "C:\Program Files\KiCad\lib\python2.7/ConfigParser.py", line 340, in get raise NoOptionError(option, section) ConfigParser.NoOptionError: No option u'output_file_name' in section: u'BOM_OPTIONS'
trying with a separate install of python3 gets (with paths removed)