Skip to content

nice!nano fails on upload #3

Closed
Closed

Description

@AnthonyKNorman

Hi
I'm using a nice!nano clone

UF2 Bootloader 0.6.0 lib/nrfx (v2.0.0) lib/tinyusb (0.10.1-41-gdf0cda2d) lib/uf2 (remotes/origin/configupdate-9-gadbb8c7)
Model: nice!nano
Board-ID: nRF52840-nicenano
SoftDevice: S140 version 6.1.1
Date: Jun 19 2021

On upload I get


  nRF52 Flash Console - Target: nicenano_v2

  NIUS  ......................    0%  Connecting
  NIUS  ======>...............   32%  Connecting
  NIUS  ==============>.......   68%  Uploading
----------------------------------------------------------------
[nius][fail] generic
 reason: Python 3 was not found. UF2 upload mode needs Python for build_uf2.py - install Python 3, set NIUS_UF2_PYTHON_EXE, set NIUS_UF2_VENV, or set NIUS_UF2_CONDA_ENV.
 hints:
  - Inspect the short trace below for the last useful tool message.
 trace:
  > Python 3 was not found. UF2 upload mode needs Python for build_uf2.py - install Python 3, set NIUS_UF2_PYTHON_EXE, set NIUS_UF2_VENV, or set NIUS_UF2_CONDA_ENV.
----------------------------------------------------------------
Failed uploading: uploading error: exit status 1

If I open a command window and type "Python" then Python runs up fine.
I dont understand
set NIUS_UF2_PYTHON_EXE, set NIUS_UF2_VENV, or set NIUS_UF2_CONDA_ENV

Can you help?
Thanks

Activity

  1. dunknowcoding commented on Jul 28, 2026

    @dunknowcoding
    Owner

    Thanks for reporting this — it was an ArduinoNRF uploader bug.

    The Windows wrapper rejected every Python launcher whose path contained WindowsApps, even when that launcher successfully ran Python 3. The fix now validates candidates by executing them, supports Windows App Execution Aliases, py -3, standard per-user installs, and Conda, and ignores invalid overrides before trying the remaining candidates.

    Verified with:

    • PowerShell syntax parsing
    • normal Python 3 discovery
    • a working launcher under a WindowsApps path
    • fallback from an invalid explicit Python path
    • end-to-end Intel HEX to UF2 conversion

    Fixed on main in 8d5eaa1. If Arduino IDE was already open when Python was installed, restart it once so it inherits the updated environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions