Closed BuGz91 closed 12 months ago
Update BingImageCreator or try update cookies again
pip install BingImageCreator --upgrade
I change the cookies, and have the last version of BingImageCreator: pip install BingImageCreator --upgrade Defaulting to user installation because normal site-packages is not writeable Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: BingImageCreator in /home/pi/.local/lib/python3.11/site-packages (0.5.0) Requirement already satisfied: httpx in /home/pi/.local/lib/python3.11/site-packages (from BingImageCreator) (0.24.1) Requirement already satisfied: regex in /home/pi/.local/lib/python3.11/site-packages (from BingImageCreator) (2023.8.8) Requirement already satisfied: requests in /home/pi/.local/lib/python3.11/site-packages (from BingImageCreator) (2.31.0) Requirement already satisfied: certifi in /home/pi/.local/lib/python3.11/site-packages (from httpx->BingImageCreator) (2023.7.22) Requirement already satisfied: httpcore<0.18.0,>=0.15.0 in /home/pi/.local/lib/python3.11/site-packages (from httpx->BingImageCreator) (0.17.3) Requirement already satisfied: idna in /home/pi/.local/lib/python3.11/site-packages (from httpx->BingImageCreator) (3.4) Requirement already satisfied: sniffio in /home/pi/.local/lib/python3.11/site-packages (from httpx->BingImageCreator) (1.3.0) Requirement already satisfied: charset-normalizer<4,>=2 in /home/pi/.local/lib/python3.11/site-packages (from requests->BingImageCreator) (3.2.0) Requirement already satisfied: urllib3<3,>=1.21.1 in /home/pi/.local/lib/python3.11/site-packages (from requests->BingImageCreator) (1.26.16) Requirement already satisfied: h11<0.15,>=0.13 in /home/pi/.local/lib/python3.11/site-packages (from httpcore<0.18.0,>=0.15.0->httpx->BingImageCreator) (0.14.0) Requirement already satisfied: anyio<5.0,>=3.0 in /home/pi/.local/lib/python3.11/site-packages (from httpcore<0.18.0,>=0.15.0->httpx->BingImageCreator) (3.7.1)
And the same error: ERROR src.imageCreate -> Error while create image: Redirect failed Traceback (most recent call last): File "/home/pi/BING/src/imageCreate.py", line 20, in create_image images = await image_generator.get_images(prompt) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pi/.local/lib/python3.11/site-packages/BingImageCreator.py", line 312, in get_images raise Exception("Redirect failed") Exception: Redirect failed
Emmm, l'm not sure what going run, try vpn or use another account cookies. I will keep looking for a solution.
Update new version, the problem was solved
I give this error in terminal, when i want to a generate a image:
Traceback (most recent call last): File "/home/pi/BING/src/imageCreate.py", line 20, in create_image images = await image_generator.get_images(prompt) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pi/.local/lib/python3.11/site-packages/BingImageCreator.py", line 312, in get_images raise Exception("Redirect failed") Exception: Redirect failed