Skip to content

Troubleshooting

rexionmars edited this page Aug 1, 2026 · 1 revision

Troubleshooting

Sidecar / Python

“Python not found” or boot never becomes ready

  • Install Python 3.12 and pip install -r requirements.txt.
  • Set GEOSENSE_PYTHON to the absolute path of that interpreter.
  • Confirm: "$GEOSENSE_PYTHON" -c "import rasterio, sklearn, pystac_client; print('ok')".

InconsistentVersionWarning or joblib load errors

Artifacts in model/ expect scikit-learn 1.8.x. Reinstall with the pin in requirements.txt :

pip install 'scikit-learn>=1.8,<1.9'

Import errors for Prithvi / Temporal Transformer

  • Spectral RF does not need torch.
  • Prithvi: pip install -r requirements-prithvi.txt and wait for the Hugging Face backbone download (~1.2 GB) on first use.
  • Temporal Transformer needs torch and model/tt_mapbiomas.pt present.

Imagery / STAC

Zero scenes in the data cube or Classify fails with no products

  • Widen the date range or raise max cloud cover.
  • Disable monthly-best temporarily to see all candidates.
  • Confirm the AOI intersects Sentinel-2 L2A coverage for that period.
  • Check network access to Planetary Computer (corporate proxies can block STAC).

Classification is very slow

  • Shrink the AOI.
  • Prefer spectral RF for interactive work; use Prithvi patch mode rather than pixel on large areas.
  • Prefer monthly-best so the stack stays near one scene per month.

MapBiomas / LULC

No reference layer for a custom AOI

  • MapBiomas COG fetch is intended for AOIs inside Brazil.
  • Embedded areas A/B/C may also look for local TIFFs under a sibling global/data/mapbiomas/ tree (GEOSENSE_ROOT); without those files, COG fetch is used when possible.
  • Classification still works without a reference overlay.

Desktop / OS

macOS: app won’t open (Gatekeeper)

Right-click → Open the first time, or clear quarantine on the unzipped app if you trust the release build.

Wrong model directory or missing sidecar/infer.py

Set GEOSENSE_APP_DIR to the directory that contains sidecar/, areas/, and model/ (the repo root when developing from source).

Saved analyses missing after reinstall

Runs live under the OS user config directory for geosense-infer (legacy name), not inside the .app bundle. Clearing Application Support removes history.

Still stuck?

Open an issue at https://github.com/rexionmars/TERRA/issues with OS, TERRA version/commit, Python version, and the full error text from the UI or terminal.

Clone this wiki locally