SchrodingersGat / KiBoM

Configurable BoM generation tool for KiCad EDA (http://kicad.org/)
MIT License
352 stars 95 forks source link

configparser.NoOptionError for default generated bom.ini #146

Closed hkennyv closed 3 years ago

hkennyv commented 3 years ago

as the title says, the default bom.ini that is generated by kibom will raise a configparser.NoOptionError when you try to run it. the first exception that is raised is:

  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/configparser.py", line 792, in get
    raise NoOptionError(option, section)
configparser.NoOptionError: No option 'output_file_name' in section: 'BOM_OPTIONS'

and if you add the variant_file_name_format to the bom.ini and re-run it raises again:

  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/configparser.py", line 792, in get
    raise NoOptionError(option, section)
configparser.NoOptionError: No option 'variant_file_name_format' in section: 'BOM_OPTIONS'

it seems like there are a couple solutions:

I'll try to look into this later and put in a PR

set-soft commented 3 years ago

Which version of KiBoM are you using? Is the last from GitHub? This error should be fixed by #121 Also related to this PR in my fork: https://github.com/INTI-CMNB/KiBoM/pull/11

hkennyv commented 3 years ago

@set-soft is correct. i was using kibom v1.7.1 (which is the current version on pypi btw, can we get a new release?)

after cloning the repo and installing from the master branch, it works :+1: