fix yara scanner issues and bump version to 1.2.5
This commit is contained in:
+7
-6
@@ -28,16 +28,17 @@ def check_and_install_dependencies():
|
||||
'pysocks': 'PySocks',
|
||||
}
|
||||
|
||||
missing_packages = []
|
||||
for module_name, package_name in required_packages.items():
|
||||
try:
|
||||
importlib.import_module(module_name)
|
||||
except ImportError:
|
||||
print(f"[WARNING] {package_name} not found, trying to install...")
|
||||
try:
|
||||
subprocess.check_call([sys.executable, "-m", "pip", "install", package_name])
|
||||
print(f"[INFO] Successfully installed {package_name}")
|
||||
except Exception as e:
|
||||
print(f"[ERROR] Failed to install {package_name}: {str(e)}")
|
||||
missing_packages.append(package_name)
|
||||
|
||||
if missing_packages:
|
||||
print(f"[WARNING] Missing required dependencies: {', '.join(missing_packages)}.")
|
||||
print(f"[INFO] Please install them using: pip install {' '.join(missing_packages)}")
|
||||
print(f"[INFO] Alternatively, install all requirements: pip install -r requirements.txt")
|
||||
|
||||
try:
|
||||
check_and_install_dependencies()
|
||||
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
[project]
|
||||
name = "ComfyUI_Gemini_Expanded_API"
|
||||
description = "Node for usage of Gemini API"
|
||||
version = "1.2.4"
|
||||
version = "1.2.5"
|
||||
license = {file = "LICENSE"}
|
||||
dependencies = ["google-genai", "numpy", "torch"]
|
||||
dependencies = ["google-genai", "numpy", "torch", "requests", "PySocks"]
|
||||
|
||||
[project.urls]
|
||||
Repository = "https://github.com/silveroxides/ComfyUI_Gemini_Expanded_API"
|
||||
|
||||
+2
-1
@@ -2,4 +2,5 @@ google-genai>=1.51.0
|
||||
numpy
|
||||
torch
|
||||
Pillow
|
||||
torch
|
||||
requests
|
||||
PySocks
|
||||
|
||||
Reference in New Issue
Block a user