maxileith / homebridge-appletv-enhanced

Homebridge plugin that exposes Apple TVs with features that should be native to Apple HomeKit.
MIT License
195 stars 3 forks source link

Error with PIP after upgrade from OS 11 to 12. #715

Closed leandromagro closed 3 weeks ago

leandromagro commented 3 weeks ago

Preconditions

Current Situation

After upgrade the system to meet new versions of SSL and Python, I started to get the errors pointed in the log. Looks like PIP is not found according to the error ModuleNotFoundError: No module named 'pip'. Tried to reinstall both python and pip but did not fix the issue.

Logs

[29/10/2024, 19:45:25] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[29/10/2024, 19:45:30] [HB Supervisor] Restarting Homebridge...
[29/10/2024, 19:45:30] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules -D --strict-plugin-resolution
[29/10/2024, 19:45:30] [HB Supervisor] Started Homebridge v1.8.5 with PID: 2622
[29/10/2024, 19:45:32] Loaded config.json with 10 accessories and 8 platforms.
[29/10/2024, 19:45:32] Loaded 4 cached accessories from cachedAccessories.
[29/10/2024, 19:45:33] ---
[29/10/2024, 19:45:33] Loaded plugin: homebridge-appletv-enhanced@1.9.1
[29/10/2024, 19:45:33] Registering platform 'homebridge-appletv-enhanced.AppleTVEnhanced'
[29/10/2024, 19:45:33] ---
[29/10/2024, 19:45:34] Loaded plugin: homebridge-denon-tv@5.1.25
[29/10/2024, 19:45:34] Registering platform 'homebridge-denon-tv.DenonTv'
[29/10/2024, 19:45:34] ---
[29/10/2024, 19:45:35] Loaded plugin: homebridge-lg-thinq@1.8.9
[29/10/2024, 19:45:35] Registering platform 'homebridge-lg-thinq.LGThinQ'
[29/10/2024, 19:45:35] ---
[29/10/2024, 19:45:35] Loaded plugin: homebridge-magic-occupancy@4.0.1
[29/10/2024, 19:45:35] Registering accessory 'homebridge-magic-occupancy.MagicOccupancy'
[29/10/2024, 19:45:35] ---
[29/10/2024, 19:45:35] Loaded plugin: homebridge-midea-platform@1.2.2
[29/10/2024, 19:45:35] Registering platform 'homebridge-midea-platform.midea-platform'
[29/10/2024, 19:45:35] ---
[29/10/2024, 19:45:36] Loaded plugin: homebridge-smart-irrigation@1.7.2
[29/10/2024, 19:45:36] Registering accessory 'homebridge-smart-irrigation.SmartSprinklers'
[29/10/2024, 19:45:36] ---
[29/10/2024, 19:45:37] Loaded plugin: homebridge-weather-plus@3.3.5
[29/10/2024, 19:45:41] [Homebridge UI] Changes to config.json saved.
[29/10/2024, 19:45:41] Registering platform 'homebridge-weather-plus.WeatherPlus'
[29/10/2024, 19:45:41] ---
[29/10/2024, 19:45:41] Loading 8 platforms...

[29/10/2024, 19:45:42] Initializing platform accessory 'Clima'...
[29/10/2024, 19:45:42] Initializing platform accessory 'Prev Today'...
[29/10/2024, 19:45:42] Initializing platform accessory 'Prev In 1 Day'...

