Missing Python Module. How to install?

RPNCALC stopped working at V3.3

Starting it from the commandline I get a python error:

ModuleNotFoundError: No module named ‘mpmath’

I am guessing the module was removed from the distribution.

I try installing it:

[nemo@Sailfish ~]$ python3 -m pip install mpmath
/usr/bin/python3: No module named pip

and no PIP

[nemo@Sailfish ~]$ harbour-rpncalc
[D] unknown:0 - Using Wayland-EGL
[D] unknown:0 - Got library name:  "/usr/lib/qt5/qml/io/thp/pyotherside/libpyothersideplugin.so"
[D] unknown:0 - "PyOtherSide error: Traceback (most recent call last):\n\n  File \"/usr/share/harbour-rpncalc/python/rpncalc_engine.py\", line 11, in <module>\n    import rpncalc_mpmath_backend as mpmathBackend\n\n  File \"/usr/share/harbour-rpncalc/python/rpncalc_mpmath_backend.py\", line 2, in <module>\n    import mpmath\n\nModuleNotFoundError: No module named 'mpmath'\n"
[W] unknown:0 - Unhandled PyOtherSide error: Cannot import module: rpncalc_engine (Traceback (most recent call last):

  File "/usr/share/harbour-rpncalc/python/rpncalc_engine.py", line 11, in <module>
    import rpncalc_mpmath_backend as mpmathBackend

  File "/usr/share/harbour-rpncalc/python/rpncalc_mpmath_backend.py", line 2, in <module>
    import mpmath

ModuleNotFoundError: No module named 'mpmath'

devel-su pkcon install python3-pip

and then
pip install --user mpmath

That should do it.


Thanks, that was all that was wrong, and I have a calculator again.

Next question will be how to add what is needed to the RPNCALC rpm, but that will have to wait until I can get the development env going on my machine again.

Depends python3-pip