Skip to content

Failing if tag (the branch) is a number #62

@torydebra

Description

@torydebra

It is probably interpreted as a float somewhere

e.g.

clone:
  type: git
  server: github.com
  repository: advrhumanoids/opensot_visual_servoing.git
  tag: 20.04
  
build:
  type: cmake
  args_if:
    ubuntu_release >= 20.04: 
      - -DPYBIND11_PYTHON_VERSION=3
      - -DPYTHON_EXECUTABLE=$(readlink -f $(which python3))
      - -DPYTHON_VERSION=3
    ubuntu_release < 20.04: 
      - -DPYBIND11_PYTHON_VERSION=2
      - -DPYTHON_EXECUTABLE=$(readlink -f $(which python2))
      - -DPYTHON_VERSION=2
      
depends:
  - cartesian_interface

gives:

haria@ThinkStationP3:~/ws$ forest grow opensot_visual_servoing
building opensot_visual_servoing with 1 parallel job
Traceback (most recent call last):
  File "/usr/local/bin/forest", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/forest/main.py", line 28, in main
    if not do_main():
  File "/usr/local/lib/python3.8/dist-packages/forest/main.py", line 229, in do_main
    success = install_package(pkg=args.recipe,
  File "/usr/local/lib/python3.8/dist-packages/forest/common/print_utils.py", line 21, in wrapper
    ret = fn(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/forest/common/install.py", line 56, in install_package
    pkg = package.Package.from_name(name=pkg)
  File "/usr/local/lib/python3.8/dist-packages/forest/common/package.py", line 102, in from_name
    return Package.from_file(file=filename)
  File "/usr/local/lib/python3.8/dist-packages/forest/common/package.py", line 85, in from_file
    return Package.from_yaml(name=name, recipe=yaml_dict)
  File "/usr/local/lib/python3.8/dist-packages/forest/common/package.py", line 67, in from_yaml
    pkg.fetcher = FetchHandler.from_yaml(pkgname=name, data=recipe['clone'], recipe=recipe)
  File "/usr/local/lib/python3.8/dist-packages/forest/common/fetch_handler.py", line 104, in from_yaml
    ret = GitFetcher.from_yaml(pkgname=pkgname, data=data)
  File "/usr/local/lib/python3.8/dist-packages/forest/common/fetch_handler.py", line 189, in from_yaml
    tag = eh.process_string(tag)
  File "/usr/local/lib/python3.8/dist-packages/forest/common/eval_handler.py", line 151, in process_string
    is_expression = len(text) >= 3 and text[0:2] == '${' and text[-1] == '}'
TypeError: object of type 'float' has no len()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions