[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Help with DBus Tests Failing for Python Package
From: |
Jaft |
Subject: |
Help with DBus Tests Failing for Python Package |
Date: |
Tue, 27 Dec 2022 04:15:59 +0000 (UTC) |
I'm attempting to package the Python package DasBus
(https://github.com/rhinstaller/dasbus/) and the tests, when it tries to test
by making DBus calls, are failing.
For specificity, the error output is:
> test_additional_arguments (tests.test_dbus.DBusExampleTestCase)
> Call a DBus method. ... **
> GLib-GIO:ERROR:../glib-2.70.2/gio/gtestdbus.c:667:start_daemon: assertion
> failed (error == NULL): Failed to execute child process “dbus-daemon” (No
> such file or directory) (g-exec-error-quark, 8)
> Bail out! GLib-GIO:ERROR:../glib-2.70.2/gio/gtestdbus.c:667:start_daemon:
> assertion failed (error == NULL): Failed to execute child process
> “dbus-daemon” (No such file or directory) (g-exec-error-quark, 8)
> error: in phase 'check': uncaught exception:
> %exception #<&invoke-error program: "python" arguments: ("-c" "import
> setuptools, tokenize;__file__='setup.py';f=getattr(tokenize, 'open',
> open)(__file__);code=f.read().replace('\r\n',
> '\n');f.close();exec(compile(code, __file__, 'exec'))" "test") exit-status:
> #f term-signal: 6 stop-signal: #f>
I tried using ~xorg-server-for-tests~ and initializing the server before the
=check= phase but I'm still running into the same error.
Would anyone know what might be a cause?
> (define-public python-dasbus
> (package
> (name "python-dasbus")
> (version "1.7")
> (source (origin
> (method url-fetch)
> (uri (pypi-uri "dasbus" version))
> (sha256 (base32
>
>"1xmn6q00v3kif5q8jcq6vi84k6xb97s2ry5rgdgyxs6z3a20v1d8"))))
> (build-system python-build-system)
> (arguments (list #:phases #~(modify-phases %standard-phases
> (add-before 'check 'start-xserver
> (lambda _
> (system "Xvfb :1 &")
> (setenv "DISPLAY" ":1"))))))
> (inputs (list python python-pygobject))
> (native-inputs (list xorg-server-for-tests))
> (home-page "https://github.com/rhinstaller/dasbus")
> (synopsis "DBus library in Python 3")
> (description "DBus library in Python 3")
> (license #f)))
- Help with DBus Tests Failing for Python Package,
Jaft <=