CARVIEW |
Select Language
HTTP/2 200
date: Fri, 10 Oct 2025 11:36:16 GMT
server: Fly/6f91d33b9d (2025-10-08)
content-type: text/html; charset=utf-8
content-encoding: gzip
via: 2 fly.io, 2 fly.io
fly-request-id: 01K76YGK1DP4AQGGK5YC77MPMJ-bom
Testing things in Fedora using Docker | Simon Willison’s TILs
Testing things in Fedora using Docker
I got a report of a bug with my s3-ocr tool running on Fedora.
I attempted to replicate the bug in a Fedora container using Docker, by running this command:
docker run -it fedora:latest /bin/bash
This downloaded the official image and dropped me into a Bash shell.
It turns out Fedora won't let you run pip install
with its default Python 3 without first creating a virtual environment:
[root@d1146e0061d1 /]# python3 -m pip install s3-ocr
/usr/bin/python3: No module named pip
[root@d1146e0061d1 /]# python3 -m venv project_venv
[root@d1146e0061d1 /]# source project_venv/bin/activate
(project_venv) [root@d1146e0061d1 /]# python -m pip install s3-ocr
Collecting s3-ocr
Downloading s3_ocr-0.5-py3-none-any.whl (14 kB)
Collecting sqlite-utils
...
Having done that I could test out my s3-ocr
command like so:
(project_venv) [root@d1146e0061d1 /]# s3-ocr start --help
Usage: s3-ocr start [OPTIONS] BUCKET [KEYS]...
Start OCR tasks for PDF files in an S3 bucket
s3-ocr start name-of-bucket path/to/one.pdf path/to/two.pdf
...
Related
- docker Run pytest against a specific Python version using Docker - 2022-09-05
- docker Emulating a big-endian s390x with QEMU - 2022-07-29
- docker Using pipenv and Docker - 2022-11-28
- python Quickly testing code in a different Python version using pyenv - 2023-07-10
- macos Running Docker on an M1 Mac - 2021-05-25
- mastodon Building Mastodon bots with GitHub Actions and toot - 2023-02-02
- python A few notes on Rye - 2023-04-26
- aws Running OCR against a PDF file with AWS Textract - 2022-06-28
- python macOS Catalina sort-of includes Python 3 - 2020-04-21
- github-actions Talking to a PostgreSQL service container from inside a Docker container - 2020-09-18
Created 2022-07-27T15:41:43-07:00 · Edit