Open tikismoke opened 7 years ago
And also this on unexisting dir:
root@domogik:/home/domogik/src/domogik/tools/packages# ./review.py /home/domogik-plugin-k
INFO : Package location : /home/domogik-plugin-k
===========================================================
Read the json file
===========================================================
ERROR : Unable to read the 'info.json' file as a Json file! Error is : Traceback (most recent call last):
File "./review.py", line 131, in load_json
self.json_data = json.load(open(os.path.join(self.pkg_dir, "info.json")))
IOError: [Errno 2] No such file or directory: '/home/domogik-plugin-k/info.json'
ERROR : Unable to read some 'info.json' identity informations! Error is : Traceback (most recent call last):
File "./review.py", line 137, in read_identity
self.pkg_type = self.json_data["identity"]["type"]
AttributeError: Review instance has no attribute 'json_data'
Traceback (most recent call last):
File "./review.py", line 372, in <module>
R = Review(pkg_dir)
File "./review.py", line 42, in __init__
self.read_identity()
File "./review.py", line 146, in read_identity
self.info("Package type : {0}".format(self.pkg_type))
AttributeError: Review instance has no attribute 'pkg_type'
Indeed the file do not exists.