erplibre/script/selenium
Mathieu Benoit c15d97f646 [FIX] selenium : rendre tkinter optionnel, il ne sert qu'au coffre
tkinter ne sert qu'au sélecteur de fichier du coffre, et seulement quand aucun
chemin KDBX n'est configuré. Importé en tête, il rendait tout le pilotage de
navigateur inimportable sur un Python bâti sans lui — donc sur tout serveur
sans paquet d'interface graphique.

Sans tkinter ni chemin configuré, get_kdbx journalise et rend None, comme le
fait déjà kdbx_manager. Vérifié : web_login.py --help sort en 0, et le chemin
dégradé appelé directement rend None.

--- EN ---

tkinter is only needed by the vault file picker, and only when no KDBX path is
configured. Imported at module level, it made the whole browser automation
unimportable on a Python built without it — that is, on any server with no
graphical toolkit package.

With no tkinter and no configured path, get_kdbx logs and returns None, as
kdbx_manager already does. Checked: web_login.py --help exits 0, and the
degraded path called directly returns None.

Assisted-by: Claude Opus 5
2026-09-14 05:10:46 -04:00
..
scenario [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
__init__.py [ADD] selenium script 2023-12-02 14:14:23 -05:00
combine_video.sh [ADD] script selenium video support 2025-04-12 17:06:09 -04:00
darkreader-firefox.xpi [UPD] script selenium update darkreader-firefox.xpi 2026-08-07 02:32:03 -04:00
install.base.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
install.fr.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
install.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
odoo_debug-4.0.xpi [ADD] selenium script 2023-12-02 14:14:23 -05:00
README.base.md [UPD] support: drop Ubuntu 20.04/22.04, add AlmaLinux and Rocky 2026-08-16 23:33:49 -04:00
README.fr.md [UPD] support: drop Ubuntu 20.04/22.04, add AlmaLinux and Rocky 2026-08-16 23:33:49 -04:00
README.md [UPD] support: drop Ubuntu 20.04/22.04, add AlmaLinux and Rocky 2026-08-16 23:33:49 -04:00
requirements.txt [UPD] erplibre pip requirement missing tldextract and PyYAML 2026-03-08 18:59:00 -04:00
selenium_lib.py [FIX] selenium : rendre tkinter optionnel, il ne sert qu'au coffre 2026-09-14 05:10:46 -04:00
selenium_video.py [FIX] selenium video: firefox windows size 2025-11-08 23:53:07 -05:00
web_login.py [FIX] security: the KeePass password leaves the command line too 2026-08-23 02:11:50 -04:00

Installation Ubuntu 24.04

sudo apt install libcairo2-dev