Skip to content

Bug: google.generativeai is no longer operational #89

Closed

Description

@selfagency
> what are your instructions
/Users/daniel/.local/pipx/venvs/shelloracle/lib/python3.14/site-packages/shelloracle/providers/google.py:5: FutureWarning: 

All support for the `google.generativeai` package has ended. It will no longer be receiving 
updates or bug fixes. Please switch to the `google.genai` package as soon as possible.
See README for more details:

https://github.com/google-gemini/deprecated-generative-ai-python/blob/main/README.md

  import google.generativeai as genai

An error occurred
Traceback (most recent call last):
  File "/Users/daniel/.local/pipx/venvs/shelloracle/lib/python3.14/site-packages/shelloracle/shelloracle.py", line 98, in cli
    asyncio.run(shelloracle(app))
    ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.14/3.14.3_1/Frameworks/Python.framework/Versions/3.14/lib/python3.14/asyncio/runners.py", line 204, in run
    return runner.run(main)
           ~~~~~~~~~~^^^^^^
  File "/opt/homebrew/Cellar/python@3.14/3.14.3_1/Frameworks/Python.framework/Versions/3.14/lib/python3.14/asyncio/runners.py", line 127, in run
    return self._loop.run_until_complete(task)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/opt/homebrew/Cellar/python@3.14/3.14.3_1/Frameworks/Python.framework/Versions/3.14/lib/python3.14/asyncio/base_events.py", line 719, in run_until_complete
    return future.result()
           ~~~~~~~~~~~~~^^
  File "/Users/daniel/.local/pipx/venvs/shelloracle/lib/python3.14/site-packages/shelloracle/shelloracle.py", line 84, in shelloracle
    async for token in provider.generate(prompt):
    ...<2 lines>...
        sp.text = shell_command
  File "/Users/daniel/.local/pipx/venvs/shelloracle/lib/python3.14/site-packages/shelloracle/providers/ollama.py", line 77, in generate

Activity

  1. thaikolja commented on Mar 4, 2026

    @thaikolja
    Contributor

    @selfagency I've forked and fixed the source and will push the code tomorrow into my fork. Any other changes, while I'm at it? :D However, unless @djcopley merges it, I'd need to give you a very brief guide on installing it. Here are two screenshots that show that it's working now:

    Image

    Image

  2. djcopley commented on Mar 4, 2026

    @djcopley
    Owner

    Thanks for the contribution, I'll approve and release it once you make the PR!

  3. thaikolja commented on Mar 5, 2026

    @thaikolja
    Contributor

    @djcopley Alright, this PR is now clean. Descriptions in the PR details. Happy to contribute!

    Copilot's review, though, encountered an error with itself. Not sure how relevant this is to you since the changes were so minimal.

  4. thaikolja commented on Mar 6, 2026

    @thaikolja
    Contributor

    @djcopley bump.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions