unfoldedcircle / feature-and-bug-tracker

Feature and bug tracker repository for Unfolded Circle products
24 stars 0 forks source link

Unable to use custom integration once uploaded #406

Closed uvjim closed 2 weeks ago

uvjim commented 2 weeks ago

Is there an existing issue for this?

Description

I have written a custom integration using the Python API wrapper. When using this hosted remotely it works fine. However, if I compile the code and upload to the remote, I am unable to get past the initial setup screen which is defined in driver.json . The logs have this repeated throughout. Any clues as to what I am missing?

2024-09-13 14:46:39.906268 +00:00   core    NOTICE  Removed standby inhibitor: Integration setup: uvjim_virginmediativo
2024-09-13 14:46:39.904814 +00:00   core    ERROR   Error encountered while processing the incoming HTTP request: ServiceUnavailable("Driver not connected. Failed to connect to host: Connection refused (os error 111)")
2024-09-13 14:46:39.900302 +00:00   core    ERROR   [uvjim_virginmediativo] Error connecting to driver ws://127.0.0.1:9002: ServiceUnavailable("Failed to connect to host: Connection refused (os error 111)")
2024-09-13 14:46:39.895121 +00:00   core    WARN    [uvjim_virginmediativo] Driver not connected to start setup flow, starting driver. State: Some(Reconnecting)
2024-09-13 14:46:39.893720 +00:00   core    ERROR   StartCustomIntegration("uvjim_virginmediativo", Some("custom-intg@uvjim_virginmediativo")) command failed, exit status: 1, Job for custom-intg@uvjim_virginmediativo.service failed because the control process exited with error code.
See "systemctl status custom-intg@uvjim_virginmediativo.service" and "journalctl -xeu custom-intg@uvjim_virginmediativo.service" for details.

Unfortunately, I am not aware that I can get to the terminal on the remote to use either systemctl or journalctl to see what is happening. I should add that I am using the custom Kodi integration uploaded to the remote without issue, so I'm pretty sure that it is just something that I am missing.

How to Reproduce

Upload the custom integration to the remote.

Expected behavior

I was hoping to be able to use my custom integration when uploaded to the remote.

System version

1.9.4

What part of the system affected by the problem?

No response

Additional context

No response

uvjim commented 2 weeks ago

Managed to find a raspberry pi that uses the same architecture. Appears there's an issue with pyinstaller detecting all the zeroconf requirements.

uvjim commented 2 weeks ago

Fixed now... I had to add the following to the pyinstaller command line as I use the Async implementation of zeroconf and it wasn't being picked up by the analysis phase.

--hidden-import 'zeroconf.asyncio'