petro-kushchak / homebridge-homepod-radio

MIT License
39 stars 2 forks source link

ERROR while installation process #32

Open vVJoKeRVv opened 1 year ago

vVJoKeRVv commented 1 year ago

Hello i tried to install pyatv and got the following problem (see log). I have already asked the team (https://github.com/postlund/pyatv/issues/1907#event-8381438238 pyatv for a solution but they say that it is a problem of zeroconf. could you help me please? thanks

Logs

Collecting zeroconf>=0.38.1 Using cached zeroconf-0.47.1.tar.gz (60 kB) Installing build dependencies ... done Getting requirements to build wheel ... done ERROR: Exception: Traceback (most recent call last): File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 160, in exc_logging_wrapper status = run_func(*args) File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 247, in wrapper return func(self, options, args) File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 400, in run requirement_set = resolver.resolve( File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve result = self._result = resolver.resolve( File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 373, in resolve failure_causes = self._attempt_to_pin_criterion(name) File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 213, in _attempt_to_pin_criterion criteria = self._get_updated_criteria(candidate) File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 204, in _get_updated_criteria self._add_to_criteria(criteria, requirement, parent=candidate) File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 172, in _add_to_criteria if not criterion.candidates: File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/resolvelib/structs.py", line 151, in bool return bool(self._sequence) File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in bool return any(self) File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in return (c for c in iterator if id(c) not in self._incompatible_ids) File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built candidate = func() File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 206, in _make_candidate_from_link self._link_candidate_cache[link] = LinkCandidate( File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 297, in init super().init( File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 162, in init self.dist = self._prepare() File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 231, in _prepare dist = self._prepare_distribution() File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 308, in _prepare_distribution return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True) File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 491, in prepare_linked_requirement return self._prepare_linked_requirement(req, parallel_builds) File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 577, in _prepare_linked_requirement dist = _get_prepared_distribution( File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 69, in _get_prepared_distribution abstract_dist.prepare_distribution_metadata( File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/distributions/sdist.py", line 48, in prepare_distribution_metadata self._install_build_reqs(finder) File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/distributions/sdist.py", line 118, in _install_build_reqs build_reqs = self._get_build_requires_wheel() File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/distributions/sdist.py", line 95, in _get_build_requires_wheel return backend.get_requires_for_build_wheel() File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/utils/misc.py", line 685, in get_requires_for_build_wheel return super().get_requires_for_build_wheel(config_settings=cs) File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/pep517/wrappers.py", line 173, in get_requires_for_build_wheel return self._call_hook('get_requires_for_build_wheel', { File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/pep517/wrappers.py", line 319, in _call_hook raise BackendUnavailable(data.get('traceback', '')) pip._vendor.pep517.wrappers.BackendUnavailable: Traceback (most recent call last): File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 77, in _build_backend obj = import_module(mod_path) File "/opt/homebrew/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 992, in _find_and_load_unlocked File "", line 241, in _call_with_frames_removed File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 992, in _find_and_load_unlocked File "", line 241, in _call_with_frames_removed File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 992, in _find_and_load_unlocked File "", line 241, in _call_with_frames_removed File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1004, in _find_and_load_unlocked ModuleNotFoundError: No module named 'poetry'

Environment

My system: -Mac Ventura 13.2 -Homebridge 2.0 beta -Node : v16.16.0 -npm: 9.4.0 -Homebrew installed (latest version) -ffmpeg installed (latest version) -python installed (latest version)

Process Supervisor

hb-service

petro-kushchak commented 1 year ago

Hi, I haven't seen this kind of problem - but probably because I run homebridge+plugin on Raspberry Pi

Maybe try to run homebridge with Docker - I've published docker image which is based on oznu/homebridge:ubuntu and has pyatv installed

Docker image: https://hub.docker.com/r/pkushchak/homebridge-pyatv

justdun commented 1 year ago

Hi all, I've just had this problem too, and worked through the answer. So here's my solution on a Raspberry Pi 4.

Before running the 'pip3 install pyatv' command, do the following:

  1. Install rustc:

curl https://sh.rustup.rs -sSf | sh

  1. When asked for installation options, select 2) for Custom Installation

  2. When asked for "Default host triple?", enter:

arm-unknown-linux-gnueabihf

  1. Then follow the defaults (this includes setting the path variable, you must answer 'Y')

  2. Once rustc is installed you can test it by running the command rustc

  3. Next there are some libraries that will be needed in order for the cryptography modules to be compiled correctly:

sudo apt-get install build-essential libssl-dev libffi-dev python-dev

  1. Now you can continue with the instructions to install pyatv - they should now work.

I hope this is helpful. Worked for me.