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

Fix requirements to point to pyserial, rather than serial #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ericpapaluca
Copy link

Addresses: #6

Been coming across an issue where upon restarting HA I get the error
ImportError: cannot import name 'Serial' from 'serial' (/usr/local/lib/python3.12/site-packages/serial/__init__.py)

This is also happening on the forum here: https://community.home-assistant.io/t/cambridge-audio-cxn-and-cxa-media-player/175992/42

Doing a pip install pyserial --force-reinstall within the container seems to fix it.

Upon further investigation, I can see the integration relies on serial (A framework for serializing/deserializing JSON/YAML/XML into python class instances and vice versa), rather than pyserial.

As such, I've gone and updated the requirements.

This seems to have fixed my issue in between HA restarts.

Thanks for making this integration! :)

Copy link

@AdamDewberry AdamDewberry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm :shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants