Giter Club home page Giter Club logo

bingimagecreator's Introduction

yihong0618

😄 你好~ 我是 yihong0618,生活工作在大连。 喜爱游戏跑步读书,编程和有趣的东西。 项目大多和这些相关。

你可以到我的网站来玩, 📫 如果你想聊聊,可以给我发邮件, 也可以来到我的 tg 频道

也欢迎赞助我杯可乐 Sponsor Me

爱发电:s

Yesterday you said tomorrow.

记录下的跑步 13 年。

bingimagecreator's People

Contributors

coolplaylin avatar doevent avatar evolvedghost avatar fbarbe00 avatar fredi-python avatar mic92 avatar qcgm1978 avatar richardoc avatar spike014 avatar vmtask avatar xnny avatar yihong0618 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bingimagecreator's Issues

'NoneType' object has no attribute 'extract_cookies'

Hi there,
First of all, thank you for fixing this library, I was worried nobody was going to maintain it after it got archived. If you could help with this it would be greatly appreciated.

So I've tried using this library and I'm running into this error.
Oddly enough, this error does not happen in the original repository this forked off of. I'm using a Docker container and I can swap between yours and the old repository, and that one doesn't have this issue.

Traceback (most recent call last):
  File "/usr/src/app/bingGPT.py", line 111, in ask
    return image_generator.get_images(image_request.prompt)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/BingImageCreator.py", line 133, in get_images
    response = self.session.post(
               ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/requests/sessions.py", line 637, in post
    return self.request("POST", url, data=data, json=json, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/requests/sessions.py", line 719, in send
    extract_cookies_to_jar(self.cookies, request, r.raw)
  File "/usr/local/lib/python3.11/site-packages/requests/cookies.py", line 137, in extract_cookies_to_jar
    jar.extract_cookies(res, req)
    ^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'extract_cookies'

It seems to me that Requests itself is the one at fault? I couldn't find what would cause this from your code.
Looking at git blame I can't find any single line that would cause an error like this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.