SOLVED
I needed libgammu-dev installed at the base system level.
Leaving my post below for reference…
================================
Thanks for your work on this @Oscar_Calvo.
I’m looking forward to replacing my existing sms integration call gammu through a parameterised shell_command.
Unfortunately I’m unable to get python-gammu installed on my Python3.7 venv running on Ubuntu 18.04 when the sms integration is configured.
Running the install command under the homeassistant user within the activated venv gives me some clues as to what is going on:
(homeassistant) [email protected]:~/.homeassistant$ python3.7 -m pip install python-gammu
Collecting python-gammu
Using cached python-gammu-2.12.tar.gz (135 kB)
ERROR: Command errored out with exit status 100:
command: /srv/homeassistant/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ea2vl0z7/python-gammu/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ea2vl0z7/python-gammu/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-ea2vl0z7/python-gammu/pip-egg-info
cwd: /tmp/pip-install-ea2vl0z7/python-gammu/
Complete output (9 lines):
Package gammu was not found in the pkg-config search path.
Perhaps you should add the directory containing `gammu.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gammu' found
Package gammu-smsd was not found in the pkg-config search path.
Perhaps you should add the directory containing `gammu-smsd.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gammu-smsd' found
Can not find supported Gammu version using pkg-config!
----------------------------------------
ERROR: Command errored out with exit status 100: python setup.py egg_info Check the logs for full command output.
gammu-smsd is installed (with sudo apt install gammu-smsd
) but I’m guessing that the above is related to permissions?
I’m rather out of my depth at this point so would appreciate any pointers you could provide.