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

'ResourceExhausted' object is not iterable #114

Open
hongha1412 opened this issue Aug 16, 2024 · 0 comments
Open

'ResourceExhausted' object is not iterable #114

hongha1412 opened this issue Aug 16, 2024 · 0 comments

Comments

@hongha1412
Copy link

Hi guys,

I'm trying to use readme-ai to generate readme for my local repository with command:

docker run -it -e GOOGLE_API_KEY=$GOOGLE_API_KEY -v "$(pwd)":/app zeroxeli/readme-ai:latest -r ./my-large-project --api GEMINI -m gemini-1.0-pro --tree-depth 4 -t 0.9 -o readme.md --context-window 9999 --rate-limit 100

the above command encounterred error ResourceExhausted

Traceback (most recent call last):
  File "/home/tempuser/.local/lib/python3.10/site-packages/readmeai/_agent.py", line 77, in readme_agent
    asyncio.run(readme_generator(conf, output_file))
  File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/home/tempuser/.local/lib/python3.10/site-packages/readmeai/_agent.py", line 122, in readme_generator
    ).build()
  File "/home/tempuser/.local/lib/python3.10/site-packages/readmeai/generators/builder.py", line 121, in build
    self.md_summaries,
  File "/home/tempuser/.local/lib/python3.10/site-packages/readmeai/generators/builder.py", line 65, in md_summaries
    summaries = tables.format_code_summaries(
  File "/home/tempuser/.local/lib/python3.10/site-packages/readmeai/generators/tables.py", line 58, in format_code_summaries
    for summary in code_summaries:
TypeError: 'ResourceExhausted' object is not iterable

How could i resolve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant