You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from google.generativeai import text_generation
ImportError: cannot import name 'text_generation' from 'google.generativeai' (/home/cliff/.venv/lib/python3.12/site-packages/google/generativeai/init.py). Did you mean: 'get_operation'?
Have a simple python script that won't run based on this error. Have tried various clean Python Virtual Environments with fresh installs and same thing.
google-generativeai 0.8.4
import os
import json
import psycopg2
from google.generativeai import text_generation
import requests
Relevant log output
from google.generativeai import text_generation
ImportError: cannot import name 'text_generation' from 'google.generativeai' (/home/cliff/.venv/lib/python3.12/site-packages/google/generativeai/__init__.py). Did you mean: 'get_operation'?
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
The code was created by Google Gemini and through several attempts to get it working using different test and methods Google Gemini said to open a BUG REPORT.
File Name
medai.py
What happened?
from google.generativeai import text_generation
ImportError: cannot import name 'text_generation' from 'google.generativeai' (/home/cliff/.venv/lib/python3.12/site-packages/google/generativeai/init.py). Did you mean: 'get_operation'?
Have a simple python script that won't run based on this error. Have tried various clean Python Virtual Environments with fresh installs and same thing.
google-generativeai 0.8.4
import os
import json
import psycopg2
from google.generativeai import text_generation
import requests
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: