Updates for READE is needed.

Bug #1491059 reported by Michael Xin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Anchor
Fix Released
Medium
Doug Chivers

Bug Description

It seems that README page is a little bit outdated. Here are two issues that I ran into trying to follow the instructions step by step.

1) For installation, it is needed to add this line to install all required packages:

pip install -r requirements.txt

Otherwise, I was met with various errors such as:
pecan serve config.py
Traceback (most recent call last):
  File "/Users/jian5397/work/anchor/bin/pecan", line 11, in <module>
    sys.exit(CommandRunner.handle_command_line())
  File "/Users/jian5397/work/anchor/lib/python2.7/site-packages/pecan/commands/base.py", line 96, in handle_command_line
    runner.run(sys.argv[1:])
  File "/Users/jian5397/work/anchor/lib/python2.7/site-packages/pecan/commands/base.py", line 91, in run
    self.commands[ns.command_name]().run(ns)
  File "/Users/jian5397/work/anchor/lib/python2.7/site-packages/pecan/commands/serve.py", line 38, in run
    app = self.load_app()
  File "/Users/jian5397/work/anchor/lib/python2.7/site-packages/pecan/commands/base.py", line 162, in load_app
    return load_app(self.args.config_file)
  File "/Users/jian5397/work/anchor/lib/python2.7/site-packages/pecan/core.py", line 219, in load_app
    module = __import__(package_name, fromlist=['app'])
  File "/Users/jian5397/work/anchor/lib/python2.7/site-packages/anchor/app.py", line 21, in <module>
    import paste
ImportError: No module named paste

2) It seems that it needs CA/root-ca.crt before it can be run. It is better to add it into the documentation. For example,

pecan serve config.py
INFO:anchor:using config: config.json
Traceback (most recent call last):
  File "/Users/jian5397/work/anchor/bin/pecan", line 11, in <module>
    sys.exit(CommandRunner.handle_command_line())
  File "/Users/jian5397/work/anchor/lib/python2.7/site-packages/pecan/commands/base.py", line 96, in handle_command_line
    runner.run(sys.argv[1:])
  File "/Users/jian5397/work/anchor/lib/python2.7/site-packages/pecan/commands/base.py", line 91, in run
    self.commands[ns.command_name]().run(ns)
  File "/Users/jian5397/work/anchor/lib/python2.7/site-packages/pecan/commands/serve.py", line 38, in run
    app = self.load_app()
  File "/Users/jian5397/work/anchor/lib/python2.7/site-packages/pecan/commands/base.py", line 162, in load_app
    return load_app(self.args.config_file)
  File "/Users/jian5397/work/anchor/lib/python2.7/site-packages/pecan/core.py", line 221, in load_app
    app = module.app.setup_app(_runtime_conf, **kwargs)
  File "/Users/jian5397/work/anchor/lib/python2.7/site-packages/anchor/app.py", line 158, in setup_app
    validate_config(jsonloader.conf)
  File "/Users/jian5397/work/anchor/lib/python2.7/site-packages/anchor/app.py", line 82, in validate_config
    _check_file_exists(conf.ca['cert_path'])
  File "/Users/jian5397/work/anchor/lib/python2.7/site-packages/anchor/app.py", line 59, in _check_file_exists
    path)
anchor.app.ConfigValidationException: could not read file: CA/root-ca.crt

Changed in anchor:
importance: Undecided → Medium
assignee: nobody → Doug Chivers (doug-chivers)
Revision history for this message
Stanislaw Pitucha (stanislaw-pitucha) wrote :

I believe this has been done in b61edc50200de2a83606ce50a2f0ad40c8c135dc and following commits. Please comment if it's still not clear.

Changed in anchor:
status: New → Fix Committed
Changed in anchor:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.