internet-pi icon indicating copy to clipboard operation
internet-pi copied to clipboard

Failed install raspberry Pi 4 brand new install

Open ajappe opened this issue 3 years ago • 3 comments

TASK [Install Docker Compose using Pip.] ******************************************************************************* fatal: [192.168.2.191]: FAILED! => {"changed": false, "cmd": ["/usr/local/bin/pip3", "install", "docker-compose"], "msg": "stdout: Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple\nCollecting docker-compose\n Using cached https://www.piwheels.org/simple/docker-compose/docker_compose-1.29.2-py2.py3-none-any.whl (114 kB)\nCollecting docker[ssh]>=5\n Using cached https://www.piwheels.org/simple/docker/docker-6.0.0-py3-none-any.whl (147 kB)\nCollecting PyYAML<6,>=3.10\n Using cached https://www.piwheels.org/simple/pyyaml/PyYAML-5.4.1-cp39-cp39-linux_armv7l.whl (45 kB)\nRequirement already satisfied: distro<2,>=1.5.0 in /usr/lib/python3/dist-packages (from docker-compose) (1.5.0)\nCollecting docopt<1,>=0.6.1\n Using cached https://www.piwheels.org/simple/docopt/docopt-0.6.2-py2.py3-none-any.whl (13 kB)\nCollecting jsonschema<4,>=2.5.1\n Using cached https://www.piwheels.org/simple/jsonschema/jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)\nCollecting websocket-client<1,>=0.32.0\n Using cached https://www.piwheels.org/simple/websocket-client/websocket_client-0.59.0-py2.py3-none-any.whl (67 kB)\nRequirement already satisfied: requests<3,>=2.20.0 in /usr/lib/python3/dist-packages (from docker-compose) (2.25.1)\nCollecting python-dotenv<1,>=0.13.0\n Using cached python_dotenv-0.21.0-py3-none-any.whl (18 kB)\nCollecting texttable<2,>=0.9.0\n Using cached https://www.piwheels.org/simple/texttable/texttable-1.6.4-py2.py3-none-any.whl (10 kB)\nCollecting dockerpty<1,>=0.4.1\n Using cached https://www.piwheels.org/simple/dockerpty/dockerpty-0.4.1-py3-none-any.whl (16 kB)\nCollecting packaging>=14.0\n Using cached https://www.piwheels.org/simple/packaging/packaging-21.3-py3-none-any.whl (40 kB)\nCollecting requests<3,>=2.20.0\n Using cached https://www.piwheels.org/simple/requests/requests-2.28.1-py3-none-any.whl (62 kB)\nRequirement already satisfied: urllib3>=1.26.0 in /usr/lib/python3/dist-packages (from docker[ssh]>=5->docker-compose) (1.26.5)\nCollecting paramiko>=2.4.3\n Using cached https://www.piwheels.org/simple/paramiko/paramiko-2.11.0-py2.py3-none-any.whl (215 kB)\nRequirement already satisfied: six>=1.3.0 in /usr/lib/python3/dist-packages (from dockerpty<1,>=0.4.1->docker-compose) (1.16.0)\nRequirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from jsonschema<4,>=2.5.1->docker-compose) (52.0.0)\nCollecting attrs>=17.4.0\n Using cached https://www.piwheels.org/simple/attrs/attrs-22.1.0-py2.py3-none-any.whl (58 kB)\nCollecting pyrsistent>=0.14.0\n Using cached https://www.piwheels.org/simple/pyrsistent/pyrsistent-0.18.1-cp39-cp39-linux_armv7l.whl (101 kB)\nCollecting charset-normalizer<3,>=2\n Using cached https://www.piwheels.org/simple/charset-normalizer/charset_normalizer-2.1.1-py3-none-any.whl (39 kB)\nRequirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests<3,>=2.20.0->docker-compose) (2.10)\nRequirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests<3,>=2.20.0->docker-compose) (2020.6.20)\nCollecting pyparsing!=3.0.5,>=2.0.2\n Using cached https://www.piwheels.org/simple/pyparsing/pyparsing-3.0.9-py3-none-any.whl (98 kB)\nCollecting pynacl>=1.0.1\n Using cached https://www.piwheels.org/simple/pynacl/PyNaCl-1.5.0-cp39-cp39-linux_armv7l.whl (585 kB)\nCollecting cryptography>=2.5\n Using cached https://www.piwheels.org/simple/cryptography/cryptography-38.0.1-cp39-cp39-linux_armv7l.whl (2.5 MB)\nCollecting bcrypt>=3.1.3\n Using cached bcrypt-4.0.1.tar.gz (25 kB)\n Installing build dependencies: started\n Installing build dependencies: finished with status 'done'\n Getting requirements to build wheel: started\n Getting requirements to build wheel: finished with status 'done'\n Preparing metadata (pyproject.toml): started\n Preparing metadata (pyproject.toml): finished with status 'done'\nCollecting cffi>=1.12\n Using cached https://www.piwheels.org/simple/cffi/cffi-1.15.1-cp39-cp39-linux_armv7l.whl (364 kB)\nCollecting pycparser\n Using cached https://www.piwheels.org/simple/pycparser/pycparser-2.21-py2.py3-none-any.whl (119 kB)\nBuilding wheels for collected packages: bcrypt\n Building wheel for bcrypt (pyproject.toml): started\n Building wheel for bcrypt (pyproject.toml): finished with status 'error'\nFailed to build bcrypt\n\n:stderr: error: subprocess-exited-with-error\n \n × Building wheel for bcrypt (pyproject.toml) did not run successfully.\n │ exit code: 1\n ╰─> [58 lines of output]\n running bdist_wheel\n running build\n running build_py\n creating build\n creating build/lib.linux-armv7l-cpython-39\n creating build/lib.linux-armv7l-cpython-39/bcrypt\n copying src/bcrypt/about.py -> build/lib.linux-armv7l-cpython-39/bcrypt\n copying src/bcrypt/init.py -> build/lib.linux-armv7l-cpython-39/bcrypt\n running egg_info\n writing src/bcrypt.egg-info/PKG-INFO\n writing dependency_links to src/bcrypt.egg-info/dependency_links.txt\n writing requirements to src/bcrypt.egg-info/requires.txt\n writing top-level names to src/bcrypt.egg-info/top_level.txt\n reading manifest file 'src/bcrypt.egg-info/SOURCES.txt'\n reading manifest template 'MANIFEST.in'\n warning: no previously-included files found matching 'requirements.txt'\n warning: no previously-included files found matching 'release.py'\n warning: no previously-included files found matching 'mypy.ini'\n warning: no previously-included files matching '' found under directory '.github'\n warning: no previously-included files matching '' found under directory '.circleci'\n warning: no previously-included files found matching 'src/_bcrypt/target'\n warning: no previously-included files matching '*' found under directory 'src/_bcrypt/target'\n adding license file 'LICENSE'\n writing manifest file 'src/bcrypt.egg-info/SOURCES.txt'\n copying src/bcrypt/_bcrypt.pyi -> build/lib.linux-armv7l-cpython-39/bcrypt\n copying src/bcrypt/py.typed -> build/lib.linux-armv7l-cpython-39/bcrypt\n running build_ext\n running build_rust\n \n =============================DEBUG ASSISTANCE=============================\n If you are seeing a compilation error please try the following steps to\n successfully install bcrypt:\n 1) Upgrade to the latest pip and try again. This will fix errors for most\n users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip\n 2) Ensure you have a recent Rust toolchain installed. bcrypt requires\n rustc >= 1.56.0.\n \n Python: 3.9.2\n platform: Linux-5.15.61-v7l+-armv7l-with-glibc2.31\n pip: 22.2.2\n setuptools: 65.4.1\n setuptools_rust: 1.5.2\n rustc: n/a\n =============================DEBUG ASSISTANCE=============================\n \n error: can't find Rust compiler\n \n If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.\n \n To update pip, run:\n \n pip install --upgrade pip\n \n and then retry package installation.\n \n If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.\n \n This package requires Rust >=1.56.0.\n [end of output]\n \n note: This error originates from a subprocess, and is likely not a problem with pip.\n ERROR: Failed building wheel for bcrypt\nERROR: Could not build wheels for bcrypt, which is required to install pyproject.toml-based projects\n"}

ajappe avatar Oct 10 '22 10:10 ajappe

had to upgrade pip, install rust and stop the playbook from trying to install it but its working now.

ajappe avatar Oct 11 '22 00:10 ajappe

https://github.com/adriankumpf/teslamate/discussions/2881 worked for me. As i understand the problem: Compose V1 is EOL

MichaelBMF avatar Oct 11 '22 07:10 MichaelBMF

Thanks to this thread I have finally succeeded in installing internet-pi on my Pi4b running a fresh installation of the 2022-09-22 Bullseye OS. For those like me unfamiliar with dealing with installation errors, after installation failed with the "TASK...failed' message as shown above, I only needed to execute "sudo pip3 install -U "bcrypt<4.0.0" and rerun "ansible-playbook main.yml"

This is a unique ISP monitoring program which I use at several sites. Thanks to the Jeff and to the forum contributors

rrobinett avatar Oct 17 '22 21:10 rrobinett

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

stale[bot] avatar Jan 21 '23 07:01 stale[bot]

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

github-actions[bot] avatar Aug 14 '23 21:08 github-actions[bot]