[29/10/2024, 19:45:42] [Apple TV Enhanced] Initializing AppleTVEnhanced platform...
[29/10/2024, 19:45:42] [Apple TV Enhanced] [I] Platform: Finished initializing platform: Apple TV Enhanced
[
[29/10/2024, 19:45:42] [Homebridge UI] Homebridge restart request received
[29/10/2024, 19:45:42] [Apple TV Enhanced] [I] Update check: The update checker is configured to check for updates between 3:00 and 3:59, excluding betas. Auto updating is turned off.
[29/10/2024, 19:45:42] [Homebridge UI] UI / Bridge settings have not changed; only restarting Homebridge process
[29/10/2024, 19:45:42] [Homebridge UI] Sending SIGTERM to Homebridge
[29/10/2024, 19:45:42] Publishing bridge accessory 

[29/10/2024, 19:45:42] Homebridge v1.8.5 (HAP v0.12.3) (Aroeira) is running on port 51823.
[29/10/2024, 19:45:42] 

NOTICE TO USERS AND PLUGIN DEVELOPERS
> Homebridge 2.0 is on the way and brings some breaking changes to existing plugins.
> Please visit the following link to learn more about the changes and how to prepare:
> https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0

[29/10/2024, 19:45:43] [Apple TV Enhanced] [S] Update check: You are using the latest version of AppleTV Enhanced (excluding betas): 1.9.1
[29/10/2024, 19:45:43] [Apple TV Enhanced] [I] Python check: Starting python check.
[29/10/2024, 19:45:43] [Apple TV Enhanced] [I] Python check: plugin dir exists.

[29/10/2024, 19:45:43] [Apple TV Enhanced] [I] Python check: OpenSSL 3.4.0 is installed and compatible.

[29/10/2024, 19:45:43] [Apple TV Enhanced] [I] Python check: Python 3.11.2 is installed and supported by the plugin.
[29/10/2024, 19:45:43] [Apple TV Enhanced] [I] Python check: Virtual environment already exists.
[29/10/2024, 19:45:44] [Apple TV Enhanced] [I] Python check: Virtual environment is using the systems default python environment. Continuing ...
[29/10/2024, 19:45:44] [Apple TV Enhanced] [E] Python check: Traceback (most recent call last):
  File "/var/lib/homebridge/appletv-enhanced/.venv/bin/pip3", line 5, in <module>

[29/10/2024, 19:45:44] [Apple TV Enhanced] [E] Python check:     from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip'

[29/10/2024, 19:45:44] [Apple TV Enhanced] [I] Python check: Venv pip version: 
[29/10/2024, 19:45:44] [Apple TV Enhanced] [I] Python check: Checking if there is an update for venv pip ...
[29/10/2024, 19:45:44] [Apple TV Enhanced] [W] Python check: Venv pip is outdated. Updating now ...

[29/10/2024, 19:45:44] [Apple TV Enhanced] [E] Python check: Traceback (most recent call last):
  File "/var/lib/homebridge/appletv-enhanced/.venv/bin/pip3", line 5, in <module>

[29/10/2024, 19:45:44] [Apple TV Enhanced] [E] Python check:     from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip'

[29/10/2024, 19:45:44] [Apple TV Enhanced] [S] Python check: Venv pip updated

[29/10/2024, 19:45:44] [Apple TV Enhanced] [E] Python check: Traceback (most recent call last):
  File "/var/lib/homebridge/appletv-enhanced/.venv/bin/pip3", line 5, in <module>

[29/10/2024, 19:45:44] [Apple TV Enhanced] [E] Python check:     from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip'

[29/10/2024, 19:45:44] [Apple TV Enhanced] [W] Python check: Python requirements are not satisfied. Installing them now ...
[29/10/2024, 19:45:44] [Apple TV Enhanced] [E] Python check: Traceback (most recent call last):
  File "/var/lib/homebridge/appletv-enhanced/.venv/bin/pip3", line 5, in <module>

[29/10/2024, 19:45:44] [Apple TV Enhanced] [E] Python check:     from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip'

[29/10/2024, 19:45:44] [Apple TV Enhanced] [S] Python check: Python requirements installed.
[29/10/2024, 19:45:44] [Apple TV Enhanced] [S] Python check: Finished
[29/10/2024, 19:45:44] [Apple TV Enhanced] [I] Platform: Starting device discovery ...
[29/10/2024, 19:45:45] Error: Unable to execute request M: Traceback (most recent call last):
  File "/var/lib/homebridge/appletv-enhanced/.venv/bin/atvscript", line 5, in <module>from pyatv.scripts.atvscript import main
ModuleNotFoundError: No module named 'pyatv'
    at g (/var/lib/homebridge/node_modules/homebridge-appletv-enhanced/node_modules/@sebbo2002/node-pyatv/src/lib/tools.ts:189:15)
    at Function.find (/var/lib/homebridge/node_modules/homebridge-appletv-enhanced/node_modules/@sebbo2002/node-pyatv/src/lib/instance.ts:128:26)
    at AppleTVEnhancedPlatform.discoverDevices (/var/lib/homebridge/node_modules/homebridge-appletv-enhanced/src/appleTVEnhancedPlatform.ts:114:67)

[29/10/2024, 19:45:48] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[29/10/2024, 19:45:53] [HB Supervisor] Restarting Homebridge...
[29/10/2024, 19:45:53] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules -D --strict-plugin-resolution
[29/10/2024, 19:45:53] [HB Supervisor] Started Homebridge v1.8.5 with PID: 2661

Configuration

{
            "name": "Apple TV Enhanced",
            "mediaTypes": [
                "music",
                "video",
                "tv",
                "unknown"
            ],
            "deviceStates": [
                "idle",
                "playing",
                "loading",
                "seeking",
                "paused",
                "stopped"
            ],
            "deviceStateDelay": 0,
            "avadaKedavraAppAmount": 15,
            "disableVolumeControlRemote": false,
            "absoluteVolumeControl": false,
            "discover": {
                "multicast": true
            },
            "forceVenvRecreate": false,
            "logLevel": 3,
            "updateCheckLevel": "stable",
            "updateCheckTime": 3,
            "deviceSpecificOverrides": [
                {
                    "overrideMediaTypes": false,
                    "overrideDeviceStates": false,
                    "overrideDeviceStateDelay": false,
                    "deviceStateDelay": 0,
                    "overrideRemoteKeysAsSwitch": false,
                    "overrideAvadaKedavraAppAmount": false,
                    "avadaKedavraAppAmount": 15,
                    "overrideCustomInputURIs": false,
                    "overrideDisableVolumeControlRemote": false,
                    "disableVolumeControlRemote": false,
                    "overrideAbsoluteVolumeControl": false,
                    "absoluteVolumeControl": false
                }
            ],
            "platform": "AppleTVEnhanced"
        }

Operating System

Linux

Operating System: Bits

32-bit

Operating System: Distribution

Raspbian GNU/Linux

Operating System: Distribution Version

12 (bookworm)

Docker

no

Docker Image

None

Docker Image Tag

No response

Homebridge Version

1.8.5

Homebridge Config UI Version

v4.62.0

Homebridge Storage Path

/var/lib/homebridge

Homebridge Apple TV Enhanced Version

1.9.1

Node Version

v20.18.0

NPM Version

10.8.2

Python Version

3.11.2

PIP Version

23.0.1

HDMI Hops

No response

Audio Output

no

Same Subnet

yes

Additional Context

No response

Alex-smartsmile commented 3 weeks ago

Hey,

try on the plugin under Others the the tick box Force Venv Recreation

maybe that helps

leandromagro commented 3 weeks ago

Hi! Thanks for the support. The plugin started to recreate the environment and stuck in a different error: "cannot be built because it requires rustc 1.65.0 or newer, while the currently active rustc version is 1.63.0"

when I run rustup update info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf' info: checking for self-update

stable-armv7-unknown-linux-gnueabihf unchanged - rustc 1.82.0 (f6e511eec 2024-10-15)

info: cleaning up downloads & tmp directories

and

pi@homebridge:/var/lib/homebridge $ rustc --version rustc 1.82.0 (f6e511eec 2024-10-15) pi@homebridge:/var/lib/homebridge $ I think it is in a version above the requirement.

Full log: [30/10/2024, 17:24:34] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution [30/10/2024, 17:24:34] [HB Supervisor] Started Homebridge v1.8.5 with PID: 3612 [30/10/2024, 17:24:36] Loaded config.json with 10 accessories and 8 platforms. [30/10/2024, 17:24:36] Loaded 4 cached accessories from cachedAccessories. [30/10/2024, 17:24:37] --- [30/10/2024, 17:24:37] Loaded plugin: homebridge-appletv-enhanced@1.9.1 [30/10/2024, 17:24:37] Registering platform 'homebridge-appletv-enhanced.AppleTVEnhanced' [30/10/2024, 17:24:37] --- [30/10/2024, 17:24:38] Loaded plugin: homebridge-denon-tv@5.1.25 [30/10/2024, 17:24:38] Registering platform 'homebridge-denon-tv.DenonTv' [30/10/2024, 17:24:38] --- [30/10/2024, 17:24:39] Loaded plugin: homebridge-lg-thinq@1.8.9 [30/10/2024, 17:24:39] Registering platform 'homebridge-lg-thinq.LGThinQ' [30/10/2024, 17:24:39] --- [30/10/2024, 17:24:39] Loaded plugin: homebridge-magic-occupancy@4.0.1 [30/10/2024, 17:24:39] Registering accessory 'homebridge-magic-occupancy.MagicOccupancy' [30/10/2024, 17:24:39] --- [30/10/2024, 17:24:39] Loaded plugin: homebridge-midea-platform@1.2.2 [30/10/2024, 17:24:39] Registering platform 'homebridge-midea-platform.midea-platform' [30/10/2024, 17:24:39] --- [30/10/2024, 17:24:40] Loaded plugin: homebridge-smart-irrigation@1.7.2 [30/10/2024, 17:24:40] Registering accessory 'homebridge-smart-irrigation.SmartSprinklers' [30/10/2024, 17:24:40] --- [30/10/2024, 17:24:41] Loaded plugin: homebridge-weather-plus@3.3.5 [30/10/2024, 17:24:45] Registering platform 'homebridge-weather-plus.WeatherPlus' [30/10/2024, 17:24:45] --- [30/10/2024, 17:24:45] Loading 8 platforms...

[30/10/2024, 17:24:46] [Apple TV Enhanced] Initializing AppleTVEnhanced platform... [30/10/2024, 17:24:46] [Apple TV Enhanced] [I] Platform: Finished initializing platform: Apple TV Enhanced

[30/10/2024, 17:24:46] [Apple TV Enhanced] [I] Update check: The update checker is configured to check for updates between 3:00 and 3:59, excluding betas. Auto updating is turned off. Setup Payload: X-HM://0024H4A3B1J2O

[30/10/2024, 17:24:46] Homebridge v1.8.5 (HAP v0.12.3) (Aroeira) is running on port 51823. [30/10/2024, 17:24:46]

NOTICE TO USERS AND PLUGIN DEVELOPERS

Homebridge 2.0 is on the way and brings some breaking changes to existing plugins. Please visit the following link to learn more about the changes and how to prepare: https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0

[30/10/2024, 17:24:48] [Apple TV Enhanced] [S] Update check: You are using the latest version of AppleTV Enhanced (excluding betas): 1.9.1 [30/10/2024, 17:24:48] [Apple TV Enhanced] [I] Python check: Starting python check. [30/10/2024, 17:24:48] [Apple TV Enhanced] [I] Python check: plugin dir exists.

[30/10/2024, 17:24:49] [Apple TV Enhanced] [I] Python check: OpenSSL 3.4.0 is installed and compatible. [30/10/2024, 17:24:49] [Apple TV Enhanced] [I] Python check: Python 3.11.2 is installed and supported by the plugin. [30/10/2024, 17:24:49] [Apple TV Enhanced] [W] Python check: Forcing the python virtual environment to be recreated ...

[30/10/2024, 17:25:11] [Apple TV Enhanced] [S] Python check: Virtual python environment (re)created [30/10/2024, 17:25:11] [Apple TV Enhanced] [I] Python check: Virtual environment is using the systems default python environment. Continuing ... [30/10/2024, 17:25:13] [Apple TV Enhanced] [I] Python check: Venv pip version: 23.0.1 [30/10/2024, 17:25:13] [Apple TV Enhanced] [I] Python check: Checking if there is an update for venv pip ... [30/10/2024, 17:25:14] [Apple TV Enhanced] [W] Python check: Venv pip is outdated. Updating now ... [30/10/2024, 17:25:16] [Apple TV Enhanced] [I] Python check: Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple [30/10/2024, 17:25:16] [Apple TV Enhanced] [I] Python check: Requirement already satisfied: pip in ./appletv-enhanced/.venv/lib/python3.11/site-packages (23.0.1) [30/10/2024, 17:25:20] [Apple TV Enhanced] [I] Python check: Collecting pip [30/10/2024, 17:25:20] [Apple TV Enhanced] [I] Python check: Using cached pip-24.3.1-py3-none-any.whl (1.8 MB) [30/10/2024, 17:25:20] [Apple TV Enhanced] [I] Python check: Installing collected packages: pip [30/10/2024, 17:25:20] [Apple TV Enhanced] [I] Python check: Attempting uninstall: pip [30/10/2024, 17:25:20] [Apple TV Enhanced] [I] Python check: Found existing installation: pip 23.0.1 [30/10/2024, 17:25:22] [Apple TV Enhanced] [I] Python check: Uninstalling pip-23.0.1: [30/10/2024, 17:25:22] [Apple TV Enhanced] [I] Python check: Successfully uninstalled pip-23.0.1 [30/10/2024, 17:25:27] [Apple TV Enhanced] [I] Python check: Successfully installed pip-24.3.1 [30/10/2024, 17:25:27] [Apple TV Enhanced] [S] Python check: Venv pip updated [30/10/2024, 17:25:29] [Apple TV Enhanced] [W] Python check: Python requirements are not satisfied. Installing them now ... [30/10/2024, 17:25:32] [Apple TV Enhanced] [I] Python check: Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple [30/10/2024, 17:25:38] [Apple TV Enhanced] [I] Python check: Collecting aiohttp==3.10.10 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 1)) [30/10/2024, 17:25:38] [Apple TV Enhanced] [I] Python check: Using cached aiohttp-3.10.10-cp311-cp311-linux_armv7l.whl [30/10/2024, 17:25:39] [Apple TV Enhanced] [I] Python check: Collecting aiosignal==1.3.1 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 2)) [30/10/2024, 17:25:39] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/aiosignal/aiosignal-1.3.1-py3-none-any.whl (7.6 kB) [30/10/2024, 17:25:39] [Apple TV Enhanced] [I] Python check: Collecting annotated-types==0.7.0 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 3)) [30/10/2024, 17:25:40] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/annotated-types/annotated_types-0.7.0-py3-none-any.whl (13 kB) [30/10/2024, 17:25:40] [Apple TV Enhanced] [I] Python check: Collecting async-timeout==4.0.3 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 4)) [30/10/2024, 17:25:40] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/async-timeout/async_timeout-4.0.3-py3-none-any.whl (5.7 kB) [30/10/2024, 17:25:41] [Apple TV Enhanced] [I] Python check: Collecting attrs==24.2.0 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 5)) [30/10/2024, 17:25:41] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/attrs/attrs-24.2.0-py3-none-any.whl (63 kB) [30/10/2024, 17:25:41] [Apple TV Enhanced] [I] Python check: Collecting certifi==2024.8.30 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 6)) [30/10/2024, 17:25:42] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/certifi/certifi-2024.8.30-py3-none-any.whl (167 kB) [30/10/2024, 17:25:43] [Apple TV Enhanced] [I] Python check: Collecting cffi==1.17.1 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 7)) [30/10/2024, 17:25:44] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/cffi/cffi-1.17.1-cp311-cp311-linux_armv7l.whl (384 kB) [30/10/2024, 17:25:45] [Apple TV Enhanced] [I] Python check: Collecting chacha20poly1305-reuseable==0.13.2 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 8)) [30/10/2024, 17:25:45] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/chacha20poly1305-reuseable/chacha20poly1305_reuseable-0.13.2-py3-none-any.whl (8.6 kB) [30/10/2024, 17:25:46] [Apple TV Enhanced] [I] Python check: Collecting charset-normalizer==3.4.0 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 9)) [30/10/2024, 17:25:46] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/charset-normalizer/charset_normalizer-3.4.0-py3-none-any.whl (49 kB) [30/10/2024, 17:25:48] [Apple TV Enhanced] [I] Python check: Collecting cryptography==43.0.1 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 10)) [30/10/2024, 17:25:48] [Apple TV Enhanced] [I] Python check: Using cached cryptography-43.0.1.tar.gz (686 kB) [30/10/2024, 17:25:49] [Apple TV Enhanced] [I] Python check: Installing build dependencies: started

