chaostoolkit / chaostoolkit-reporting

Reporting plugin for chaostoolkit journal results
Apache License 2.0
10 stars 11 forks source link

Crash when trying to generate a report #19

Closed joaoasrosa closed 5 years ago

joaoasrosa commented 5 years ago

Issue When I try to run chaos report I got the following error:

Warning: entry point could not be loaded. Contact its author for help.

Traceback (most recent call last):
  File "/Users/joaorosa/.venvs/chaostk/lib/python3.7/site-packages/click_plugins/core.py", line 37, in decorator
    group.add_command(entry_point.load())
  File "/Users/joaorosa/.venvs/chaostk/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2411, in load
    return self.resolve()
  File "/Users/joaorosa/.venvs/chaostk/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2417, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/Users/joaorosa/.venvs/chaostk/lib/python3.7/site-packages/chaosreport/__init__.py", line 16, in <module>
    import cairosvg
  File "/Users/joaorosa/.venvs/chaostk/lib/python3.7/site-packages/cairosvg/__init__.py", line 42, in <module>
    from . import surface  # noqa isort:skip
  File "/Users/joaorosa/.venvs/chaostk/lib/python3.7/site-packages/cairosvg/surface.py", line 25, in <module>
    import cairocffi as cairo
  File "/Users/joaorosa/.venvs/chaostk/lib/python3.7/site-packages/cairocffi/__init__.py", line 50, in <module>
    ('libcairo.so', 'libcairo.2.dylib', 'libcairo-2.dll'))
  File "/Users/joaorosa/.venvs/chaostk/lib/python3.7/site-packages/cairocffi/__init__.py", line 45, in dlopen
    raise OSError(error_message)  # pragma: no cover
OSError: no library called "cairo" was found
no library called "libcairo-2" was found
cannot load library 'libcairo.so': dlopen(libcairo.so, 2): image not found
cannot load library 'libcairo.2.dylib': dlopen(libcairo.2.dylib, 2): image not found
cannot load library 'libcairo-2.dll': dlopen(libcairo-2.dll, 2): image not found

Environment

Lawouach commented 5 years ago

Hi!

Reporting carries a lot of system dependencies unfortunately (damn pdf!), hence its plugin nature.

May I ask if you installed all the required dependencies?

joaoasrosa commented 5 years ago

This is a RTFM case. Shame on me. Closing the issue.

girishbiw commented 1 year ago

I am still getting the same error. How can this be fixed?

Lawouach commented 1 year ago

Can you confirm you installed the cairo libraries?