From 4c9ab617e3327f45cf966d1fd7a7c8680e74061e Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sun, 15 Jun 2025 17:57:22 +0000 Subject: [PATCH] dpcs: rm some instances of "sudo pip" recommendations we should not recommend users to invoke pip with sudo --- contrib/deterministic-build/find_restricted_dependencies.py | 2 +- electrum/gui/qml/qeapp.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/deterministic-build/find_restricted_dependencies.py b/contrib/deterministic-build/find_restricted_dependencies.py index 476e81018..5cc2c45f3 100755 --- a/contrib/deterministic-build/find_restricted_dependencies.py +++ b/contrib/deterministic-build/find_restricted_dependencies.py @@ -4,7 +4,7 @@ import sys try: import requests except ImportError as e: - sys.exit(f"Error: {str(e)}. Try 'sudo python3 -m pip install '") + sys.exit(f"Error: {str(e)}. Try 'python3 -m pip install '") def is_dependency_edge_blacklisted(*, parent_pkg: str, dep: str) -> bool: """Sometimes a package declares a hard dependency diff --git a/electrum/gui/qml/qeapp.py b/electrum/gui/qml/qeapp.py index 5908a8107..49772dba4 100644 --- a/electrum/gui/qml/qeapp.py +++ b/electrum/gui/qml/qeapp.py @@ -171,7 +171,7 @@ class QEAppController(BaseCrashReporter, QObject): ) notification.notify('Electrum', message, app_icon=icon, app_name='Electrum') except ImportError: - self.logger.warning('Notification: needs plyer; `sudo python3 -m pip install plyer`') + self.logger.warning('Notification: needs plyer; `python3 -m pip install plyer`') except Exception as e: self.logger.error(repr(e))