Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use custom integration once uploaded #406

Closed
1 task done
uvjim opened this issue Sep 13, 2024 · 2 comments
Closed
1 task done

Unable to use custom integration once uploaded #406

uvjim opened this issue Sep 13, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@uvjim
Copy link

uvjim commented Sep 13, 2024

Is there an existing issue for this?

  • I have searched the existing issues

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 uvjim added the bug Something isn't working label Sep 13, 2024
@github-project-automation github-project-automation bot moved this to Reported in Bug reports Sep 13, 2024
@uvjim
Copy link
Author

uvjim commented Sep 13, 2024

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

@uvjim
Copy link
Author

uvjim commented Sep 14, 2024

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'

@uvjim uvjim closed this as completed Sep 14, 2024
@github-project-automation github-project-automation bot moved this from Reported to Done in Bug reports Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

1 participant