cffi version mismatch with HA 2026.7.x (Python 3.14)

Open
#305 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 11 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend

Research direction

The failure comes from the dependency chain meshcore → pycryptodome (Crypto.Cipher.AES) → cffi, so start with where this integration declares its Python requirements. Reproduce the import of Crypto.Cipher.AES on Python 3.14 to confirm the _cffi_backend version mismatch. Done means the integration loads on HA 2026.7.x with a pycryptodome or pycryptodomex pin that resolves the mismatch, verified by that import succeeding.

Written by the indexing model from the issue text.

Description

bug dependencies question

Environment

  • Home Assistant: 2026.7.1
  • MeshCore HA: v2.8.0
  • Python: 3.14

Problem

After updating to HA 2026.7.1 (which switched to Python 3.14),
the MeshCore integration fails to load with a cffi version mismatch:

Exception: Version mismatch: this is the 'cffi' package version 2.1.0,
located in '.../cffi/api.py'. When we import the top-level '_cffi_backend'
extension module, we get version 2.0.0, located in
'.../_cffi_backend.cpython-314-x86_64-linux-musl.so'.
The two versions should be equal.

Root cause

meshcore → pycryptodome (Crypto.Cipher.AES) → cffi
The compiled _cffi_backend.so is built for Python 3.13 (cffi 2.0.0),
but HA 2026.7.x ships cffi 2.1.0 for Python 3.14.

Possible fix

Update the pycryptodome dependency to a version compatible with
Python 3.14 / cffi 2.1.0, or replace it with pycryptodomex.

Dominant language
Python
Stars
269
Forks
58
Avg merge
10d 17h
Merged PRs (30d)
12

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from meshcore-dev/meshcore-ha

All issues in meshcore-dev/meshcore-ha

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.