sezanzeb / input-remapper

🎮 ⌨ An easy to use tool to change the behaviour of your input devices.
GNU General Public License v3.0
3.82k stars 158 forks source link

python dependencies not found via .deb, Intuos touch buttons #77

Closed paranoidfactoid closed 3 years ago

paranoidfactoid commented 3 years ago

foo@bukowski:\~/Desktop$ key-mapper-gtk -d --- Logging error --- Traceback (most recent call last): File "/usr/lib/python3/dist-packages/keymapper/logger.py", line 140, in name = pkg_resources.require('key-mapper')[0].project_name File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 901, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 787, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'pydbus' distribution was not found and is required by key-mapper

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.8/logging/init.py", line 1081, in emit msg = self.format(record) File "/usr/lib/python3.8/logging/init.py", line 925, in format return fmt.format(record) File "/usr/lib/python3/dist-packages/keymapper/logger.py", line 98, in format debug = is_debug() NameError: name 'is_debug' is not defined Call stack: File "/usr/bin/key-mapper-gtk", line 37, in from keymapper.logger import update_verbosity, log_info File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 783, in exec_module File "", line 219, in _call_with_frames_removed File "/usr/lib/python3/dist-packages/keymapper/logger.py", line 147, in logger.info('Could not figure out the version') Message: 'Could not figure out the version' Arguments: () 20315 0.03236 INFO logger.py:160: key-mapper-gtk 12c9ee6f443e3b454d1f18fc63b553095e549243 https://github.com/sezanzeb/key-mapper 20315 0.03241 INFO logger.py:168: key-mapper-gtk 12c9ee6f443e3b454d1f18fc63b553095e549243 https://github.com/sezanzeb/key-mapper 20315 0.03244 WARNING logger.py:174: Debug level will log all your keystrokes! Do not post this output in the internet if you typed in sensitive or private information with your device! Traceback (most recent call last): File "/usr/bin/key-mapper-gtk", line 53, in from keymapper.gui.window import Window File "/usr/lib/python3/dist-packages/keymapper/gui/window.py", line 33, in from keymapper.state import custom_mapping, system_mapping File "/usr/lib/python3/dist-packages/keymapper/state.py", line 29, in import evdev ModuleNotFoundError: No module named 'evdev'

foo@bukowski:\~/Desktop$ apt list | grep pydbus python-pydbus-doc/focal,focal 0.6.0-2build1 all python3-pydbus/focal,focal 0.6.0-2build1 all foo@bukowski:\~/Desktop$

paranoidfactoid commented 3 years ago

Note: grabbing the git source and using the build script generated a (seemingly) working .deb.

Don't know why!

paranoidfactoid commented 3 years ago

On a completely separate issue, the app recognizes button presses on my Wacom Intuos 3 and Intuos 4 tablets, it doesn't recognize either the touch sensitive strip on the 3 or the touch sensitive wheel on the 4. Interestingly, Gnome 3.36 system settings does recognize these so it's in the system driver and does actually work.

sezanzeb commented 3 years ago

Hi,

please run sudo evtest and produce the events for the touch-strip on the 3, afterwards share that log

jose1711 commented 3 years ago

You should really fix the issue title..

sezanzeb commented 3 years ago

if the problem with the deb is still reproducible, I'd like to see the logs generated by the installation of the release .deb file

and what happens if you run

python3
import evdev

but I guess since it correctly installed with the script all dependencies are already fixed

sezanzeb commented 3 years ago

checked with the intuos 5 a few days ago, the issue with my touch ring is that it doesn't send a direction, but rather the angle if I remember correctly. So it can only work as a single button in key-mapper.

I need the evtest output of your tablets otherwise I can't do anything

sezanzeb commented 3 years ago

Feel free to reopen once you have those logs