D-Rats icon indicating copy to clipboard operation
D-Rats copied to clipboard

D-Rats -> File -> Tools -> Network Proxy (not found)

Open maurizioandreotti opened this issue 2 years ago • 5 comments

Calling menu:

**D-Rats -> File -> Tools -> Network Proxy **

On MacOS I get this error:

06/20/2023 09:59:07:INFO:MainWindow:activate_proxy: Running proxy: [/Users/maurizio/Virtualenvs/d-rats4/bin/python3, d-rats_repeater]

/Users/maurizio/Virtualenvs/d-rats4/bin/python3: can't open file '/Users/maurizio/Virtualenvs/d-rats4/D-Rats/d-rats_repeater': [Errno 2] No such file or directory

On Windows 10 in console I get:

06/20/2023 10:02:34:INFO:MainWindow:activate_proxy: Running proxy: ['d-rats_repeater']
06/20/2023 10:02:34:INFO:D-Rats:---- GUI Exception ----
%s
---- End ----
Stack (most recent call last):
  File "C:\msys64\home\mauri\D-Rats\d-rats.py", line 250, in <module>
    main()
  File "C:\msys64\home\mauri\D-Rats\d-rats.py", line 244, in main
    app.main()
  File "C:/msys64\home\mauri\D-Rats/d_rats/mainapp.py", line 2124, in main
    self.run(None)
  File "C:/msys64/mingw64/lib/python3.10/site-packages/gi/overrides/Gio.py", line 42, in run
    return Gio.Application.run(self, *args, **kwargs)
  File "C:\msys64\home\mauri\D-Rats\d-rats.py", line 94, in handle_exception
    MODULE_LOGGER.info("---- GUI Exception ----\n%s\n---- End ----\n",

and in pop-up :

Traceback (most recent call last):

  File "C:/msys64\home\mauri\D-Rats/d_rats/mainwindow.py", line 367, in _activate_proxy
    subprocess.Popen(args)

  File "C:/msys64/mingw64/lib/python3.10/subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,

  File "C:/msys64/mingw64/lib/python3.10/subprocess.py", line 1440, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,

FileNotFoundError: [WinError 2] The system cannot find the file specified

maurizioandreotti avatar Jun 20 '23 08:06 maurizioandreotti

To be honest I am not sure why this was implemented in this way as the repeater should be run by itself (with its params and console loggin etc .

Personally I would remove this link

maurizioandreotti avatar Jun 20 '23 08:06 maurizioandreotti

It did not appear to be working for the python2 version, so I did not do anything with it for the python3 version. I probably should have created a ticket.

It is one of those applications that needs to be launched via the GIO calls that do not work yet on Mac OS.

Based on the error message, it appears that it was expecting a symlink to the actual d-rats repeater or a script to launch it to be present at that directory, and symlinks do not work well in a cross platform repository, and I do not seen any scripts.

The name "proxy" indicates that it is intended as a buffer between the client and the network, but still not sure of the intent of this feature.

We may want to ask on the d-rats.groups.io mailing list if anyone cares if we just remove that menu item.

To properly implement the feature, d-rats needs to test that see that the proxy is configured as a radio so that it knows the port to check, and check if the port is in use. Note that is separate from having it client actually having the radio enabled for the proxy.

wb8tyw avatar Jun 20 '23 12:06 wb8tyw

The name "proxy" indicates that it is intended as a buffer between the client and the network, but still not sure of the intent of this feature.

From what I see, in 0.3.9 (on win10) that menu voice just open the local ratflector:

[image: image.png]

the end result it's identical as opening d-rats_repeater.exe with a double click (and the configfile used by the raflector is the same in both cases). in fact closing d-rats doesn't close the ratflector program, which remain operational

launching d-rats_repeater from command line allows specify a different config, etc etc

Il giorno mar 20 giu 2023 alle ore 14:49 John E. Malmberg < @.***> ha scritto:

It did not appear to be working for the python2 version, so I did not do anything with it for the python3 version. I probably should have created a ticket.

It is one of those applications that needs to be launched via the GIO calls that do not work yet on Mac OS.

Based on the error message, it appears that it was expecting a symlink to the actual d-rats repeater or a script to launch it to be present at that directory, and symlinks do not work well in a cross platform repository, and I do not seen any scripts.

The name "proxy" indicates that it is intended as a buffer between the client and the network, but still not sure of the intent of this feature.

We may want to ask on the d-rats.groups.io mailing list if anyone cares if we just remove that menu item.

To properly implement the feature, d-rats needs to test that see that the proxy is configured as a radio so that it knows the port to check, and check if the port is in use. Note that is separate from having it client actually having the radio enabled for the proxy.

— Reply to this email directly, view it on GitHub https://github.com/ham-radio-software/D-Rats/issues/207#issuecomment-1598708359, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2W7OSHVUXEABKLUVKJZ4TXMGL4JANCNFSM6AAAAAAZM4JFSM . You are receiving this because you authored the thread.Message ID: @.***>

maurizioandreotti avatar Jun 20 '23 13:06 maurizioandreotti

Something extra was added to the windows packaging of 0.3.9. to make it work.

This may also have been done for .deb or .rpm packaging of D-Rats. The code to create those packages also never made it completely into the D-Rats official sourc.e.

The feature does not work from just using a copy of the repository.

wb8tyw avatar Jun 20 '23 13:06 wb8tyw

...the dist.bat was creating the 0.3.9 package.

Il giorno mar 20 giu 2023 alle ore 15:25 John E. Malmberg < @.***> ha scritto:

Something extra was added to the windows packaging of 0.3.9. to make it work.

This may also have been done for .deb or .rpm packaging of D-Rats. The code to create those packages also never made it completely into the D-Rats official sourc.e.

The feature does not work from just using a copy of the repository.

— Reply to this email directly, view it on GitHub https://github.com/ham-radio-software/D-Rats/issues/207#issuecomment-1598787355, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2W7OVK77BGBTB3O7QT5V3XMGQE3ANCNFSM6AAAAAAZM4JFSM . You are receiving this because you authored the thread.Message ID: @.***>

maurizioandreotti avatar Jun 20 '23 14:06 maurizioandreotti