Install Python

Beginning with firmware release 21.11.x, python is no longer included as part of the base firmware for the EX15 device. To install Python, you must first upgrade your device's firmware to release 22.5.50.62 or greater. Python is also available as part of the base firmware firmware with release 21.8.x and earlier.

There are two options for installing Python on your EX15 device running 22.5.50.62 or greater:

Option 1: Enable Python via Digi Remote Manager

As part of creating or updating a configuration profile for EX15 devices, you can enable the Python add-on at the automation tab for the configuration:

  1. In Remote Manager, create a new configuration or edit an existing configuration for the EX15 device type.

  2. At the Automation tab, under Add-ons, click to enable Python.

If the configuration is enabled and Remediate is selected, Remote Manager will install and enable Python on all EX15 devices to which the configuration applies.

Option 2: Install Python via the local device

  1. On your PC, download the Python live image for the EX15 or EX15W to your local filesystem.

    To download the Python live image for firm version 24.9:

  2. Rename the downloaded file to python_live_image.sqfs. The filename must exactly match this in order for the Digi device to load the python live image properly.
  3. Create a /opt/lib/live_images directory on the local device:
    1. Log into the EX15 local command line as a user with full Admin access rights.

      Depending on your device configuration, you may be presented with an Access selection menu. Type admin to access the Admin CLI.

    2. Create the directory:

      > mkdir /opt/lib/live_images
  4. Upload the python_live_image.sqfs file to the /opt/lib/live_images directory:

    • From the Web UI:

        Log into the EX15 WebUI as a user with full Admin access rights.

      1. Select System > File System.
      2. Highlight the opt directory and click to move into that directory.
      3. Highlight the lib directory and click to move into that directory.
      4. Highlight the live_images directory and click to move into that directory.
      5. Click (upload).
      6. Browse to the location of the python_live_image.sqfs file on your local machine. Select the file and click Open to upload the file.
    • From the Admin CLI:
      1. Log into the EX15 local command line.
      2. Use the scp command to upload the file:
        scp host remote_host user username remote remote-path local /opt/lib/live_images/ to local

        where:

        • remote_host is the hostname or IP address of the remote host where the python_live_image.sqfs file was downloaded.
        • username is the name of the user on the remote host.
        • remote-path is the path and filename of the python_live_image.sqfs file on the remote host.