Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Python: Command Not Found" in Ubuntu 20.04LTS During Node Preparation

See original GitHub issue

Problem Description

When initiating a pool with shipyard pool add, using the microsoft-azure-batch publisher 20-04-lts ubuntu image, the python executable is not available in the newly created node’s $PATH per Ubuntu’s new policy of handling the system python executable name and the 2-to-3 migration. Because references “python” as the executable name in a couple spots, the executable fails to be found, and the node preparation start task fails.

Batch Shipyard Version

shipyard, version 3.9.1

Steps to Reproduce

generate a pool with an ubuntu-server-container, microsoft-azure-batch, 20-04-lts image (shipyard pool add with a simple pool config for a single dedicated node)

Expected Results

Successful pool deploy

Actual Results

stderr.txt contains python:command not found (

Redacted Configuration


  id: mypool
      offer: ubuntu-server-container
      publisher: microsoft-azure-batch
      sku: 20-04-lts
    dedicated: 1
    low_priority: 0
  vm_size: STANDARD_A1_V2

Additional Logs

python:command not found (

Additional Comments

This can be worked around by specifying a system python symlink in the additional_node_prep > pre commands. Happy to submit a pull request with changes to that test and direct to the appropriate python executable name to run so that the additional_node_prep pre-commands are no longer needed. I can always, of course, just pick a different image as well!

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

alfparkcommented, Apr 21, 2021

Thanks for opening this issue. 20.04 isn’t supported yet, but will be in the next version.

ecocarlislecommented, Aug 20, 2022

If you enable unverified versions you can select the dvsm from Windows which is referenced in the Microsoft tutorials and the commands will work on startup.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python installed in ubuntu but python command not found
I have installed python 2.7 and python 3.7 in my ubuntu 18.04 but when i. type python it shows. Command 'python' not found,...
Read more >
-bash: python: command not found error and solution - nixCraft
-bash: python: command not found. This error means Python is either not installed or your installation damaged including wrong $PATH settings..
Read more >
How to Install Python 3 on Ubuntu 20.04{Step by Step}
In this article, I will take you through the steps to Install Python 3 on Ubuntu 20.04. Python is a very popular open...
Read more >
How to upgrade to Python 3.10 on Ubuntu 18.04 and 20.04 LTS
2021. Many ubuntu users are facing problems during upgrading python to the latest version. Python 3.9 is available as default when we install ......
Read more >
Ubuntu Server Documentation
The installer only supports one PReP partition at this time. ... a look at our Reference section when you need to determine what...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found