Skip to content

ninja did'nt run and throw some errors (ninja: build stopped: subcommand failed.) #81

Description

@lucoda

Hello dear opeanRazer Community,

here's the error code from the Terminal:

$ sudo ninja run
[0/1] Regenerating build files.
The Meson build system
Version: 0.45.1
Source dir: /opt/git/razerCommander
Build dir: /opt/git/razerCommander/builddir
Build type: native build
Project name: razercommander
Build machine cpu family: x86_64
Build machine cpu: x86_64
Configuring org.gabmus.razercommander.desktop using configuration
Configuring org.gabmus.razercommander.service using configuration
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Native dependency glib-2.0 found: YES 2.56.3
Program glib-compile-schemas found: YES (/usr/bin/glib-compile-schemas)
Configuring razercommander using configuration
Program scripts/meson_post_install.py found: YES (/usr/bin/env python3 /opt/git/razerCommander/scripts/meson_post_install.py)
Build targets in project: 3
Found ninja-1.8.2 at /usr/bin/ninja
[0/1] Running external command run.
Traceback (most recent call last):
  File "/opt/git/razerCommander/builddir/bin/razercommander", line 50, in <module>
    from razercommander import __main__
  File "/opt/git/razerCommander/razercommander/__main__.py", line 47, in <module>
    check_plugdev()
  File "/opt/git/razerCommander/razercommander/__main__.py", line 28, in check_plugdev
    if os.path.isfile('{}/flatpak-info'.format(os.environ['XDG_RUNTIME_DIR'])):
  File "/usr/lib/python3.6/os.py", line 669, in __getitem__
    raise KeyError(key) from None
KeyError: 'XDG_RUNTIME_DIR'
FAILED: meson-run 
/usr/bin/python3 /usr/bin/meson --internal commandrunner /opt/git/razerCommander /opt/git/razerCommander/builddir bin /usr/bin/python3 /usr/bin/meson /opt/git/razerCommander/builddir/bin/razercommander
ninja: build stopped: subcommand failed.

Do you have any ideeas how to Fix it?

Thank you in Future

Best regards
Lucoda

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions