Failed building wheel for cryptography in home assistant core 2022.11.2 on rpi 3b+

Failed building wheel for cryptography in home assistant core 2022.11.2 on rpi 3b+ 1G RAM

The Raspberry Pi 3 Model B+ is the final revision in the Raspberry Pi 3 range.

  • Broadcom BCM2837B0, Cortex-A53 (ARMv8) 64-bit SoC @ 1.4GHz
  • 1GB LPDDR2 SDRAM
  • 2.4GHz and 5GHz IEEE 802.11.b/g/n/ac wireless LAN, Bluetooth 4.2, BLE
  • Gigabit Ethernet over USB 2.0 (maximum throughput 300 Mbps)
  • Extended 40-pin GPIO header
  • Full-size HDMI®
  • 4 USB 2.0 ports
  • CSI camera port for connecting a Raspberry Pi camera
  • DSI display port for connecting a Raspberry Pi touchscreen display
  • 4-pole stereo output and composite video port
  • Micro SD port for loading your operating system and storing data
  • 5V/2.5A DC power input
  • Power-over-Ethernet (PoE) support (requires separate PoE HAT)
    source:Raspberry Pi 3 Model B+ Specification

Useful links:
https://community.home-assistant.io/t/error-failed-building-wheel-for-cryptography/352020/15

Manually upgrade the pyopenssl library in your venv.

(homeassistant) homeassistant@MYHOSTNAME:~$ pip3 install --upgrade pyOpenSSL



output

(homeassistant) homeassistant@MYHOSTNAME:~$ pip3 install --upgrade pyOpenSSL;
Requirement already satisfied: pyOpenSSL in ./lib/python3.9/site-packages (20.0.1)
Collecting pyOpenSSL
  Downloading pyOpenSSL-22.1.0-py3-none-any.whl (57 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.0/57.0 kB 1.1 MB/s eta 0:00:00
Requirement already satisfied: cryptography<39,>=38.0.0 in ./lib/python3.9/site-packages (from pyOpenSSL) (38.0.1)
Requirement already satisfied: cffi>=1.12 in ./lib/python3.9/site-packages (from cryptography<39,>=38.0.0->pyOpenSSL) (1.14.6)
Requirement already satisfied: pycparser in ./lib/python3.9/site-packages (from cffi>=1.12->cryptography<39,>=38.0.0->pyOpenSSL) (2.20)
Installing collected packages: pyOpenSSL
  Attempting uninstall: pyOpenSSL
    Found existing installation: pyOpenSSL 20.0.1
    Uninstalling pyOpenSSL-20.0.1:
      Successfully uninstalled pyOpenSSL-20.0.1
Successfully installed pyOpenSSL-22.1.0

I spent in google search results to find a lot of information for my first production HA installation.I’m having some issues trying to install HomeAssistant Core onto a Raspberry Pi 3B+.

1.Install HomeAssistant Core without venv.

2.Install HomeAssistant Core with venv.

3.Install Home Assistant Core using the docker containers

Getting HA running in Docker is as complicated as:

  1. Install Docker + Compose
  2. Create the compose file
  3. Run docker compose pull && docker compose up

Using add-ons with home assistant core

RPi 3 B+ - 32bit or 64bit?

Raspberry Pi OS

Raspberry Pi OS (32-bit) Compatible with all Raspberry Pi models
source:Raspberry Pi OS System: 32-bit

Raspberry Pi OS (64-bit)

Compatible with:

Does HA run faster on the Raspberry Pi 3B+ if i install the 64 Bit version? Are there any benefits compared to 32 Bit version?

I had problem with my rPi 3+ and the 64bit version, and I installed the 32bit again.
I think there was not enough RAM memory and the rPi was freezing.

64-bit OS takes more RAM by default

If you have a more memory-starved Raspberry Pi, like the Raspberry Pi Zero 2 W (512MB of RAM) or the 1GB Raspberry Pi 3 or 4, you might be better off using the 32-bit OS.
source:Raspberry Pi OS 64-Bit Vs 32-Bit

I tried both versions (32 and 64 bits) of Hassos in my rpi 3b+.
Unfortunately I2C does not work.
I’m having issues also with onvif camera; ffmpeg seems missing.

如何在没有SD卡读卡器的情况下安装Raspbian

way 1:You can use your phone as an sd card reader.
https://raspberrypi.stackexchange.com/questions/38107/how-to-install-raspbian-without-an-sd-card-reader/69436#69436

way 2:
Pi Card Imager - android app prepares SD cards without PC
https://forums.raspberrypi.com/viewtopic.php?t=170856

way 4:
Install a new system with network boot