Package Details: ds4drv 0.5.1-5

Git Clone URL: https://aur.archlinux.org/ds4drv.git (read-only, click to copy)
Package Base: ds4drv
Description: Sony DualShock 4 Userspace Driver
Upstream URL: https://github.com/chrippa/ds4drv
Licenses: MIT
Conflicts: ds4drv-git
Submitter: Ape
Maintainer: daizhirui
Last Packager: daizhirui
Votes: 13
Popularity: 0.64
First Submitted: 2015-08-31 15:49 (UTC)
Last Updated: 2024-11-05 18:21 (UTC)

Latest Comments

1 2 Next › Last »

Konzertheld commented on 2024-12-10 15:37 (UTC) (edited on 2024-12-10 15:38 (UTC) by Konzertheld)

I can't start d24drv at all. According to their GitHub issues, the config included in the package is faulty when this happens. https://github.com/chrippa/ds4drv/issues/204

Removing the offending lines from the config solves the problem.

Traceback (most recent call last):
  File "/usr/bin/ds4drv", line 33, in <module>
    sys.exit(load_entry_point('ds4drv==0.5.1', 'console_scripts', 'ds4drv')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/ds4drv/__main__.py", line 132, in main
    options = load_options()
              ^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/ds4drv/config.py", line 199, in load_options
    config.load(path)
  File "/usr/lib/python3.12/site-packages/ds4drv/config.py", line 74, in load
    self.read([filename])
  File "/usr/lib/python3.12/configparser.py", line 684, in read
    self._read(fp, filename)
  File "/usr/lib/python3.12/configparser.py", line 1075, in _read
    raise DuplicateOptionError(sectname, optname,
configparser.DuplicateOptionError: While reading from '/etc/ds4drv.conf' [line 118]: option 'rel_wheelup' in section 'mapping:keyboard' already exists

daizhirui commented on 2024-11-05 18:23 (UTC)

@Deaver @mumblyomod Thanks for proposing a fix and verifying it.

mumblyomod commented on 2024-11-01 02:09 (UTC)

@Deaver thanks! Your fix worked for me too!

Deaver commented on 2024-10-07 02:10 (UTC)

@fell I was able to fix that error by changing the instances of SafeConfigParser to just ConfigParser in /usr/lib/python3.12/site-packages/ds4drv/config.py at lines 72 and 99

daizhirui commented on 2024-08-16 20:23 (UTC)

@Fell, could you try again? I cannot reproduce the error you got.

Fell commented on 2024-07-21 21:04 (UTC)

This package seems to be broken as of Python 3.12:

Traceback (most recent call last):
  File "/usr/bin/ds4drv", line 33, in <module>
    sys.exit(load_entry_point('ds4drv==0.5.1', 'console_scripts', 'ds4drv')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/ds4drv", line 25, in importlib_load_entry_point
    return next(matches).load()
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 205, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/lib/python3.12/site-packages/ds4drv/__main__.py", line 5, in <module>
    from .actions import ActionRegistry
  File "/usr/lib/python3.12/site-packages/ds4drv/actions/__init__.py", line 1, in <module>
    from ..action import ActionRegistry
  File "/usr/lib/python3.12/site-packages/ds4drv/action.py", line 1, in <module>
    from .config import add_controller_option
  File "/usr/lib/python3.12/site-packages/ds4drv/config.py", line 72, in <module>
    class Config(configparser.SafeConfigParser):
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

vagner995 commented on 2022-06-03 14:29 (UTC)

FYI: Had to comment lines (# before line) 118 and 119 in etc/ds4drv.conf for the program to work. These lines are mapping the same input twice with the ones above it and the config parser errors out.

gkun commented on 2019-06-22 10:08 (UTC)

I don't understand why a fix replacing a package in extra with an aur package which has an unsolved compile problem (see latest comment in https://aur.archlinux.org/packages/bluez-utils-compat/) can actually be considered a fix...

evgfilim1 commented on 2019-06-08 14:27 (UTC) (edited on 2019-06-08 14:28 (UTC) by evgfilim1)

There is an issue with this tool as it uses 'hcitool', which is deprecated upstream (https://wiki.archlinux.org/index.php/Bluetooth#Installation, see Note).

Fix: Replace bluez-utils with bluez-utils-compat in depends= section