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

SMS integration fails with error in log. #74667

Closed
shuntfield opened this issue Jul 7, 2022 · 10 comments
Closed

SMS integration fails with error in log. #74667

shuntfield opened this issue Jul 7, 2022 · 10 comments

Comments

@shuntfield
Copy link

The problem

SMS integration has stopped working. It loads but when you send a text it come back with that error in the log.

What version of Home Assistant Core has the issue?

core-2022.7.0

What was the last working version of Home Assistant Core?

core-2022.6 (all versions)

What type of installation are you running?

Home Assistant OS

Integration causing the issue

SMS notifications via GSM-modem

Link to integration documentation on our website

https://www.home-assistant.io/integrations/sms

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.script.send_test_text_message_on_demand
Source: components/sms/notify.py:56
Integration: Scripts (documentation, issues)
First occurred: 20:04:00 (4 occurrences)
Last logged: 20:07:29

Send Test Text Message on Demand: Error executing script. Unexpected error for call_service at pos 1: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 447, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 680, in _async_call_service_step
    await service_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/components/notify/legacy.py", line 229, in _async_notify_message_service
    await self.async_send_message(**kwargs)
  File "/usr/src/homeassistant/homeassistant/components/sms/notify.py", line 56, in async_send_message
    encoded = gammu.EncodeSMS(smsinfo)
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

Additional information

SMS has stopped working, I'm guessing it's python update related.

@probot-home-assistant
Copy link

sms documentation
sms source
(message by IssueLinks)

@probot-home-assistant
Copy link

Hey there @ocalvo, mind taking a look at this issue as it has been labeled with an integration (sms) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)

@scxs535
Copy link

scxs535 commented Jul 8, 2022

same problem like #74664

@scxs535
Copy link

scxs535 commented Jul 8, 2022

@PaulAnnekov
Could you please check this? Thanks

@tof92130
Copy link

tof92130 commented Jul 8, 2022

Integration fails after updating to 2022.07.0, I am using a Pi4, delete the previous integration and integrate it again, it doesn't work.

Logger: homeassistant.components.sms.gateway
Source: components/sms/gateway.py:173
Integration: SMS notifications via GSM-modem (documentation, issues)
First occurred: 07:52:53 (1 occurrences)
Last logged: 07:52:53

Failed to initialize, error ERR_DEVICENOTEXIST

@PaulAnnekov
Copy link
Contributor

I will update my local HA version and take a look.

@hellcry37

This comment was marked as abuse.

@M0DDer
Copy link

M0DDer commented Jul 12, 2022

for debian/ubuntu users:

sudo apt-get install python3-gammu

sudo apt install software-properties-common -y
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.10

@capi92
Copy link

capi92 commented Aug 20, 2022

for debian/ubuntu users:

sudo apt-get install python3-gammu

sudo apt install software-properties-common -y sudo add-apt-repository ppa:deadsnakes/ppa sudo apt install python3.10

I'm running Debian supervised and this procedure is not working.
@M0DDer Do you confirm this is mandatory ?

#sudo apt-get install python3-gammu
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package python3-gammu

@hellcry37

This comment was marked as abuse.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants