google / google/cameratrapai

Error `Building wheels for collected packages: reverse_geocoder` on Apple Silicon MPS M1 chip

Open
#25 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
567
Forks
68
Avg merge
4h 39m
Merged PRs (30d)
5

Description

When following the installation steps, I encountered an error when trying to install `reverse_geocoder`. Not sure if this is specific for my device only, or more generic for M1 chips.

The error looks like this:

```
Building wheels for collected packages: reverse_geocoder
Building wheel for reverse_geocoder (setup.py) ... error
error: subprocess-exited-with-error
```

The solution was to first install `reverse_geocoder` with a PEP 517 installer, and then install `speciesnet`.
```
conda create -n speciesnet python=3.11 pip -y
conda activate speciesnet
pip install --use-pep517 reverse_geocoder
pip install speciesnet

```

No immediate action needed! Just wanted to share this in case others encounter the same problem.

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported installation in the Python 3.11 conda environment on Apple Silicon, first installing reverse_geocoder normally and then with --use-pep517. Compare the outcomes and document whether the workaround is generally required for M1 installations; done when the installation guidance or issue status reflects the confirmed behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.