Git Product home page Git Product logo

Comments (2)

girishbiw avatar girishbiw commented on August 24, 2024

chaos, version 1.15.1

This is the error I got when I entered
chaos report --help

Traceback (most recent call last):
File "/home/ubuntu/.venvs/chaostk/bin/chaos", line 8, in
sys.exit(cli())
File "/home/ubuntu/.venvs/chaostk/lib/python3.10/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/home/ubuntu/.venvs/chaostk/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/ubuntu/.venvs/chaostk/lib/python3.10/site-packages/click/core.py", line 1685, in invoke
super().invoke(ctx)
File "/home/ubuntu/.venvs/chaostk/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/ubuntu/.venvs/chaostk/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/ubuntu/.venvs/chaostk/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/ubuntu/.venvs/chaostk/lib/python3.10/site-packages/chaostoolkit/cli.py", line 103, in cli
configure_logger(
File "/home/ubuntu/.venvs/chaostk/lib/python3.10/site-packages/chaostoolkit/logging.py", line 82, in configure_logger
logzero.logfile(
File "/home/ubuntu/.venvs/chaostk/lib/python3.10/site-packages/logzero/init.py", line 440, in logfile
rotating_filehandler = RotatingFileHandler(filename, mode=mode, maxBytes=maxBytes, backupCount=backupCount, encoding=encoding)
File "/usr/lib/python3.10/logging/handlers.py", line 155, in init
BaseRotatingHandler.init(self, filename, mode, encoding=encoding,
File "/usr/lib/python3.10/logging/handlers.py", line 58, in init
logging.FileHandler.init(self, filename, mode=mode,
File "/usr/lib/python3.10/logging/init.py", line 1169, in init
StreamHandler.init(self, self._open())
File "/usr/lib/python3.10/logging/init.py", line 1201, in _open
return open_func(self.baseFilename, self.mode,
PermissionError: [Errno 13] Permission denied: '/chaostoolkit-documentation-code/tutorials/a-simple-walkthrough/chaostoolkit.log'
(chaostk) ubuntu@ip-172-31-40-39:/chaostoolkit-documentation-code/tutorials/a-simple-walkthrough$ chaos report --export-format=pdf journal.json report.pdf
Traceback (most recent call last):
File "/home/ubuntu/.venvs/chaostk/bin/chaos", line 8, in
sys.exit(cli())
File "/home/ubuntu/.venvs/chaostk/lib/python3.10/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/home/ubuntu/.venvs/chaostk/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/ubuntu/.venvs/chaostk/lib/python3.10/site-packages/click/core.py", line 1685, in invoke
super().invoke(ctx)
File "/home/ubuntu/.venvs/chaostk/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/ubuntu/.venvs/chaostk/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/ubuntu/.venvs/chaostk/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/ubuntu/.venvs/chaostk/lib/python3.10/site-packages/chaostoolkit/cli.py", line 103, in cli
configure_logger(
File "/home/ubuntu/.venvs/chaostk/lib/python3.10/site-packages/chaostoolkit/logging.py", line 82, in configure_logger
logzero.logfile(
File "/home/ubuntu/.venvs/chaostk/lib/python3.10/site-packages/logzero/init.py", line 440, in logfile
rotating_filehandler = RotatingFileHandler(filename, mode=mode, maxBytes=maxBytes, backupCount=backupCount, encoding=encoding)
File "/usr/lib/python3.10/logging/handlers.py", line 155, in init
BaseRotatingHandler.init(self, filename, mode, encoding=encoding,
File "/usr/lib/python3.10/logging/handlers.py", line 58, in init
logging.FileHandler.init(self, filename, mode=mode,
File "/usr/lib/python3.10/logging/init.py", line 1169, in init
StreamHandler.init(self, self._open())
File "/usr/lib/python3.10/logging/init.py", line 1201, in _open
return open_func(self.baseFilename, self.mode,
PermissionError: [Errno 13] Permission denied: '/chaostoolkit-documentation-code/tutorials/a-simple-walkthrough/chaostoolkit.log'

from chaostoolkit-reporting.

cdsre avatar cdsre commented on August 24, 2024

How have you installed the reporting extension and have you set up the underlying required libraries which python cannot pull in? These are documented as additional install steps.

There somethings pip just cannot pull in and install for you. These are requirements that may use other technologies, languages or packaging solutions. In this case you need to install cairo and pandoc your self locally for ctk-reporting to work as it cant install these for you.

Alternatively and my preferred approach is to just run this through docker as the docker image has all the required binaries and packages installed for you. check out the using a docker image section.

from chaostoolkit-reporting.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.