Skip to content

Fails to read ini config files #9

@twischer

Description

@twischer
./cp210x-program -I testdata/cp2102-orig.ini --write-cp210x

Traceback (most recent call last):
File "/home/timo/Beschreibungen/HOWTOs/usb2serial/cp210x-program/./cp210x-program", line 239, in
main()
File "/home/timo/Beschreibungen/HOWTOs/usb2serial/cp210x-program/./cp210x-program", line 235, in main
options.action(options)
File "/home/timo/Beschreibungen/HOWTOs/usb2serial/cp210x-program/./cp210x-program", line 169, in write_cp210x
values = valuefile.read_file(input_file(options.ini_input))
File "/home/timo/Beschreibungen/HOWTOs/usb2serial/cp210x-program/cp210x/valuefile.py", line 87, in read_file
cp.readfp(fp)
File "/usr/lib/python3.9/configparser.py", line 763, in readfp
self.read_file(fp, source=filename)
File "/usr/lib/python3.9/configparser.py", line 718, in read_file
self._read(f, source)
File "/usr/lib/python3.9/configparser.py", line 1093, in _read
raise DuplicateOptionError(sectname, optname,
configparser.DuplicateOptionError: While reading from 'testdata/cp2102-orig.ini' [line 15]: option '1500000' in section 'baudrate table' already exists

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions