Skip to content

Dockerfile missing librsvg2-bin dependency #4

@srwareham

Description

@srwareham

I tried running the following

git clone --recurse-submodules https://github.com/coredevices/pebbleos
cd pebbleos
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
./waf configure --board obelix_pvt
./waf build

And at the last step got the following error

[ 615/1997] Compiling resources/normal/base/images/Pebble_50x50_Car_rental.svg
Waf: Leaving directory `/hostmount/pebbleos/build'
Build failed
Traceback (most recent call last):
  File "/hostmount/pebbleos/.waf3-2.1.4-72787ce48f227ac42c4b0da24e780694/waflib/Task.py", line 179, in process
    ret=self.run()
        ^^^^^^^^^^
  File "/hostmount/pebbleos/tools/resources/waftools/generate_resource_ball.py", line 15, in run
    reso = resource_generator.generate_object(self, self.definition)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/hostmount/pebbleos/tools/resources/resource_map/resource_generator.py", line 97, in generate_object
    return cls.generate_object(task, definition)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/hostmount/pebbleos/tools/resources/resource_map/resource_generator_pbi.py", line 56, in generate_object
    return _pbi_generator(task, definition, "bw")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/hostmount/pebbleos/tools/resources/resource_map/resource_generator_pbi.py", line 26, in _pbi_generator
    subprocess.check_call(
  File "/usr/lib/python3.12/subprocess.py", line 408, in check_call
    retcode = call(*popenargs, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 389, in call
    with Popen(*popenargs, **kwargs) as p:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.12/subprocess.py", line 1955, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'rsvg-convert'

Traceback (most recent call last):
  File "/hostmount/pebbleos/.waf3-2.1.4-72787ce48f227ac42c4b0da24e780694/waflib/Task.py", line 179, in process
    ret=self.run()
        ^^^^^^^^^^
  File "/hostmount/pebbleos/tools/resources/waftools/generate_resource_ball.py", line 15, in run
    reso = resource_generator.generate_object(self, self.definition)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/hostmount/pebbleos/tools/resources/resource_map/resource_generator.py", line 97, in generate_object
    return cls.generate_object(task, definition)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/hostmount/pebbleos/tools/resources/resource_map/resource_generator_pbi.py", line 56, in generate_object
    return _pbi_generator(task, definition, "bw")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/hostmount/pebbleos/tools/resources/resource_map/resource_generator_pbi.py", line 26, in _pbi_generator
    subprocess.check_call(
  File "/usr/lib/python3.12/subprocess.py", line 408, in check_call
    retcode = call(*popenargs, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 389, in call
    with Popen(*popenargs, **kwargs) as p:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.12/subprocess.py", line 1955, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'rsvg-convert'

Installing librsvg2-bin resolved the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions