Package Details: python-google-genai 1.48.0-2

Git Clone URL: https://aur.archlinux.org/python-google-genai.git (read-only, click to copy)
Package Base: python-google-genai
Description: GenAI Python SDK.
Upstream URL: https://github.com/googleapis/python-genai
Licenses: Apache-2.0
Submitter: medaminezghal
Maintainer: medaminezghal
Last Packager: medaminezghal
Votes: 2
Popularity: 0.060554
First Submitted: 2025-02-02 07:22 (UTC)
Last Updated: 2025-11-04 09:08 (UTC)

Latest Comments

1 2 Next › Last »

quest commented on 2025-10-28 02:31 (UTC)

This no longer builds for me.

FAILED google/genai/tests/live/test_live.py::test_websocket_base_url_no_auth_with_custom_base_url - AssertionError: assert 'wss://test-api-gateway-proxy.com' == 'https://test-api-gateway-proxy.com'

  - https://test-api-gateway-proxy.com
  ? ^^^^
  + wss://test-api-gateway-proxy.com
  ? ^^
================================= 1 failed, 867 passed, 1 skipped, 158 deselected, 62 warnings in 51.23s ==================================
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: python-google-genai-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
python-google-genai - exit status 4

acters commented on 2025-09-19 08:48 (UTC)

@Jawzper if you are on CachyOS then I asked the repo maintainers to rebuild sentencepiece with the new protobuf 32.0 version. Which fixed this issue.

Make sure you install python-pytokens as it is also now required!

BTW, if you are NOT on CachyOS like me, then you need to get in contact with whoever is your repo maintainer and ask them to rebuild it. (or if you want to you can build it with the new protobuf 32.0 yourself)

Jawzper commented on 2025-09-15 08:44 (UTC)

I'm getting this error, can anyone help? I already have protobuf and python-protobuf packages installed.


====================================================== ERRORS ======================================================
___________________ ERROR collecting google/genai/tests/local_tokenizer/test_local_tokenizer.py ____________________
ImportError while importing test module '/home/jazz/.cache/yay/python-google-genai/src/python-genai-1.36.0/google/genai/tests/local_tokenizer/test_local_tokenizer.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.13/site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
/usr/lib/python3.13/site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<frozen importlib._bootstrap>:1387: in _gcd_import
    ???
<frozen importlib._bootstrap>:1360: in _find_and_load
    ???
<frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:935: in _load_unlocked
    ???
/usr/lib/python3.13/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
google/genai/tests/local_tokenizer/test_local_tokenizer.py:19: in <module>
    from sentencepiece import sentencepiece_model_pb2
/usr/lib/python3.13/site-packages/sentencepiece/__init__.py:10: in <module>
    from . import _sentencepiece
E   ImportError: libprotobuf-lite.so.31.1.0: cannot open shared object file: No such file or directory
________________ ERROR collecting google/genai/tests/local_tokenizer/test_local_tokenizer_loader.py ________________
ImportError while importing test module '/home/jazz/.cache/yay/python-google-genai/src/python-genai-1.36.0/google/genai/tests/local_tokenizer/test_local_tokenizer_loader.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.13/site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
/usr/lib/python3.13/site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<frozen importlib._bootstrap>:1387: in _gcd_import
    ???
<frozen importlib._bootstrap>:1360: in _find_and_load
    ???
<frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:935: in _load_unlocked
    ???
/usr/lib/python3.13/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
google/genai/tests/local_tokenizer/test_local_tokenizer_loader.py:19: in <module>
    import sentencepiece as spm
/usr/lib/python3.13/site-packages/sentencepiece/__init__.py:10: in <module>
    from . import _sentencepiece
E   ImportError: libprotobuf-lite.so.31.1.0: cannot open shared object file: No such file or directory
================================================= warnings summary =================================================
../../../../../../../usr/lib/python3.13/site-packages/_hypothesis_pytestplugin.py:450
  /usr/lib/python3.13/site-packages/_hypothesis_pytestplugin.py:450: PytestRemovedIn9Warning: Marks applied to fixtures have no effect
  See docs: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function
    return _orig_call(self, function)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================================= short test summary info ==============================================
ERROR google/genai/tests/local_tokenizer/test_local_tokenizer.py
ERROR google/genai/tests/local_tokenizer/test_local_tokenizer_loader.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=================================== 172 deselected, 1 warning, 2 errors in 0.94s ===================================
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: python-google-genai-exit status 4

envolution commented on 2025-09-10 14:16 (UTC)

I believe pgpkeys are only relevant when using a signed source. In this case, makepkg has nothing to verify without an associated .sig

medaminezghal commented on 2025-09-10 14:04 (UTC)

@modes I forget to add my key to keys.openpgp.org. You can try now.

modes commented on 2025-09-10 10:29 (UTC)

Is there an issue with my pgp keys?

:: PGP keys need importing:
 -> 2EECE5156D8DE0C50636E37621707FBE029E96B5, required by: python-google-genai
:: Import? [Y/n] Y
:: Importing keys with gpg...
gpg: keyserver receive failed: No data
 -> problem importing keys

I tried 3 keyservers and none have this key

hkps://pgp.mit.edu hkps://keys.openpgp.org hkps://keyserver.ubuntu.com

envolution commented on 2025-09-02 12:52 (UTC)

needs python-protobuf to pass checks. python-sentencepiece should probably have it as a dependency but it's marked as optional which isn't technically wrong - unfortunately these checks require this functionality through sentencepiece and subsequently fail

envolution commented on 2025-08-22 00:37 (UTC)

@medaminezghal thanks, that sorted it

medaminezghal commented on 2025-08-20 10:35 (UTC)

@envolution Could you check if the problem solved in the new version?

envolution commented on 2025-08-19 02:13 (UTC)

A request to please disable the following test:

FAILED google/genai/tests/imports/test_no_optional_imports.py::test_library_can_be_imported_without_optional_dependencies - ImportError: cannot import name 'genai' from 'google' (unknown location)

It detects $CI/GITHUB actions and fails. Makepkg sets $CI - currently this package cannot pass check() in GH CI