[30/10/2024, 17:26:16] [Apple TV Enhanced] [I] Python check: Installing build dependencies: finished with status 'done' [30/10/2024, 17:26:16] [Apple TV Enhanced] [I] Python check: Getting requirements to build wheel: started [30/10/2024, 17:26:17] [Apple TV Enhanced] [I] Python check: Getting requirements to build wheel: finished with status 'done' [30/10/2024, 17:26:17] [Apple TV Enhanced] [I] Python check: Preparing metadata (pyproject.toml): started [30/10/2024, 17:26:21] [Apple TV Enhanced] [I] Python check: Preparing metadata (pyproject.toml): finished with status 'done' [30/10/2024, 17:26:25] [Apple TV Enhanced] [I] Python check: Collecting frozenlist==1.4.1 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 11)) [30/10/2024, 17:26:25] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/frozenlist/frozenlist-1.4.1-cp311-cp311-linux_armv7l.whl (210 kB) [30/10/2024, 17:26:25] [Apple TV Enhanced] [I] Python check: Collecting idna==3.10 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 12)) [30/10/2024, 17:26:26] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/idna/idna-3.10-py3-none-any.whl (70 kB) [30/10/2024, 17:26:26] [Apple TV Enhanced] [I] Python check: Collecting ifaddr==0.2.0 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 13)) [30/10/2024, 17:26:26] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/ifaddr/ifaddr-0.2.0-py3-none-any.whl (12 kB) [30/10/2024, 17:26:27] [Apple TV Enhanced] [I] Python check: Collecting mediafile==0.12.0 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 14)) [30/10/2024, 17:26:27] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/mediafile/mediafile-0.12.0-py3-none-any.whl (21 kB) [30/10/2024, 17:26:28] [Apple TV Enhanced] [I] Python check: Collecting miniaudio==1.61 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 15)) [30/10/2024, 17:26:28] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/miniaudio/miniaudio-1.61-cp311-cp311-linux_armv7l.whl (548 kB) [30/10/2024, 17:26:31] [Apple TV Enhanced] [I] Python check: Collecting multidict==6.1.0 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 16)) [30/10/2024, 17:26:31] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/multidict/multidict-6.1.0-cp311-cp311-linux_armv7l.whl (124 kB) [30/10/2024, 17:26:31] [Apple TV Enhanced] [I] Python check: Collecting mutagen==1.47.0 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 17)) [30/10/2024, 17:26:32] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/mutagen/mutagen-1.47.0-py3-none-any.whl (194 kB) [30/10/2024, 17:26:34] [Apple TV Enhanced] [I] Python check: Collecting protobuf==5.28.2 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 18)) [30/10/2024, 17:26:34] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/protobuf/protobuf-5.28.2-cp311-cp311-linux_armv7l.whl (1.0 MB) [30/10/2024, 17:26:35] [Apple TV Enhanced] [I] Python check: Collecting pyatv==0.15.1 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 19)) [30/10/2024, 17:26:35] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/pyatv/pyatv-0.15.1-py3-none-any.whl (455 kB) [30/10/2024, 17:26:35] [Apple TV Enhanced] [I] Python check: Collecting pycparser==2.22 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 20)) [30/10/2024, 17:26:36] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/pycparser/pycparser-2.22-py3-none-any.whl (117 kB) [30/10/2024, 17:26:37] [Apple TV Enhanced] [I] Python check: Collecting pydantic==2.9.2 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 21)) [30/10/2024, 17:26:37] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/pydantic/pydantic-2.9.2-py3-none-any.whl (434 kB) [30/10/2024, 17:26:49] [Apple TV Enhanced] [I] Python check: Collecting pydantic_core==2.23.4 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 22)) [30/10/2024, 17:26:49] [Apple TV Enhanced] [I] Python check: Using cached pydantic_core-2.23.4-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.metadata (6.6 kB) [30/10/2024, 17:26:51] [Apple TV Enhanced] [I] Python check: Collecting requests==2.32.3 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 23)) [30/10/2024, 17:26:51] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/requests/requests-2.32.3-py3-none-any.whl (64 kB) [30/10/2024, 17:26:52] [Apple TV Enhanced] [I] Python check: Collecting six==1.16.0 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 24)) [30/10/2024, 17:26:52] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/six/six-1.16.0-py2.py3-none-any.whl (11 kB) [30/10/2024, 17:26:53] [Apple TV Enhanced] [I] Python check: Collecting srptools==1.0.1 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 25)) [30/10/2024, 17:26:53] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/srptools/srptools-1.0.1-py2.py3-none-any.whl (13 kB) [30/10/2024, 17:26:53] [Apple TV Enhanced] [I] Python check: Collecting tabulate==0.9.0 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 26)) [30/10/2024, 17:26:53] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/tabulate/tabulate-0.9.0-py3-none-any.whl (35 kB) [30/10/2024, 17:26:54] [Apple TV Enhanced] [I] Python check: Collecting typing_extensions==4.12.2 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 27)) [30/10/2024, 17:26:54] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/typing-extensions/typing_extensions-4.12.2-py3-none-any.whl (37 kB) [30/10/2024, 17:26:55] [Apple TV Enhanced] [I] Python check: Collecting urllib3==2.2.3 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 28)) [30/10/2024, 17:26:55] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/urllib3/urllib3-2.2.3-py3-none-any.whl (126 kB) [30/10/2024, 17:26:57] [Apple TV Enhanced] [W] Python check: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))': /simple/yarl/

