You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to use your kiwiclientd.py script for listening without a browser.
I'm using Manjaro linux 20.2.1 with Python 3.9 installed.
The kiwiclient repository is cloned into the home directory.
When I run kiwiclientd.py with just server name, port, frequency and a mode it throws an error:
$ kiwiclient/kiwiclientd.py -s kiwi.24x7.hk -p 8073 -f 10000 -m usb
/home/user1/kiwiclient/kiwiclientd.py:134: SyntaxWarning: "is" with a literal. Did you mean "=="?
if self._options.resample is 0:
Traceback (most recent call last):
File "/home/user1/kiwiclient/kiwiclientd.py", line 433, in <module>
main()
File "/home/user1/kiwiclient/kiwiclientd.py", line 405, in main
snd_recorders.append(KiwiWorker(args=(KiwiSoundRecorder(opt),opt,run_event)))
File "/home/user1/kiwiclient/kiwi/worker.py", line 18, in __init__
self._rigctld = Rigctld(self._recorder, self._options.rigctl_port, self._options.rigctl_address)
File "/home/user1/kiwiclient/kiwi/rigctld.py", line 75, in __init__
s.bind(addr)
TypeError: an integer is required (got type str)
I'm a complete idiot in Python, and my thoughts were that it throws an error because rigctl ports are not specified as in example. I added rigctl ports and now the error is different:
$ kiwiclient/kiwiclientd.py -s kiwi.24x7.hk -p 8073 -f 10000 -m usb --rigctl-port 6400,6401 /home/user1/kiwiclient/kiwiclientd.py:134: SyntaxWarning: "is" with a literal. Did you mean "=="?
if self._options.resample is 0:
Traceback (most recent call last):
File "/home/user1/kiwiclient/kiwi/worker.py", line 42, in run
self._recorder.open()
File "/home/user1/kiwiclient/kiwi/client.py", line 506, in open
self._set_auth('kiwi', self._options.password, self._options.tlimit_password)
File "/home/user1/kiwiclient/kiwi/client.py", line 173, in _set_auth
self._send_message('SET auth t=%s p=%s' % (client_type, password))
File "/home/user1/kiwiclient/kiwi/client.py", line 163, in _send_message
self._stream.send_message(msg)
File "/home/user1/kiwiclient/mod_pywebsocket/_stream_hybi.py", line 523, in send_message
self._write(self._writer.build(message, end, binary))
File "/home/user1/kiwiclient/mod_pywebsocket/_stream_hybi.py", line 343, in build
return create_text_frame(
File "/home/user1/kiwiclient/mod_pywebsocket/_stream_hybi.py", line 165, in create_text_frame
return create_binary_frame(encoded_message, opcode, fin, mask,
File "/home/user1/kiwiclient/mod_pywebsocket/_stream_hybi.py", line 157, in create_binary_frame
return _filter_and_format_frame_object(frame, mask, frame_filters)
File "/home/user1/kiwiclient/mod_pywebsocket/_stream_hybi.py", line 149, in _filter_and_format_frame_object
return _build_frame(header, frame.payload, mask)
File "/home/user1/kiwiclient/mod_pywebsocket/_stream_hybi.py", line 139, in _build_frame
return header + masking_nonce + masker.mask(body)
File "/home/user1/kiwiclient/mod_pywebsocket/util.py", line 201, in _mask_using_array
result.fromstring(bytes(s))
AttributeError: 'array.array' object has no attribute 'fromstring'
2021-01-30 22:29:35,618 pid 70739 websocket close: "'array.array' object has no attribute 'fromstring'"
Traceback (most recent call last):
File "/home/user1/kiwiclient/kiwi/worker.py", line 42, in run
self._recorder.open()
File "/home/user1/kiwiclient/kiwi/client.py", line 506, in open
self._set_auth('kiwi', self._options.password, self._options.tlimit_password)
File "/home/user1/kiwiclient/kiwi/client.py", line 173, in _set_auth
self._send_message('SET auth t=%s p=%s' % (client_type, password))
File "/home/user1/kiwiclient/kiwi/client.py", line 163, in _send_message
self._stream.send_message(msg)
File "/home/user1/kiwiclient/mod_pywebsocket/_stream_hybi.py", line 523, in send_message
self._write(self._writer.build(message, end, binary))
File "/home/user1/kiwiclient/mod_pywebsocket/_stream_hybi.py", line 343, in build
return create_text_frame(
File "/home/user1/kiwiclient/mod_pywebsocket/_stream_hybi.py", line 165, in create_text_frame
return create_binary_frame(encoded_message, opcode, fin, mask,
File "/home/user1/kiwiclient/mod_pywebsocket/_stream_hybi.py", line 157, in create_binary_frame
return _filter_and_format_frame_object(frame, mask, frame_filters)
File "/home/user1/kiwiclient/mod_pywebsocket/_stream_hybi.py", line 149, in _filter_and_format_frame_object
return _build_frame(header, frame.payload, mask)
File "/home/user1/kiwiclient/mod_pywebsocket/_stream_hybi.py", line 139, in _build_frame
return header + masking_nonce + masker.mask(body)
File "/home/user1/kiwiclient/mod_pywebsocket/util.py", line 201, in _mask_using_array
result.fromstring(bytes(s))
AttributeError: 'array.array' object has no attribute 'fromstring'
2021-01-30 22:29:35,627 pid 70739 websocket close: "'array.array' object has no attribute 'fromstring'"
Can you suggest, what's wrong with my invocation of kiwiclientd.py?
Thanks,
Ivan
The text was updated successfully, but these errors were encountered:
Hi Rik,
I wanted to use your
kiwiclientd.py
script for listening without a browser.I'm using Manjaro linux 20.2.1 with Python 3.9 installed.
The
kiwiclient
repository is cloned into the home directory.When I run
kiwiclientd.py
with just server name, port, frequency and a mode it throws an error:I'm a complete idiot in Python, and my thoughts were that it throws an error because rigctl ports are not specified as in example. I added rigctl ports and now the error is different:
Can you suggest, what's wrong with my invocation of
kiwiclientd.py?
Thanks,
Ivan
The text was updated successfully, but these errors were encountered: