chrippa / ds4drv

A Sony DualShock 4 userspace driver for Linux
MIT License
1.05k stars 213 forks source link

Duplicate options in config file cause ds4drv to bail out #63

Closed parkerlreed closed 8 years ago

parkerlreed commented 9 years ago
[parker@lenovo ~]$ sudo ds4drv 
Traceback (most recent call last):
  File "/usr/bin/ds4drv", line 9, in <module>
    load_entry_point('ds4drv==0.5.0', 'console_scripts', 'ds4drv')()
  File "/usr/lib/python3.5/site-packages/ds4drv/__main__.py", line 132, in main
    options = load_options()
  File "/usr/lib/python3.5/site-packages/ds4drv/config.py", line 199, in load_options
    config.load(path)
  File "/usr/lib/python3.5/site-packages/ds4drv/config.py", line 74, in load
    self.read([filename])
  File "/usr/lib/python3.5/configparser.py", line 697, in read
    self._read(fp, filename)
  File "/usr/lib/python3.5/configparser.py", line 1090, in _read
    fpname, lineno)
configparser.DuplicateOptionError: While reading from '/etc/ds4drv.conf' [line 118]: option 'rel_wheelup' in section 'mapping:keyboard' already exists

The ds4drv.conf that comes with git has the options duplicated on line 118

hanetzer commented 8 years ago

I've ran into this same issue. Granted, its very simple to remove the offending lines, but what is in git should work out of box in my opinion.

Ape commented 8 years ago

I can confirm. Does anybody want to create a fix for this?

Ciruxx commented 5 years ago

Hello! Thank's for your job! I comment this issue because the exact same error occurred downloading the tarball in the Arch Linux environment!