Open altaurog opened 6 years ago
We're seeing the same thing.
...
...
...
File "/usr/local/lib/python2.7/site-packages/docutils/statemachine.py", line 239, in run
context, state, transitions)
File "/usr/local/lib/python2.7/site-packages/docutils/statemachine.py", line 460, in check_line
return method(match, context, next_state)
File "/usr/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 2398, in line
line=self.state_machine.abs_line_number())
File "/usr/local/lib/python2.7/site-packages/docutils/utils/init.py", line 236, in severe
return self.system_message(self.SEVERE_LEVEL, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/docutils/utils/init.py", line 194, in system_message
raise SystemMessage(msg, level)
SystemMessage:
Same here.
macOS 10.13.3 Python 3.6.4
aws-shell==0.2.0
awscli==1.14.39
boto3==1.5.29
botocore==1.8.43
Ditto....
aws-shell==0.2.0 awscli==1.14.39 boto==2.48.0 boto3==1.5.29 botocore==1.8.43
The problem seems to come from aws-cli
's help command:
> aws servicediscovery register-instance help
<string>:148: (SEVERE/4) Unexpected section title or transition.
****
<string>:148: (SEVERE/4) Unexpected section title or transition.
****
In the meantime, as a workaround, you can do this so aws-shell
stop crashing at every launch:
> sqlite3 ~/.aws/shell/1.14.41-completions.json.docs
SQLite version 3.19.3 2017-06-27 16:48:08
Enter ".help" for usage hints.
sqlite> insert or replace into docindex (key, value) values ('aws.servicediscovery.register-instance', '') ;
@wnkz Could be there is more than one case of invalid rst? I am still getting an exception.
Me too....
...
...
SystemMessage:
@altaurog well this is the only one I found yet ; if this isn't working you can still wrap this call https://github.com/awslabs/aws-shell/blob/master/awsshell/makeindex.py#L144 in a try/except and return an empty string in case of failure so it finishes creating the index.
Also, from what I see in your pip freeze
, you seem to use awscli==1.14.34
so the sqlite database you need to edit would be 1.14.34-completions.json.docs
tried this with awscli==1.14.41/1.14.41-completions.json.docs and still getting the:
SystemMessage:
Maybe it's working for me because I let the process skip the invalid rst. If you want to try it I edited https://github.com/awslabs/aws-shell/blob/master/awsshell/makeindex.py like this
try:
converted = publish_string(
contents, writer=BasicTextWriter(),
settings_overrides={'report_level': 5})
return converted.decode('utf-8')
except:
return ''
On the first run, It'll still show the error on stderr but it won't try to create the doc index on the next start.
@wnkz this work around appears to work, thank you.
A fix has been merged https://github.com/boto/botocore/pull/1390 ; hope they make a release soon.
I am getting the following traceback, apparently from the background document index creation thread:
Here’s the output of
pip freeze