Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Updated documentation with solution to tf error #21

Merged
merged 1 commit into from
Nov 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions mnist-keras/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,26 @@ python init_model.py
docker-compose -f docker-compose.yaml -f private-network.yaml down
```

## Troubleshooting

### Tensorflow error when building docker image

The error message
```bash
ERROR: No matching distribution found for tensorflow>=2.3.2
```
could be caused by your device having a processor with arm architecture.
This will make Docker download images compiled for aarch64 platform (if another platform is not specified),
and unfortunately Tensorflow doesn't support the aarch64 platform.
So a solution is to simply specify another platform that works with Tensorflow.
This can be done by changing to e.g. python:3.8.9-bullseye in the Dockerfile, as below.
```bash
FROM python:3.8.9-bullseye
COPY requirements.txt /app/
WORKDIR /app
RUN pip install -r requirements.txt
RUN pip install -e git://github.com/scaleoutsystems/fedn.git@develop#egg=fedn\&subdirectory=fedn ```
```

## License
Apache-2.0 (see LICENSE file for full information).
Expand Down