From 217dc0dab30f64afcd925592706385ab38c2ad6d Mon Sep 17 00:00:00 2001 From: usmannasir Date: Mon, 25 Nov 2024 14:27:13 +0500 Subject: [PATCH] bug fix: issues with python packages --- plogical/IncScheduler.py | 2 -- plogical/applicationInstaller.py | 4 ++-- requirments.txt | 7 +++---- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/plogical/IncScheduler.py b/plogical/IncScheduler.py index 1ee4a8f8f..b42623e32 100644 --- a/plogical/IncScheduler.py +++ b/plogical/IncScheduler.py @@ -1389,9 +1389,7 @@ def RemoteBackup(function): @staticmethod def SendTORemote(FileName, RemoteBackupID): - import pysftp import json - import pysftp as sftp from websiteFunctions.models import RemoteBackupConfig try: diff --git a/plogical/applicationInstaller.py b/plogical/applicationInstaller.py index 910e57d09..0f89134dc 100755 --- a/plogical/applicationInstaller.py +++ b/plogical/applicationInstaller.py @@ -3015,8 +3015,8 @@ def RestoreWPbackupNow(self): from managePHP.phpManager import PHPManager from websiteFunctions.website import WebsiteManager from packages.models import Package - import pysftp - import pysftp as sftp + #import pysftp + #import pysftp as sftp import boto3 if os.path.exists(ProcessUtilities.debugPath): diff --git a/requirments.txt b/requirments.txt index e0efc946b..c3d63c1c8 100755 --- a/requirments.txt +++ b/requirments.txt @@ -4,7 +4,7 @@ boto3==1.34.153 botocore==1.34.153 cloudflare==2.8.13 cryptography==43.0.0 -cffi==1.14.3 +cffi Django==4.2.14 docker==7.1.0 google-api-core==2.19.1 @@ -14,14 +14,13 @@ google-auth-httplib2==0.2.0 google-auth-oauthlib==1.2.1 googleapis-common-protos==1.63.2 ipaddress==1.0.23 -mysqlclient==2.0.1 +mysqlclient oauthlib==3.2.2 paramiko==3.4.1 pexpect==4.9.0 -psutil==5.7.3 +psutil py3dns==4.0.2 pyOpenSSL==24.2.1 -pysftp==0.2.9 pyotp PyYAML==6.0.1 requests==2.32.3