electron / electron/build-tools
[for `npm test` electron src] No module named 'dbusmock' and 'gi'
- Dominant language
- TypeScript
- Stars
- 297
- Forks
- 83
- Avg merge
- 17h 23m
- Merged PRs (30d)
- 15
Description
Ran `e init --root=~/electron --bootstrap testing` to get an initial Electron build
Made changes to Electron code for https://github.com/electron/electron/pull/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
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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.