[Bug 1227196] New: mygnuhealth fails on startup with "ModuleNotFoundError: No module named 'bleak'" in Tumbleweed container
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1227196 Bug ID: 1227196 Summary: mygnuhealth fails on startup with "ModuleNotFoundError: No module named 'bleak'" in Tumbleweed container Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: axel.braun@gmx.de Reporter: okurz@suse.com QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- ## Observation In a clean openSUSE Tumbleweed container I installed just mygnuhealth just to check if all necessary dependencies are provided and I found mygnuhealth eventually fails with "ModuleNotFoundError: No module named 'bleak'": ``` # mygnuhealth [WARNING] [Config ] Older configuration version detected (0 instead of 27) [WARNING] [Config ] Upgrading configuration in progress. [DEBUG ] [Config ] Upgrading from 0 to 1 [INFO ] [Logger ] Record log in /root/.kivy/logs/kivy_24-06-29_0.txt [INFO ] [Kivy ] v2.3.0 [INFO ] [Kivy ] Installed at "/usr/lib64/python3.11/site-packages/kivy/__init__.py" [INFO ] [Python ] v3.11.9 (main, Apr 08 2024, 06:18:15) [GCC] [INFO ] [Python ] Interpreter at "/usr/bin/python3.11" [INFO ] [Logger ] Purge log fired. Processing... [INFO ] [Logger ] Purge finished! [INFO ] [Factory ] 195 symbols loaded [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored) [INFO ] [Text ] Provider: sdl2(['text_pango'] ignored) Initializing MyGNUHealth version 2.2.0 MyGNUHealth local config and db files wil go into dir: /root/.config/mygnuhealth Initializing MyGNUHealth directory Configuration file not found. Writing defaults Verifying MyGNUHealth Database..... DB file not found. [INFO ] [Window ] Provider: sdl2 error: XDG_RUNTIME_DIR is invalid or not set in the environment. [INFO ] [GL ] Using the "OpenGL" graphics system [INFO ] [GL ] Backend used <sdl2> [INFO ] [GL ] OpenGL version [INFO ] [GL ] OpenGL vendor [INFO ] [GL ] OpenGL renderer [INFO ] [GL ] OpenGL parsed version: 4, 5 [INFO ] [GL ] Shading version [INFO ] [GL ] Texture max size <16384> [INFO ] [GL ] Texture max units <32> [INFO ] [Window ] auto add sdl2 input provider [INFO ] [Window ] virtual keyboard not allowed, single mode, not docked Traceback (most recent call last): File "/usr/bin/mygnuhealth", line 5, in <module> from mygnuhealth import main File "/usr/lib/python3.11/site-packages/mygnuhealth/main.py", line 76, in <module> from mygnuhealth.bluetooth_settings import BluetoothSettings as bluetooth File "/usr/lib/python3.11/site-packages/mygnuhealth/bluetooth_settings.py", line 30, in <module> from bleak import BleakScanner ModuleNotFoundError: No module named 'bleak' ``` ## Steps to reproduce * Run `podman run --pull=newer --rm -it registry.opensuse.org/opensuse/tumbleweed sh -c 'zypper -n in mygnuhealth && mygnuhealth'` ## Expected result mygnuhealth should fail with clear error messages (which might already show up) but should not fail with a not found module ## Suggestions * Obviously there is no good realistic use case behind running mygnuhealth in a headless container but maybe this just needs simple fixing of package runtime dependencies -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1227196
https://bugzilla.suse.com/show_bug.cgi?id=1227196#c1
--- Comment #1 from Oliver Kurz
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1227196
https://bugzilla.suse.com/show_bug.cgi?id=1227196#c2
--- Comment #2 from Axel Braun
participants (1)
-
bugzilla_noreply@suse.com