FAQ¶

This page collects answers to commonly asked questions about Federated Learning with Flower.

How can I run Federated Learning on a Raspberry Pi?
Does Flower support federated learning on Android devices?

Yes, it does. Please take a look at our blog post or check out the code examples:

Can I combine federated learning with blockchain?

Yes, of course. A list of available examples using Flower within a blockchain environment is available here:

I see unexpected terminal output (e.g.: � □[32m□[1m) on Windows. How do I fix this?

If you see output (ANSI escape sequences or broken emojis) like this:

  • � â–¡[32mâ–¡[1m

  • â–¡[0mâ–¡[96mâ–¡[1m

  • �

this is usually a terminal host issue. Make sure you have installed the latest Windows Terminal application (Microsoft’s terminal app), and then run Flower commands there.

To quickly check whether your current PowerShell session is running in Windows Terminal:

echo $env:WT_SESSION

If this prints a value (for example, b4c5f2c8-...), you are in Windows Terminal. If it prints nothing, you are likely running in a non-Windows-Terminal host (for example, conhost), which can show raw ANSI escape codes or incorrect emoji rendering.

I got SQL database errors (like Exception calling application: database is locked) when running local simulations. What should I do?

To avoid these issues, stop the background local SuperLink and switch the local connection to the in-memory mode in your Flower configuration:

[superlink.local]
address = ":local-in-memory:"

After that, start your local simulation again with flwr run. Flower will launch the managed local SuperLink with an in-memory database instead of an on-disk SQLite database, which avoids filesystem locking issues. See Flower Configuration for details.

The tradeoff is that this mode is not persistent. When the managed local SuperLink stops, it loses its state, including run history and stored logs for previous runs. If you need persistence, prefer keeping $FLWR_HOME on a local disk instead of a network drive.