skip to Main Content

Ubuntu – pip WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) error

I faced error which is pip can't download packages the error is ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/f5/11/fc3de994aa4648632f3512ca18686fb82e6f250d82dda544a09f96726dae/pipenv-2023.11.15-py3-none-any.whl.metadata (Caused by NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f23739c9d60>: Failed to establish a new…

VIEW QUESTION

Visual Studio Code – PyAutoGUI error (python, visual studio, MacOS)

I have a simple python script in visual studio on MacOS. Everytime I try to run it I get the following error please help! enter image description here Kyles-MacBook-Pro-12:Python brogan$ cd /Users/brogan/Desktop/Python ; /usr/bin/env /usr/local/bin/python3 /Users/brogan/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 56397 -- /Users/brogan/Desktop/Python/AutoGUI.py Traceback…

VIEW QUESTION

Mongodb – pymongo count_doucment() not working with datetime

Hi i am trying to query data from mongodb using python = 3.8, django=4.2.2, arrow==1.2.3 pymongo = 3.13.0, mongodb is serverless. this is my filter object filter['created_at']={ '$gte': arrow.now(settings.LOCAL_TIME_ZONE).shift(hours=-24).span('day')[0].to(settings.TIME_ZONE).datetime, '$lt': arrow.now(settings.LOCAL_TIME_ZONE).span('day')[1].to(settings.TIME_ZONE).datetime, } when i print filter['created_at'] i get output as…

VIEW QUESTION

Reformatting a json tree using python

I have a json tree at hand, I want to reformat it. **The input is somewhat like : ** [ { "archive":{ "LOGS":{ "_files":[ "zomp_download_20220601170001.log", "zomp_download_20220626170002.log" ] }, "SUMMARY":{ "_files":[ "SUMMARY_zomp_report_2022-04-01.csv", "SUMMARY_zomp_report_2022-06-25.csv" ] }, "_files":[ "lexter_report_2022-04-01.csv", "lexter_report_2022-06-25.csv" ] } }…

VIEW QUESTION
Back To Top
Search