duckdb / duckdb/duckdb-python

Illegal instruction when using duckdb in docker sandboxes

Aperta
#410 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
needs triage
Lingua principale
Python
Stelle
186
Fork
113
Merge medio
13h 29m
PR unite (30g)
17

Descrizione

### What happens?

When trying to use the `duckdb` python client inside a [docker sandbox](https://docs.docker.com/ai/sandboxes/), I'm encountering an `Illegal instruction` error:

```
>>> import duckdb
Illegal instruction
```

As I understand, the docker sandbox is basically a microVM. The host OS is macOS.

### To Reproduce

Follow [docker sandbox instructions](https://docs.docker.com/ai/sandboxes/get-started/) to create a sandbox, and open a shell inside it:

```
docker sandbox exec -it codex-jzn bash
```

(`codex-jzn` is simply the sandbox name)

Inside the sandbox, create a virtual env and install duckdb:

```
agent@codex-jzn:~$ uv venv && source .venv/bin/activate
Using CPython 3.12.12
(agent) agent@codex-jzn:~$ uv pip install duckdb
Resolved 1 package in 486ms
Prepared 1 package in 527ms
Installed 1 package in 227ms
+ duckdb==1.5.1
```

Then, trying to import `duckdb` will fail:

```
(agent) agent@codex-jzn:~$ python
Python 3.12.12 (main, Jan 14 2026, 19:35:10) [Clang 21.1.4 ] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import duckdb
Illegal instruction
```

Note: I also tried different versions of `duckdb`, same issue.

### OS:

microVM: 6.12.67-linuxkit, aarch64 / host OS: macOS Version 26.3.1, arm64

### DuckDB Package Version:

1.5.1

### Python Version:

3.12

### Full Name:

Alexandre Thomas

### Affiliation:

/

### What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.

I have tested with a stable release

### Did you include all relevant data sets for reproducing the issue?

Not applicable - the reproduction does not require a data set

### Did you include all code required to reproduce the issue?

- [x] Yes, I have

### Did you include all relevant configuration to reproduce the issue?

- [x] Yes, I have

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Riproduci il problema seguendo la configurazione collegata del sandbox Docker, quindi crea l’ambiente virtuale Python 3.12 e installa duckdb 1.5.1 come mostrato. Inizia dal punto di ingresso `import duckdb` e confronta le versioni stabili del pacchetto riportate; il lavoro è completato quando hai identificato la causa di compatibilità e verificato che l’importazione del pacchetto non provochi più Illegal instruction nella microVM aarch64 indicata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
databases
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.