Skip to content

pretty table need to be added to mbed-cli requirements.txt #301

@BlackstoneEngineering

Description

@BlackstoneEngineering

Problem

On a clean machine I installed mercurial, python and gcc.

Then I installed mbed-cli
pip install mbed-cli

Next I imported a program
mbed import https://developer.mbed.org/teams/mbed/code/mbed_blinky/

followed by
mbed deploy

Next I setup my toolchain and target
mbed config toolchain GCC_ARM and mbed config target K64F

Finally I went to compile the program with mbed compile, and which point the compile promptly terminated because I didnt have prettytable installed.

See output here

C:\Users\ARM\mbed_blinky>mbed compile
Traceback (most recent call last):
  File "C:\Users\ARM\mbed_blinky\.temp\tools\make.py", line 43, in <module>
    from tools.options import get_default_options_parser
  File "C:\Users\ARM\mbed_blinky\.temp\tools\options.py", line 18, in <module>
    from tools.toolchains import TOOLCHAINS
  File "C:\Users\ARM\mbed_blinky\.temp\tools\toolchains\__init__.py", line 34, i
n <module>
    from tools.memap import MemapParser
  File "C:\Users\ARM\mbed_blinky\.temp\tools\memap.py", line 14, in <module>
    from prettytable import PrettyTable
ImportError: No module named prettytable
[mbed] ERROR: "python" returned error code 1.
[mbed] ERROR: Command "python -u C:\Users\ARM\mbed_blinky\.temp\tools\make.py -t
 GCC_ARM -m K64F --source . --build .\.build\K64F\GCC_ARM" in "C:\Users\ARM\mbed
_blinky"

---

Solution

Either add pretty table to the requirements for mbed-cli, or do some magic when importing the mbed 2.0 programs and associated tools. I dont care, i just want the damn thing to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions