Skip to content

I got error when run "yoke.py" in bin folder #67

Open

Description

@alr86

every run "yoke.py" in the bin folder said:

Traceback (most recent call last):
  File "/home/alr86/.local/lib/python3.11/site-packages/yoke/./yoke", line 2, in <module>
    import yoke
  File "/home/alr86/.local/lib/python3.11/site-packages/yoke/__init__.py", line 1, in <module>
    from yoke.service import Device, Service, EVENTS
  File "/home/alr86/.local/lib/python3.11/site-packages/yoke/service.py", line 13, in <module>
    import uinput
  File "/home/alr86/.local/lib/python3.11/site-packages/uinput/__init__.py", line 86, in <module>
    _libsuinput_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "_libsuinput" + sysconfig.get_config_var("SO")))
                                                                                     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TypeError: can only concatenate str (not "NoneType") to str

Activity

  1. changed the title [-]Can't run yoke[/-] [+]I got error when run "yoke.py" in bin folder[/+] on Nov 24, 2023
  2. ajburley commented on Dec 26, 2023

    @ajburley

    I get the same, even after pip installing and trying to run from the installed location.

    It seems to be due to this issue tuomasjjrasanen/python-uinput#44

    Due to that issue, running python-uinput in Python 3.11 or above will fail. So yoke will fail also.

    There is a fork of python-uinput mentioned in the comments of the above linked issue. So I guess yoke should be updated to use that fork instead, and the issue would be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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