home-assistant / wheels

Build wheels for Home Assistant
https://wheels.home-assistant.io
Apache License 2.0
29 stars 28 forks source link

Can't install package google-generativeai #746

Open maximosstratis opened 2 months ago

maximosstratis commented 2 months ago

I'm running Home Assistant OS v12.3 on a Raspberry Pi 5.

While installing the package google-generativeai through AppDaemon, the installation gets stuck while downloading grpcio. Below are the logs from AppDaemon

I used to have a Raspberry Pi 4B and it worked fine but when I switched to Pi 5 it stopped being able to install.

INFO: pip is looking at multiple versions of grpcio-status to determine which version is compatible with other requirements. This could take a while. Collecting grpcio-status<2.0.dev0,>=1.33.2 (from google-api-core[grpc]!=2.0.,!=2.1.,!=2.10.,!=2.2.,!=2.3.,!=2.4.,!=2.5.,!=2.6.,!=2.7.,!=2.8.,!=2.9.,<3.0.0dev,>=1.34.1->google-ai-generativelanguage==0.6.6->google-generativeai) Downloading grpcio_status-1.64.1-py3-none-any.whl.metadata (1.1 kB) Downloading grpcio_status-1.64.0-py3-none-any.whl.metadata (1.1 kB) Downloading grpcio_status-1.63.0-py3-none-any.whl.metadata (1.1 kB) Downloading grpcio_status-1.62.2-py3-none-any.whl.metadata (1.3 kB) Collecting grpcio<2.0dev,>=1.33.2 (from google-api-core[grpc]!=2.0.,!=2.1.,!=2.10.,!=2.2.,!=2.3.,!=2.4.,!=2.5.,!=2.6.,!=2.7.,!=2.8.,!=2.9.,<3.0.0dev,>=1.34.1->google-ai-generativelanguage==0.6.6->google-generativeai) Downloading grpcio-1.65.1.tar.gz (12.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.3/12.3 MB 4.9 MB/s eta 0:00:00 Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'error' error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [14 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "/tmp/pip-install-raaxrkny/grpcio_617d3feaeb2f4c6baaccd9814cad9646/setup.py", line 271, in if check_linker_need_libatomic(): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-install-raaxrkny/grpcio_617d3feaeb2f4c6baaccd9814cad9646/setup.py", line 215, in check_linker_need_libatomic cpp_test = subprocess.Popen( ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1026, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1955, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'c++' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

github-actions[bot] commented 6 days ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.