From 813ecd2f20c3493dd551e8920b682d7854fbfb49 Mon Sep 17 00:00:00 2001 From: Samarth Ralph Date: Mon, 3 Feb 2025 22:48:02 +0530 Subject: [PATCH] fixed requirment.txt and further see requirmentFix.txt for more commands --- requirements.txt | 3 +++ requiremnFix.txt | 55 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 requiremnFix.txt diff --git a/requirements.txt b/requirements.txt index 610856cb..5dce89a4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -24,3 +24,6 @@ text-unidecode==1.3 toml==0.10.2 urllib3==1.26.11 zipp==3.8.1 +//added +boto3==1.9.184 + diff --git a/requiremnFix.txt b/requiremnFix.txt new file mode 100644 index 00000000..67df0985 --- /dev/null +++ b/requiremnFix.txt @@ -0,0 +1,55 @@ + Recreate requirements.txt Manually +Try creating a new requirements.txt file manually with the following: + +cp requirements.txt requirements_backup.txt # Create a backup +nano requirements.txt # Open in an editor + + + + + + +Try Installing Packages Before Running python-inspector +Before running the python-inspector command, try installing the dependencies: + +bash +Copy +Edit +pip install -r requirements.txt + + + Use Python 3.11 Compatible Packages +Your requirements.txt file contains some old packages (e.g., arrow==0.10.0, bottle==0.12.12), which might not be fully compatible with Python 3.11. Try updating the package versions: + +bash +Copy +Edit +pip install --upgrade boto3 arrow bottle +Then regenerate requirements.txt using: + +bash +Copy +Edit +pip freeze > requirements.txt +5. Run python-inspector with Debugging +Try running python-inspector with --verbose to get more details: + +bash +Copy +Edit +python-inspector --python-version 311 --operating-system macos --json-pdt o.json --analyze-setup-py-insecurely --requirement /Users/gbuwa/IdeaProjects/terrestrial-pipeline/python/requirements.txt --verbose +This might give more insights into the specific package causing the issue. + +6. Check for a Broken Cache +Try clearing any cached dependencies: + +bash +Copy +Edit +pip cache purge +Then reinstall: + +bash +Copy +Edit +pip install -r requirements.txt \ No newline at end of file