[30/10/2024, 17:26:59] [Apple TV Enhanced] [I] Python check: Collecting yarl==1.15.2 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 29)) [30/10/2024, 17:26:59] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/yarl/yarl-1.15.2-cp311-cp311-linux_armv7l.whl (301 kB) [30/10/2024, 17:27:05] [Apple TV Enhanced] [I] Python check: Collecting zeroconf==0.135.0 (from -r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 30)) [30/10/2024, 17:27:05] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/zeroconf/zeroconf-0.135.0-cp311-cp311-manylinux_2_36_armv7l.whl (9.0 MB) [30/10/2024, 17:27:06] [Apple TV Enhanced] [I] Python check: Collecting aiohappyeyeballs>=2.3.0 (from aiohttp==3.10.10->-r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 1)) [30/10/2024, 17:27:06] [Apple TV Enhanced] [I] Python check: Using cached https://www.piwheels.org/simple/aiohappyeyeballs/aiohappyeyeballs-2.4.3-py3-none-any.whl (14 kB) [30/10/2024, 17:27:08] [Apple TV Enhanced] [I] Python check: Collecting propcache>=0.2.0 (from yarl==1.15.2->-r /var/lib/homebridge/node_modules/homebridge-appletv-enhanced/python_requirements/default/requirements.txt (line 29)) [30/10/2024, 17:27:08] [Apple TV Enhanced] [I] Python check: Using cached propcache-0.2.0-py3-none-any.whl.metadata (7.7 kB) [30/10/2024, 17:27:08] [Apple TV Enhanced] [I] Python check: Using cached pydantic_core-2.23.4-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (1.8 MB) [30/10/2024, 17:27:08] [Apple TV Enhanced] [I] Python check: Using cached propcache-0.2.0-py3-none-any.whl (11 kB) [30/10/2024, 17:27:08] [Apple TV Enhanced] [I] Python check: Building wheels for collected packages: cryptography [30/10/2024, 17:27:08] [Apple TV Enhanced] [I] Python check: Building wheel for cryptography (pyproject.toml): started [30/10/2024, 17:27:10] [Apple TV Enhanced] [I] Python check: Building wheel for cryptography (pyproject.toml): finished with status 'error' [30/10/2024, 17:27:10] [Apple TV Enhanced] [E] Python check: error: subprocess-exited-with-error

