Package Details: python-mbed-tools 7.57.0-1

Git Clone URL: https://aur.archlinux.org/python-mbed-tools.git (read-only, click to copy)
Package Base: python-mbed-tools
Description: Command line interface for Mbed OS
Upstream URL: https://os.mbed.com
Licenses: Apache
Provides: python-mbed-tools
Submitter: lorcap
Maintainer: None
Last Packager: lorcap
Votes: 0
Popularity: 0.000000
First Submitted: 2021-02-22 22:11 (UTC)
Last Updated: 2022-09-05 20:30 (UTC)

Latest Comments

lorcap commented on 2023-06-19 20:43 (UTC)

Unfortunately, I'm no longer interested in maintaining this package. Would you like to adopt it?

phansel commented on 2023-06-09 18:20 (UTC)

Appears to not create or populate the folder /usr/lib/python3.11/site-packages/mbed_tools/targets/_internal/data. This folder should contain targets_metadata.json. Without it, mbed_tools configure -t GCC_ARM -m <TARGET> fails even on demo boards, e.g. NUCLEOxyz, with

ERROR: [Errno 2] No such file or directory: '/usr/lib/python3.11/site-packages/mbed_tools/targets/_internal/data/targets_metadata.json'

lorcap commented on 2022-09-05 20:32 (UTC)

I've just pushed version 7.57. Could you please provide the command line you used?

BioBox commented on 2022-09-05 00:59 (UTC)

This package is not only out of date, but doesn't install correctly. Trying to create a new project gives the following:

Creating a new Mbed program at path '/home/daniel/docs/school/22f/embed/labs/os'.
Downloading mbed-os and adding it to the project.
Traceback (most recent call last):
  File "/usr/bin/mbedtools", line 33, in <module>
    sys.exit(load_entry_point('mbed-tools==0.0.0', 'console_scripts', 'mbedtools')())
  File "/usr/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.10/site-packages/mbed_tools/cli/main.py", line 38, in invoke
    super().invoke(context)
  File "/usr/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/mbed_tools/cli/project_management.py", line 30, in new
    initialise_project(pathlib.Path(path), create_only)
  File "/usr/lib/python3.10/site-packages/mbed_tools/project/project.py", line 49, in initialise_project
    program = MbedProgram.from_new(path)
  File "/usr/lib/python3.10/site-packages/mbed_tools/project/mbed_program.py", line 63, in from_new
    program_files = MbedProgramFiles.from_new(dir_path)
  File "/usr/lib/python3.10/site-packages/mbed_tools/project/_internal/project_data.py", line 87, in from_new
    render_cmakelists_template(cmakelists_file, root_path.stem)
  File "/usr/lib/python3.10/site-packages/mbed_tools/project/_internal/render_templates.py", line 23, in render_cmakelists_template
    render_jinja_template(
  File "/usr/lib/python3.10/site-packages/mbed_tools/project/_internal/render_templates.py", line 55, in render_jinja_template
    template = env.get_template(template_name)
  File "/usr/lib/python3.10/site-packages/jinja2/environment.py", line 1010, in get_template
    return self._load_template(name, globals)
  File "/usr/lib/python3.10/site-packages/jinja2/environment.py", line 969, in _load_template
    template = self.loader.load(self, name, self.make_globals(globals))
  File "/usr/lib/python3.10/site-packages/jinja2/loaders.py", line 126, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/usr/lib/python3.10/site-packages/jinja2/loaders.py", line 344, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: CMakeLists.tmpl