Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'NoneType' object is not subscriptable while generating imaged #18

Open
onur222 opened this issue May 31, 2024 · 2 comments
Open
Labels
invalid This doesn't seem right

Comments

@onur222
Copy link

onur222 commented May 31, 2024

File "/gemini_webapi/client.py", line 370, in <listcomp> url=image[0][3][3], ~~~~~~~~^^^ TypeError: 'NoneType' object is not subscriptable

I receive this error while running this code:

`

async def main():
    client = GeminiClient(proxies=None)
    # Create Layout

    response = await client.generate_content("Generate some pictures of cats")
    print(response)

asyncio.run(main())

`

@HanaokaYuzu
Copy link
Owner

HanaokaYuzu commented May 31, 2024

Cannot reproduce. Does this happen every time or randomly? And can you try this prompt on https://gemini.google.com/app and see if it works?

@HanaokaYuzu HanaokaYuzu added the invalid This doesn't seem right label May 31, 2024
@onur222
Copy link
Author

onur222 commented Jun 7, 2024

I happens every time.
The code can produce images but links to those images are not returned.
I can see the images on https://gemini.google.com/app

I also can produce images on https://gemini.google.com/app with the same prompt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
2 participants