System up and Gammu is working along with MySql. I am trying to use it within my FastAPI project. When I try to install this to my virtualenv environment I got the following error.
System: Ubuntu 20.04 LTS with Python 3.8.10 with GCC 9.4.0, and Gammu-smsd version 1.41.0
pip install smsgateway-gammu
Collecting smsgateway-gammu
Using cached smsgateway-gammu-0.0.7.tar.gz (5.6 kB)
Collecting Flask>=0.12.2
Using cached Flask-2.1.2-py3-none-any.whl (95 kB)
Requirement already satisfied: PyYAML>=3.12 in /home/home/.local/share/virtualenvs/FastApi-Q-APV4Wx/lib/python3.8/site-packages (from smsgateway-gammu) (5.4.1)
Collecting python-gammu==2.6
Using cached python-gammu-2.6.tar.bz2 (118 kB)
ERROR: Command errored out with exit status 1:
command: /home/home/.local/share/virtualenvs/FastApi-Q-APV4Wx/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-m2d9oszf/python-gammu/setup.py'"'"'; file='"'"'/tmp/pip-install-m2d9oszf/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-m2d9oszf/python-gammu/pip-egg-info
cwd: /tmp/pip-install-m2d9oszf/python-gammu/
Complete output (11 lines):
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-m2d9oszf/python-gammu/setup.py", line 110, in
check_minimum_gammu_version()
File "/tmp/pip-install-m2d9oszf/python-gammu/setup.py", line 41, in check_minimum_gammu_version
distutils.spawn.spawn([
File "/usr/lib/python3.8/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/usr/lib/python3.8/distutils/spawn.py", line 157, in _spawn_posix
raise DistutilsExecError(
distutils.errors.DistutilsExecError: command 'pkg-config' failed with exit status 1
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
System up and Gammu is working along with MySql. I am trying to use it within my FastAPI project. When I try to install this to my virtualenv environment I got the following error.
System: Ubuntu 20.04 LTS with Python 3.8.10 with GCC 9.4.0, and Gammu-smsd version 1.41.0
pip install smsgateway-gammu Collecting smsgateway-gammu Using cached smsgateway-gammu-0.0.7.tar.gz (5.6 kB) Collecting Flask>=0.12.2 Using cached Flask-2.1.2-py3-none-any.whl (95 kB) Requirement already satisfied: PyYAML>=3.12 in /home/home/.local/share/virtualenvs/FastApi-Q-APV4Wx/lib/python3.8/site-packages (from smsgateway-gammu) (5.4.1) Collecting python-gammu==2.6 Using cached python-gammu-2.6.tar.bz2 (118 kB) ERROR: Command errored out with exit status 1: command: /home/home/.local/share/virtualenvs/FastApi-Q-APV4Wx/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-m2d9oszf/python-gammu/setup.py'"'"'; file='"'"'/tmp/pip-install-m2d9oszf/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-m2d9oszf/python-gammu/pip-egg-info cwd: /tmp/pip-install-m2d9oszf/python-gammu/ Complete output (11 lines): Traceback (most recent call last): File "", line 1, in
File "/tmp/pip-install-m2d9oszf/python-gammu/setup.py", line 110, in
check_minimum_gammu_version()
File "/tmp/pip-install-m2d9oszf/python-gammu/setup.py", line 41, in check_minimum_gammu_version
distutils.spawn.spawn([
File "/usr/lib/python3.8/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/usr/lib/python3.8/distutils/spawn.py", line 157, in _spawn_posix
raise DistutilsExecError(
distutils.errors.DistutilsExecError: command 'pkg-config' failed with exit status 1
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.