lmcinnes / lmcinnes/pynndescent
Crashing on Import
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 970
- Forks
- 107
- PR merge metrics
- No merged PRs in 30d
Description
I'm using pynndescent as a dependency in a project and it has begun crashing the python kernel without any error data when imported within a docker container. It works when imported into a native python shell.
Hardware: Apple M4 Pro
Python: 3.11
colima version 0.8.1
runtime: docker
arch: aarch64
client: v28.0.4
server: v27.4.0
I was able to duplicate this within a virgin docker container using docker run -it python:3.11 bash and installing pynndescent via pip, causes the following error Illegal instruction (core dumped). I tried to build the package, same issue. Not sure how to proceed.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with docker run -it python:3.11 bash, then install pynndescent with pip and attempt the import on the reported aarch64 Docker setup. Compare that result with a native Python shell and the source build attempt. Done means identifying the import-time cause of the illegal instruction and confirming that importing pynndescent no longer crashes the container.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- devops, machine-learning, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100