Skip to content

[for npm test electron src] No module named 'dbusmock' and 'gi' #790

@alexsch01

Description

@alexsch01

Ran e init --root=~/electron --bootstrap testing to get an initial Electron build

Made changes to Electron code for electron/electron#49290

Ran e build, it works


Tried to run npm test in electron/src/electron directory


Says it's missing node_headers in gen folder

Ran e build --target electron:node_headers

Now it says

Running: Main process specs
Running: python3 /home/alex/electron/src/electron/script/dbus_mock.py /home/alex/electron/src/out/Testing/electron electron/spec
Traceback (most recent call last):
  File "/home/alex/electron/src/electron/script/dbus_mock.py", line 7, in <module>
    from dbusmock import DBusTestCase
ModuleNotFoundError: No module named 'dbusmock'
✗ Electron tests failed with code 1.

Additionally

ModuleNotFoundError: No module named 'gi'

showed up when running the same script as above after the above steps


OS: Fedora 43
NodeJS: v22.21.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions