jsnap2py is broken in pip3.6
nskalis opened this issue · 1 comments
nskalis commented
Description of Issue/Question
jsnap2py
breaks when it is installed via pip3.6
Setup
not relevant, even the --version
is not working
Steps to Reproduce Issue
pip3.6 install jsnapy
Versions Report
$ jsnap2py --version
File "/usr/bin/jsnap2py", line 30
msg = "{{%s_%s}}" % (data)
^
TabError: inconsistent use of tabs and spaces in indentation
Could you please fix it ? And please confirm once the fix is available in pip3.6 ?
nskalis commented
when the tab issue gets resolved, then there is another issue:
$ jsnap2py -i jsnap.interfaces.conf -o jsnapy.interfaces.yaml
Traceback (most recent call last):
File "/usr/bin/jsnap2py", line 125, in <module>
if len(inputs) > 0:
TypeError: object of type 'map' has no len()
which is resolved by
inputs = list(map(msg_change, inputs))
in line 123