07-07-2020, 10:50 PM
Hello Peziman,
I tried your proposed solution and I got some problems:
1. If I start welle-cli (in my case sudo /usr/src/welle.io/build/welle-cli -w 7979 -c 12A -P) and start an URL with the
correct SID everything is running until the "putty client" is alive.
2. I have tried the second ADDON but probably I am not so able to follow you: what you mean with: "Start welle.io and
the DABclient.py". In other terms I have tried to run the above command on a putty session and have tried, on an
other putty session and I get back some errors:
sudo python DABclient.py
Traceback (most recent call last):
File "DABclient.py", line 4, in <module>
from mpdclass import MPDConnect
File "/home/pi/mpdclass.py", line 8, in <module>
from mpd import MPDClient, MPDError, CommandError, ConnectionError
ImportError: No module named mpd
or
sudo python3.7 DABclient.py
File "DABclient.py", line 25
print cur_ch
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(cur_ch)?
I have modified all the print command including parentheses but I get similar errors:
sudo python3.7 DABclient.py
Traceback (most recent call last):
File "DABclient.py", line 4, in <module>
from mpdclass import MPDConnect
File "/home/pi/mpdclass.py", line 25
except(socket_error, ConnectionError):
^
TabError: inconsistent use of tabs and spaces in indentation
Would you please br so kind to try to help me to find where I go wrong?
Best regards and thanks in advance,
Francesco
I tried your proposed solution and I got some problems:
1. If I start welle-cli (in my case sudo /usr/src/welle.io/build/welle-cli -w 7979 -c 12A -P) and start an URL with the
correct SID everything is running until the "putty client" is alive.
2. I have tried the second ADDON but probably I am not so able to follow you: what you mean with: "Start welle.io and
the DABclient.py". In other terms I have tried to run the above command on a putty session and have tried, on an
other putty session and I get back some errors:
sudo python DABclient.py
Traceback (most recent call last):
File "DABclient.py", line 4, in <module>
from mpdclass import MPDConnect
File "/home/pi/mpdclass.py", line 8, in <module>
from mpd import MPDClient, MPDError, CommandError, ConnectionError
ImportError: No module named mpd
or
sudo python3.7 DABclient.py
File "DABclient.py", line 25
print cur_ch
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(cur_ch)?
I have modified all the print command including parentheses but I get similar errors:
sudo python3.7 DABclient.py
Traceback (most recent call last):
File "DABclient.py", line 4, in <module>
from mpdclass import MPDConnect
File "/home/pi/mpdclass.py", line 25
except(socket_error, ConnectionError):
^
TabError: inconsistent use of tabs and spaces in indentation
Would you please br so kind to try to help me to find where I go wrong?
Best regards and thanks in advance,
Francesco