compile wammu from source python app

Greetings!

System is an OpenSuse-15.3 64-bit.

Successfully compiled gammu from source gammu-1.42.0. Despite a missing a final sudo ldconfig it worked as described.

Now I want to compile wammu-0.44. I maually installed wxPython then

python setup.py build
sudo python setup.py install

However, running wammu ends up in searching for missing modules. First it does not find /usr/share/Wammu/images - copied it maually from the source directory /usr/local/src/wammu-0.44/images to /usr/share/Wammu

Being only an experienced c/c++ developer I would very much appreciate a from an pythonian .

Tanks for reading and comments.

Below the python build as described in

excerpt from wammu-0.44/INSTALL.en_GB Building from Sources**
**


It uses standard distutils, so:
python setup.py build
sudo python setup.py install

Following the log messages:



MAG-T1:/usr/local/src/wammu-0.44 # python setup.py build
Traceback (most recent call last):
  File "setup.py", line 25, in <module>
    from setuptools import setup
ImportError: No module named setuptools
MAG-T1:/usr/local/src/wammu-0.44 # pip3 install setuptools
Requirement already satisfied: setuptools in /usr/lib/python3.6/site-packages (40.5.0)
MAG-T1:/usr/local/src/wammu-0.44 #

MAG-T1:/usr/local/src/wammu-0.44 # pip3 install -U pip
Collecting pip
  Downloading pip-21.3.1-py3-none-any.whl (1.7 MB)
     |\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 1.7 MB 2.6 MB/s 
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.0.2
    Uninstalling pip-20.0.2:
      Successfully uninstalled pip-20.0.2
Successfully installed pip-21.3.1
MAG-T1:/usr/local/src/wammu-0.44 # python setup.py build
Traceback (most recent call last):
  File "setup.py", line 25, in <module>
    from setuptools import setup
ImportError: No module named setuptools
MAG-T1:/usr/local/src/wammu-0.44 # 




Downloading python3-atomicwrites (download size 17 KiB)
Downloading python3 (download size 83 KiB)
Downloading python3-curses (download size 81.2 KiB)
Downloading python3-devel (download size 230.4 KiB)
Downloading python3-dbm (download size 63 KiB)
Downloading python3-setuptools (download size 616 KiB)
Downloading python3-pip (download size 1.74 MiB)
Downloading python3-cryptography (download size 426.4 KiB)
Downloading python3-virtualenv (download size 1.72 MiB)
Downloading python3-pytest (download size 521 KiB)
Downloading python3-pyflakes (download size 125.2 KiB)
Downloading python3-pyOpenSSL (download size 106.8 KiB)
Downloading python3-tox (download size 123.6 KiB)
Downloading python3-flake8 (download size 125.5 KiB)
Downloading python3-urllib3 (download size 198.8 KiB)
Downloading python3-requests (download size 140.4 KiB)
Downloading patterns-devel-python-devel_python3 (download size 8.2 KiB)
Installing python3-atomicwrites-1.1.5-1.38.noarch.rpm (installed size 27.7 KiB)
Installing python3-3.6.15-150300.10.21.1.x86_64.rpm (installed size 141.3 KiB)
Installing python3-curses-3.6.15-150300.10.21.1.x86_64.rpm (installed size 148.6 KiB)
Installing python3-devel-3.6.15-150300.10.21.1.x86_64.rpm (installed size 788.5 KiB)
Installing python3-dbm-3.6.15-150300.10.21.1.x86_64.rpm (installed size 78.1 KiB)
Installing python3-setuptools-40.5.0-6.3.1.noarch.rpm (installed size 3.33 MiB)
Installing python3-pip-20.0.2-150100.6.18.1.noarch.rpm (installed size 9.86 MiB)
Installing python3-cryptography-2.8-10.1.x86_64.rpm (installed size 2.51 MiB)
Installing python3-virtualenv-16.1.0-1.13.noarch.rpm (installed size 2.08 MiB)
Installing python3-pytest-3.10.1-bp153.1.106.noarch.rpm (installed size 2.11 MiB)
Installing python3-pyflakes-2.1.1-bp153.1.20.noarch.rpm (installed size 801.6 KiB)
Installing python3-pyOpenSSL-19.0.0-1.31.noarch.rpm (installed size 577.8 KiB)
Installing python3-tox-2.9.1-2.27.noarch.rpm (installed size 478.3 KiB)
Installing python3-flake8-3.7.7-bp153.1.21.noarch.rpm (installed size 544.8 KiB)
Installing python3-urllib3-1.25.10-4.3.1.noarch.rpm (installed size 861.6 KiB)
Installing python3-requests-2.24.0-1.24.noarch.rpm (installed size 486.2 KiB)
Installing patterns-devel-python-devel_python3-20180125-lp153.1.14.x86_64.rpm (installed size 59 B)

“python” refers to Python 2, not Python 3. You cannot mix and match releases. Use python3 if you need Python 3. “python3” itself is alias to default release which is Python 3.6.x on Leap 15.3.

Thanks for your tipp, however

ls -l /usr/bin/python
lrwxrwxrwx 1 root root 9 Mar 22 19:41 /usr/bin/python -> python2.7

https://www.suse.com/releasenotes/x86_64/SUSE-SLES/15-SP4/index.html#jsc-SLE-16747

5.6.7 Python 2 has been removed

Do you need a solution that lasts only for months?
Upgrade to Leap 15.4 and go on.