pydanny / simplicity-complexity-example

An example using simplicity and complexity.
8 stars 2 forks source link

example doesn't work with simplicity 0.6 #1

Open treyhunner opened 10 years ago

treyhunner commented 10 years ago

I tried to follow the instructions and experienced the following error when using simplicity:

Traceback (most recent call last):
  File "/home/trey/.virtualenvs/test/bin/simplicity", line 9, in <module>
    load_entry_point('simplicity==0.6.4', 'console_scripts', 'simplicity')()
  File "/home/trey/.virtualenvs/test/local/lib/python2.7/site-packages/simplicity.py", line 112, in command_line_runner
    print(rst_to_json(file_opener(filename)))
  File "/home/trey/.virtualenvs/test/local/lib/python2.7/site-packages/simplicity.py", line 77, in rst_to_json
    if not isinstance(data[key], str):
KeyError: 'description'

I downgraded simplicity to 0.5.1 and the example worked.

treyhunner commented 10 years ago

It looks like the next line (complexity project www) also doesn't work with the latest version of complexity.