[sr-dev] [kamailio/kamailio] kamctl - maintenance for dbtextdb.py tool (#2469)

Evsio0n notifications at github.com
Sat May 28 05:16:20 CEST 2022

I got same issue here, let me figure out wether can be fixed.
``` bash
root at evsio0nHK:~# kamctl add evsio0n 123
Traceback (most recent call last):
  File "/usr/lib/x86_64-linux-gnu/kamailio//kamctl/dbtextdb/dbtextdb.py", line 1243, in <module>
  File "/usr/lib/x86_64-linux-gnu/kamailio//kamctl/dbtextdb/dbtextdb.py", line 1230, in main
    dataset = conn.Execute(' '.join(argv[1:]))
  File "/usr/lib/x86_64-linux-gnu/kamailio//kamctl/dbtextdb/dbtextdb.py", line 423, in Execute
  File "/usr/lib/x86_64-linux-gnu/kamailio//kamctl/dbtextdb/dbtextdb.py", line 1138, in WriteTempTable
    self.temp_file.write(header.strip() + '\n')
  File "/usr/lib/python3.9/tempfile.py", line 613, in func_wrapper
    return func(*args, **kwargs)
TypeError: a bytes-like object is required, not 'str'
ERROR: introducing the new user 'evsio0n' to the database failed
root at evsio0nHK:~#

Reply to this email directly or view it on GitHub:
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/2469/1140153300 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20220527/503387ce/attachment.htm>

More information about the sr-dev mailing list