× Building wheel for cryptography (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [14 lines of output] Running maturin pep517 build-wheel -i /var/lib/homebridge/appletv-enhanced/.venv/bin/python3 --compatibility off 📦 Including license file "/tmp/pip-install-41j7fzvx/cryptography_af4b53f78d3548979a73e89c2b52a6fa/LICENSE" 📦 Including license file "/tmp/pip-install-41j7fzvx/cryptography_af4b53f78d3548979a73e89c2b52a6fa/LICENSE.APACHE" 📦 Including license file "/tmp/pip-install-41j7fzvx/cryptography_af4b53f78d3548979a73e89c2b52a6fa/LICENSE.BSD" 🍹 Building a mixed python/rust project 🔗 Found pyo3 bindings with abi3 support for Python ≥ 3.7 🐍 Not using a specific python interpreter 📡 Using build options features, locked from pyproject.toml error: package cryptography-keepalive v0.1.0 (/tmp/pip-install-41j7fzvx/cryptography_af4b53f78d3548979a73e89c2b52a6fa/src/rust/cryptography-keepalive) cannot be built because it requires rustc 1.65.0 or newer, while the currently active rustc version is 1.63.0

  💥 maturin failed
    Caused by: Failed to build a native library through cargo
    Caused by: Cargo build finished with "exit status: 101": `env -u CARGO PYO3_ENVIRONMENT_SIGNATURE="cpython-3.11-64bit" PYO3_PYTHON="/var/lib/homebridge/appletv-enhanced/.venv/bin/python3" PYTHON_SYS_EXECUTABLE="/var/lib/homebridge/appletv-enhanced/.venv/bin/python3" "cargo" "rustc" "--features" "pyo3/abi3-py37" "--message-format" "json-render-diagnostics" "--locked" "--manifest-path" "/tmp/pip-install-41j7fzvx/cryptography_af4b53f78d3548979a73e89c2b52a6fa/src/rust/Cargo.toml" "--release" "--lib"`
  Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/var/lib/homebridge/appletv-enhanced/.venv/bin/python3', '--compatibility', 'off'] returned non-zero exit status 1
  [end of output]

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

[30/10/2024, 17:27:10] [Apple TV Enhanced] [E] Python check: ERROR: Failed building wheel for cryptography

[30/10/2024, 17:27:10] [Apple TV Enhanced] [I] Python check: Failed to build cryptography [30/10/2024, 17:27:10] [Apple TV Enhanced] [E] Python check: ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (cryptography)

[30/10/2024, 17:27:13] [Apple TV Enhanced] [S] Python check: Python requirements installed. [30/10/2024, 17:27:13] [Apple TV Enhanced] [S] Python check: Finished [30/10/2024, 17:27:13] [Apple TV Enhanced] [I] Platform: Starting device discovery ... [30/10/2024, 17:27:13] Error: spawn /var/lib/homebridge/appletv-enhanced/.venv/bin/atvscript ENOENT at Process.ChildProcess._handle.onexit (node:internal/child_process:286:19) at onErrorNT (node:internal/child_process:484:16) at processTicksAndRejections (node:internal/process/task_queues:82:21) [30/10/2024, 17:27:13] Got SIGTERM, shutting down Homebridge... [30/10/2024, 17:27:18] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null

maxileith commented 3 weeks ago

You are using a 32-bit OS, though the plugin only support 64 bit.

leandromagro commented 3 weeks ago

Moved from 32 to 64 and everything works fine. Didn't realize that my rasp OS was 32. Thanks.