MCPcopy Create free account
hub / github.com/LCBOWER33/StegoScan / install_linux_dependencies

Function install_linux_dependencies

StegoScan.py:109–123  ·  view source on GitHub ↗

Ensure Linux-specific dependencies (like Poppler for pdf2image) are installed.

()

Source from the content-addressed store, hash-verified

107
108
109def install_linux_dependencies():
110 """Ensure Linux-specific dependencies (like Poppler for pdf2image) are installed."""
111
112 if platform.system() == "Linux":
113 try:
114 subprocess.run(["dpkg", "-s", "poppler-utils"], check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
115 prGreen("poppler-utils is already installed.")
116 except subprocess.CalledProcessError as e:
117 print("poppler-utils is not installed or not detected. Attempting to install...")
118 try:
119 subprocess.check_call(["sudo", "apt-get", "update"])
120 subprocess.check_call(["sudo", "apt-get", "install", "-y", "poppler-utils"])
121 prGreen("poppler-utils has been successfully installed.")
122 except subprocess.CalledProcessError as install_error:
123 prRed(f"Failed to install poppler-utils. Error: {install_error}")
124
125
126def run_script_in_venv():

Callers 1

StegoScan.pyFile · 0.85

Calls 2

prGreenFunction · 0.85
prRedFunction · 0.85

Tested by

no test coverage detected