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
Back To Top
Search