dsdanielpark / Gemini-API

The unofficial python package that returns response of Google Gemini through cookie values.
https://pypi.org/project/python-gemini-api/
MIT License
160 stars 14 forks source link

ImportError #26

Closed RhancisDevs closed 6 months ago

RhancisDevs commented 6 months ago

ImportError: cannot import name 'Gemini' from 'gemini' (/home/runner/Bard-ai/.pythonlibs/lib/python3.10/site-packages/gemini/init.py)

dsdanielpark commented 6 months ago

Could you possibly have installed a different package named gemini? Currently, in version 2.4.1, there is no import error. Therefore, I recommend running it in a virtual environment using conda or python venv.

  1. You can check the version of the python-gemini-api you are currently using as follows:

    import gemini
    print(gemini.__version__)
  2. If you are using a gemini package with a different name, please set up a virtual environment and reinstall it as follows:

    conda create -n gemini_venv python==3.9
    pip install python-gemini-api
  3. If the problem persists, download the corresponding GitHub repository, place it where you intend to use it, and mount it. You can prevent conflicts by renaming the top-level folder to something other than gemini.

Thank you. This issue is unrelated to a package error and will be closed.