Error when trying to run "mlauch --single" in Lab: Analyse Profiler Data

C:\Users\my_user\m312-vagrant-env>vagrant up
Bringing machine ‘m312’ up with ‘virtualbox’ provider…
==> m312: Importing base box ‘ubuntu/trusty64’…
==> m312: Matching MAC address for NAT networking…
==> m312: Setting the name of the VM: m312
==> m312: Clearing any previously set forwarded ports…
==> m312: Clearing any previously set network interfaces…
==> m312: Preparing network interfaces based on configuration…
m312: Adapter 1: nat
m312: Adapter 2: hostonly
==> m312: Forwarding ports…
m312: 30000 (guest) => 30000 (host) (adapter 1)
m312: 30001 (guest) => 30001 (host) (adapter 1)
m312: 30002 (guest) => 30002 (host) (adapter 1)
m312: 22 (guest) => 2222 (host) (adapter 1)
==> m312: Running ‘pre-boot’ VM customizations…
==> m312: Booting VM…
==> m312: Waiting for machine to boot. This may take a few minutes…
m312: SSH address:
m312: SSH username: vagrant
m312: SSH auth method: private key
m312: Warning: Connection aborted. Retrying…
m312: Warning: Connection reset. Retrying…
Output removed to avoid exceeding 32000 character limit. Everything seems normal until you get to the below.
m312: Successfully installed psutil
m312: Cleaning up…
m312: + sudo pip install mtools
m312: Downloading/unpacking mtools
m312: Running (path:/tmp/pip_build_root/mtools/ egg_info for package mtools
m312: Requirement already satisfied (use --upgrade to upgrade): six in /usr/local/lib/python2.7/dist-packages (from mtools)
m312: Requirement already satisfied (use --upgrade to upgrade): python-dateutil>=2.7 in /usr/local/lib/python2.7/dist-packages (from mtools)
m312: Installing collected packages: mtools
m312: Running install for mtools
m312: File “/usr/local/lib/python2.7/dist-packages/mtools/mlaunch/”, line 1541
m312: result.append(f’"{arg}"’)
m312: ^
m312: SyntaxError: invalid syntax
m312: Installing mgenerate script to /usr/local/bin
m312: Installing mlogfilter script to /usr/local/bin
m312: Installing mplotqueries script to /usr/local/bin
m312: Installing mloginfo script to /usr/local/bin
m312: Installing mlogvis script to /usr/local/bin
m312: Installing mlaunch script to /usr/local/bin
m312: Successfully installed mtools
m312: Cleaning up…
m312: + echo DONE
m312: DONE

C:\Users\my_user\m312-vagrant-env>vagrant ssh
Welcome to Ubuntu 14.04.6 LTS (GNU/Linux 3.13.0-170-generic x86_64)

System information as of Fri Dec 27 23:26:45 UTC 2019

System load: 0.83 Processes: 99
Usage of /: 3.7% of 39.34GB Users logged in: 0
Memory usage: 4% IP address for eth0:
Swap usage: 0%

Graph this data and manage this system at:

UA Infrastructure Extended Security Maintenance (ESM) is not enabled.

0 updates can be installed immediately.
0 of these updates are security updates.

Enable UA Infrastructure ESM to receive 64 additional security updates.
See or run: sudo ua status

New release ‘16.04.6 LTS’ available.
Run ‘do-release-upgrade’ to upgrade to it.

vagrant@m312:~$ mlaunch --single

Traceback (most recent call last):

File “/usr/local/bin/mlaunch”, line 9, in
load_entry_point(‘mtools==1.6.0’, ‘console_scripts’, ‘mlaunch’)()

File “/usr/lib/python2.7/dist-packages/”, line 351, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)

File “/usr/lib/python2.7/dist-packages/”, line 2363, in load_entry_point
return ep.load()

File “/usr/lib/python2.7/dist-packages/”, line 2088, in load
entry = import(self.module_name, globals(),globals(), [‘name’])

File “/usr/local/lib/python2.7/dist-packages/mtools/mlaunch/”, line 1541
SyntaxError: invalid syntax

Hi @Magnus_58085,

According to the release notes for mtools’ latest version 1.6.0 (released a few days ago), it no longer supports python 2.7 which is what the VM is provisioned with. You need to point mtools to specifically install 1.5.3 (the version prior to the latest one).

Follow these steps to resolve this issue:

  1. Open the provision-m312 file and edit the file like below (remember to Save):
  2. Run the following commands to complete the install:
    vagrant destroy
    – type y to accept and hit Enter
    vagrant up
  3. Log back into the box and test mlaunch again:
    vagrant ssh
    mlaunch --version

You’re good to go from here on.

@Sonali_Mamgain please inform your colleagues.


Hey 007_jb thanks for sharing this info, I was scratching my head this weekend because I had 2 different machines giving me the same error when I know it was already working on 1 of my machines from before. I set mtools to 1.5.3 per your suggestion and everything is working now. Thanks!

Very good @Jacob_35779 :slightly_smiling_face::+1:
Yet to receive a response from the OP.