Problem installing python program "jrnl'

Hi. Sorry about the long post. This is the output while trying to install the app "jrnl" It is a journal writing program written in python. Any ideas how to address this? Can you suggest an alternative to pip, ......I believe it is packaged for arch but have no expertise finding and accessing and installing it.

===========================================================
pip2 install jrnl
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting jrnl
Using cached https://files.pythonhosted.org/packages/fe/2a/bc42db56f60a4c860aeb55a6d0368f887f117d8c4accc3cb49a52842f15e/jrnl-2.0.1.tar.gz
Collecting parsedatetime>=1.5
Using cached https://files.pythonhosted.org/packages/4e/26/7612745a21452f6d822c0868ff7168dd8cf592645b2a553a177e1de43901/parsedatetime-2.5-py2-none-any.whl
Requirement already satisfied: pytz>=2015.7 in /usr/lib/python2.7/site-packages (from jrnl) (2019.3)
Requirement already satisfied: six>=1.10.0 in /usr/lib/python2.7/site-packages (from jrnl) (1.14.0)
Collecting cryptography>=1.4
Using cached https://files.pythonhosted.org/packages/be/60/da377e1bed002716fb2d5d1d1cab720f298cb33ecff7bf7adea72788e4e4/cryptography-2.8.tar.gz
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python2 /usr/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-z_Zj0l/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.8,!=1.11.3; platform_python_implementation != '"'"'PyPy'"'"''
cwd: None
Complete output (56 lines):
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting setuptools>=40.6.0
Using cached https://files.pythonhosted.org/packages/f9/d3/955738b20d3832dfa3cd3d9b07e29a8162edb480bf988332f5e6e48ca444/setuptools-44.0.0-py2.py3-none-any.whl
Collecting wheel
Using cached https://files.pythonhosted.org/packages/8c/23/848298cccf8e40f5bbb59009b32848a4c38f4e7f3364297ab3c3e2e2cd14/wheel-0.34.2-py2.py3-none-any.whl
Collecting cffi!=1.11.3,>=1.8
Using cached https://files.pythonhosted.org/packages/05/54/3324b0c46340c31b909fcec598696aaec7ddc8c18a63f2db352562d3354c/cffi-1.14.0.tar.gz
Collecting pycparser
Using cached https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz
Installing collected packages: setuptools, wheel, pycparser, cffi
Running setup.py install for pycparser: started
Running setup.py install for pycparser: finished with status 'done'
Running setup.py install for cffi: started
Running setup.py install for cffi: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/bin/python2 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-F5TlyP/cffi/setup.py'"'"'; file='"'"'/tmp/pip-install-F5TlyP/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-rWa6Hl/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-z_Zj0l/overlay --compile
cwd: /tmp/pip-install-F5TlyP/cffi/
Complete output (36 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-aarch64-2.7
creating build/lib.linux-aarch64-2.7/cffi
copying cffi/recompiler.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/verifier.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/init.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/lock.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/api.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/pkgconfig.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/cparser.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/error.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/commontypes.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/model.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/_cffi_include.h -> build/lib.linux-aarch64-2.7/cffi
copying cffi/parse_c_type.h -> build/lib.linux-aarch64-2.7/cffi
copying cffi/_embedding.h -> build/lib.linux-aarch64-2.7/cffi
copying cffi/_cffi_errors.h -> build/lib.linux-aarch64-2.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-aarch64-2.7
creating build/temp.linux-aarch64-2.7/c
gcc -pthread -fno-strict-aliasing -march=armv8-a -O2 -pipe -fstack-protector-strong -fno-plt -DNDEBUG -march=armv8-a -O2 -pipe -fstack-protector-strong -fno-plt -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-aarch64-2.7/c/_cffi_backend.o
c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
15 | #include <ffi.h>
| ^~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python2 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-F5TlyP/cffi/setup.py'"'"'; file='"'"'/tmp/pip-install-F5TlyP/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-rWa6Hl/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-z_Zj0l/overlay --compile Check the logs for full command output.

ERROR: Command errored out with exit status 1: /usr/bin/python2 /usr/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-z_Zj0l/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.8,!=1.11.3; platform_python_implementation != '"'"'PyPy'"'"'' Check the logs for full command output.

Looks like you should try Python 3?

Here's some info on installing Python packages without using pip:
https://www.quora.com/How-can-we-install-the-Python-package-other-than-using-pip

A package for jrnl appears to be available here.
https://aur.archlinux.org/packages/jrnl/

I guess that it is not packaged for Arm.

Well, as it is a python package and therefore do not require a specific architecture. You can just install it from the AUR.

Darn - no luck here. Any ideas how to proceed?

makepkg -sri
==> Making package: jrnl 2.0.1-1 (Sat 15 Feb 2020 02:23:18 ACDT)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: python-asteval>=0.9.8
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
-> python-parsedatetime>=1.2
-> python-yaml>=5.1.2
-> python-pytz>=2013b
-> python-six>=1.6.1
-> python-tzlocal>=1.1
-> python-keyring>=3.3
-> python-dateutil>=2.2
-> python-passlib>=1.6.2
-> python-asteval>=0.9.8
-> python-xdg>=0.26
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.

Yeah, you need to first build and install this package from the AUR, since it's a dependency.

Do you recommend something like yay? Should Manjaro users consider this? Manjaro for PBPro is an excellent distro. My next move is how to make use of it in a day to day context. Finding and using Apps will be a part of that.

This worked well. "https://aur.archlinux.org/packages/python-asteval/" Thank you.

This post is now solved.

Forum kindly sponsored by