Fresh install problem

I am currently doing a fresh install to get up to date but am running into an issue when running the installation script. I am using the latest raspberry pi os lite. I followed the “Getting Started” guide so everything is up to date. Ive pasted the build error below.
` Building wheel for bcrypt (PEP 517) … error
ERROR: Command errored out with exit status 1:
command: /home/pi/brewblox/.venv/bin/python3 /tmp/tmpso38u_lp_in_process.py build_wheel /tmp/tmpg3pclrer
cwd: /tmp/pip-install-mbkqj33o/bcrypt_e3bfa3a19fdc4c17aa0f7bcb6a74f65d
Complete output (58 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-cpython-39
creating build/lib.linux-armv7l-cpython-39/bcrypt
copying src/bcrypt/init.py → build/lib.linux-armv7l-cpython-39/bcrypt
copying src/bcrypt/about.py → build/lib.linux-armv7l-cpython-39/bcrypt
running egg_info
writing src/bcrypt.egg-info/PKG-INFO
writing dependency_links to src/bcrypt.egg-info/dependency_links.txt
writing requirements to src/bcrypt.egg-info/requires.txt
writing top-level names to src/bcrypt.egg-info/top_level.txt
reading manifest file ‘src/bcrypt.egg-info/SOURCES.txt’
reading manifest template ‘MANIFEST.in’
warning: no previously-included files found matching ‘requirements.txt’
warning: no previously-included files found matching ‘release.py’
warning: no previously-included files found matching ‘mypy.ini’
warning: no previously-included files matching ‘’ found under directory ‘.github’
warning: no previously-included files matching '
’ found under directory ‘.circleci’
warning: no previously-included files found matching ‘src/_bcrypt/target’
warning: no previously-included files matching ‘*’ found under directory ‘src/_bcrypt/target’
adding license file ‘LICENSE’
writing manifest file ‘src/bcrypt.egg-info/SOURCES.txt’
copying src/bcrypt/_bcrypt.pyi → build/lib.linux-armv7l-cpython-39/bcrypt
copying src/bcrypt/py.typed → build/lib.linux-armv7l-cpython-39/bcrypt
running build_ext
running build_rust

  =============================DEBUG ASSISTANCE=============================
  If you are seeing a compilation error please try the following steps to
  successfully install bcrypt:
  1) Upgrade to the latest pip and try again. This will fix errors for most
     users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
  2) Ensure you have a recent Rust toolchain installed. bcrypt requires
     rustc >= 1.56.0.

  Python: 3.9.2
  platform: Linux-5.15.61-v7+-armv7l-with-glibc2.31
  pip: n/a
  setuptools: 65.4.0
  setuptools_rust: 1.5.2
  rustc: n/a
  =============================DEBUG ASSISTANCE=============================

error: can’t find Rust compiler

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.

To update pip, run:

  pip install --upgrade pip

and then retry package installation.

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.

This package requires Rust >=1.56.0.

ERROR: Failed building wheel for bcrypt
Successfully built brewblox-ctl
Failed to build bcrypt
ERROR: Could not build wheels for bcrypt which use PEP 517 and cannot be installed directly`

I’ve pushed a fix to the problem. It should work now if you re-run the install command

wget -qO - https://www.brewblox.com/install | bash

For those running into this issue with existing installs, you may need to run some manual commands, as the fix is in the code that downloads the update.

Run this in your brewblox directory

. .venv/bin/activate
python3 -m pip install --prefer-binary --update cryptography bcrypt
brewblox-ctl update

I re-ran the install command on a newly flashed raspberry pi os and received the same build failure

It looks like I missed a script. It should be fixed now. There’s no need to re-flash the OS.

Simply re-running the install command yields the below result. I just removed the brewblox directory that was left from the failed install/build (rm -r brewblox) then re-ran the install command which appears to be working

pi@brewpi:~ $ wget -qO - https://www.brewblox.com/install | bash
INFO       Installing Apt packages... 
Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Reading package lists... Done                             
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-venv is already the newest version (3.9.2-3).
python3-pip is already the newest version (20.3.4-4+rpt1+deb11u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
INFO       Brewblox dir is "/home/pi/brewblox" 
INFO       Brewblox release is "edge" 
WARN       /home/pi/brewblox already exists, but is not a Brewblox directory.

This is indeed just a warning about there being a “brewblox” dir without a brewblox config file in it.

The installation process immediately uses the package that earlier caused an error. If that completed succesfully, then the issue should be resolved.