OpenHABian: FIND3 Installation Issue

  • Platform information:
    • Hardware: _Raspberry Pi 3B+
    • OpenHABian 1.72 - fresh install (openHAB 3.2.0)

Installation of FIND3 via openhabian-config end with

> There was an error or interruption during the execution of: "20 | Optional Components"

setting debug to maximum seems to point to issue

> $ cd /opt/find3/server/ai 
> + cd /opt/find3/server/ai
> + return 0
> + cond_redirect python3 -m pip install -r requirements.txt
> + [[ -n '' ]]
> + echo -e '\n\033[90;01m$ python3 -m pip install -r requirements.txt \033[39;49;00m'
> 
> $ python3 -m pip install -r requirements.txt 
> + python3 -m pip install -r requirements.txt
> Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
> Collecting base58==1.0.0
>   Using cached https://www.piwheels.org/simple/base58/base58-1.0.0-py3-none-any.whl (4.2 kB)
> Collecting certifi==2018.8.24
>   Using cached https://www.piwheels.org/simple/certifi/certifi-2018.8.24-py2.py3-none-any.whl (147 kB)
> Collecting chardet==3.0.4
>   Using cached https://www.piwheels.org/simple/chardet/chardet-3.0.4-py2.py3-none-any.whl (133 kB)
> Collecting click==6.7
>   Using cached https://www.piwheels.org/simple/click/click-6.7-py2.py3-none-any.whl (71 kB)
> Requirement already satisfied: cycler==0.10.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 5)) (0.10.0)
> Collecting expiringdict==1.1.4
>   Using cached https://www.piwheels.org/simple/expiringdict/expiringdict-1.1.4-py3-none-any.whl (5.0 kB)
> Collecting Flask==1.0.2
>   Using cached https://www.piwheels.org/simple/flask/Flask-1.0.2-py2.py3-none-any.whl (91 kB)
> Collecting idna==2.7
>   Using cached https://www.piwheels.org/simple/idna/idna-2.7-py2.py3-none-any.whl (58 kB)
> Collecting itsdangerous==0.24
>   Using cached https://www.piwheels.org/simple/itsdangerous/itsdangerous-0.24-py3-none-any.whl (10 kB)
> Collecting Jinja2==2.10
>   Using cached https://www.piwheels.org/simple/jinja2/Jinja2-2.10-py2.py3-none-any.whl (126 kB)
> Collecting kiwisolver==1.0.1
>   Using cached https://www.piwheels.org/simple/kiwisolver/kiwisolver-1.0.1-cp39-cp39-linux_armv7l.whl (1.0 MB)
> Collecting MarkupSafe==1.0
>   Using cached MarkupSafe-1.0.tar.gz (14 kB)
>     ERROR: Command errored out with exit status 1:
>      command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-vm2f_pxu/markupsafe_ee995122aaf44b7b8423153c372b1b40/setup.py'"'"'; __file__='"'"'/tmp/pip-install-vm2f_pxu/markupsafe_ee995122aaf44b7b8423153c372b1b40/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-pip-egg-info-t0orbfbk
>          cwd: /tmp/pip-install-vm2f_pxu/markupsafe_ee995122aaf44b7b8423153c372b1b40/
>     Complete output (5 lines):
>     Traceback (most recent call last):
>       File "<string>", line 1, in <module>
>       File "/tmp/pip-install-vm2f_pxu/markupsafe_ee995122aaf44b7b8423153c372b1b40/setup.py", line 6, in <module>
>         from setuptools import setup, Extension, Feature
>     ImportError: cannot import name 'Feature' from 'setuptools' (/usr/lib/python3/dist-packages/setuptools/__init__.py)
>     ----------------------------------------
> WARNING: Discarding https://files.pythonhosted.org/packages/4d/de/32d741db316d8fdb7680822dd37001ef7a448255de9699ab4bfcbdf4172b/MarkupSafe-1.0.tar.gz#sha256=a6be69091dac236ea9c6bc7d012beab42010fa914c459791d627dad4910eb665 (from https://pypi.org/simple/markupsafe/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
> ERROR: Could not find a version that satisfies the requirement MarkupSafe==1.0
> ERROR: No matching distribution found for MarkupSafe==1.0
> + return 1
> + echo 'FAILED (pip)'
> FAILED (pip)

How can I fix that please?

kind regards

Seeing the same issue. You can see what the install is attempting to do here https://github.com/openhab/openhabian/blob/main/functions/find.bash

I opened a issue against find3 in github for it https://github.com/schollz/find3/issues/221
I changed /opt/find3/server/ai/requirements.txt to MarkupSafe==1.1.1

The install will get a little further and fail on some builds. Maybe someone has done a fork of the find3 repo and fixed the issues.

There is also this issue - https://github.com/schollz/find3/pull/201