C:\Users\HSM>python -m pyamaha
yxc>device 192.168.11.115
yxc>system
yxc\system>getDeviceInfo
Traceback (most recent call last):
File "C:\Users\HSM\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\HSM\AppData\Local\Programs\Python\Python311\Lib\json\__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\HSM\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\HSM\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "c:\users\HSM\src\pyamaha\pyamaha\__main__.py", line 301, in <module>
r.cmdloop()
File "C:\Users\HSM\AppData\Local\Programs\Python\Python311\Lib\cmd.py", line 138, in cmdloop
stop = self.onecmd(line)
^^^^^^^^^^^^^^^^^
File "C:\Users\HSM\AppData\Local\Programs\Python\Python311\Lib\cmd.py", line 217, in onecmd
return func(arg)
^^^^^^^^^
File "c:\users\HSM\src\pyamaha\pyamaha\__main__.py", line 274, in do_system
system.cmdloop()
File "C:\Users\HSM\AppData\Local\Programs\Python\Python311\Lib\cmd.py", line 138, in cmdloop
stop = self.onecmd(line)
^^^^^^^^^^^^^^^^^
File "C:\Users\HSM\AppData\Local\Programs\Python\Python311\Lib\cmd.py", line 217, in onecmd
return func(arg)
^^^^^^^^^
File "c:\users\HSM\src\pyamaha\pyamaha\__main__.py", line 21, in func_wrapper
func(*args, **kwargs)
File "c:\users\HSM\src\pyamaha\pyamaha\__main__.py", line 78, in do_getDeviceInfo
pprint.pprint(resp.json())
^^^^^^^^^^^
File "C:\Users\HSM\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
C:\Users\HSM>
Installed from the repository and I get this when I run it.
pip install -e git+https://github.com/rsc-dev/pyamaha.git#egg=pyamaha