On 11/18/2023 10:09 AM, DTrounce de KL4KF wrote:
i am new to both D-rats and linux based OS but i was able to clone a
working vs from github, installed and was working fine until i tried
to add a local host, now i cannot add any new radio ports in
preferences. > i cannot open preferences its giving an error.
Traceback (most recent call last):
<snip>
File "/usr/lib/python3/dist-packages/gi/overrides/GObject.py", line 240, in set_value
raise TypeError("Expected string but got %s%s" %
TypeError: Expected string but got 9000<class 'int'>
That error looks like a problem in the configuration file "~/.d-rats-ev/d-rats.config"
The past and current storage of the radio data makes it very easy to create an invalid entry for a radio which will result in the behavior that you are seeing.
The section of the file by default is:
[ports]
ports_0 = True,net:ref.d-rats.com:9000,,False,False,RAT
And an example from one of my development machines:
[ports]
ports_0 = True,net:localhost:9000,password,True,True,localhost
ports_1 = True,net:pldares.ratflector.com:9000,,False,False,pldares
ports_2 = False,net:ref.d-rats.com:9000,,False,False,RAT
ports_3 = True,net:sttammany.ratflector.com:9000,,False,False,StTammany
ports_4 = True,/dev/ttyUSB0,9600,True,True,usb0
If you put a comma character in the network address entry or pretty much any other punctuation character where it is not expected, d-rats is not going to be able to process the file.
You should be able to edit the file on Linux with your favorite text editor to fix it.
There are several open tickets to make that configuration better, but it is going to take a lot of work to do it right.
73,
-John
wb8tyw