MUX GUI help needed

355 views
Skip to first unread message

Jan de Vries

unread,
Sep 8, 2019, 4:31:46 PM9/8/19
to mmbtools
Hi all,
Need a push in the right direction, regarding the MUX GUI.
Got an error on the http page.

Traceback (most recent call last):
  File "/home/jan/odr/ODR-DabMux/gui/bottle.py", line 862, in _handle
    return route.call(**args)
  File "/home/jan/odr/ODR-DabMux/gui/bottle.py", line 1732, in wrapper
    rv = callback(*a, **ka)
  File "gui/odr-dabmux-gui.py", line 106, in index
    rc.load()
  File "/home/jan/odr/ODR-DabMux/gui/muxrc.py", line 85, in load
    p, v = param.split(': ')
ValueError: need more than 1 value to unpack


in mux :
remotecontrol {

telnetport 12721
zmqendpoint "tcp://lo:12722"

}

looking in a dark hole here ;-)


Matthias Brändli

unread,
Sep 9, 2019, 3:10:17 AM9/9/19
to crc-mm...@googlegroups.com
Hello Jan,

I must have broken this when I did some changes to the ZMQ RC interface.
Latext "next" should work fine again.

Cheers
mpb
> --
> You received this message because you are subscribed to the Google
> Groups "mmbtools" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to crc-mmbtools...@googlegroups.com
> <mailto:crc-mmbtools...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/crc-mmbtools/420ac9d8-669e-49b4-9d8e-842433af957a%40googlegroups.com
> <https://groups.google.com/d/msgid/crc-mmbtools/420ac9d8-669e-49b4-9d8e-842433af957a%40googlegroups.com?utm_medium=email&utm_source=footer>.

Giuseppe Cannarella

unread,
Oct 18, 2019, 9:36:06 AM10/18/19
to mmbtools
Hello Matthias,
Any news about fixing this issue?
Thanks

Giuseppe

Matthias Brändli

unread,
Oct 18, 2019, 9:45:46 AM10/18/19
to crc-mm...@googlegroups.com

Claus Nielsen

unread,
Feb 6, 2020, 6:08:03 PM2/6/20
to mmbtools
Hi,

I still get errors when running the gui.
I'm currently on the Nex branch  (v3.0.1-19-g9e1a5e0)

I keep getting:


Error: 500 Internal Server Error

Traceback (most recent call last):
  File "/home/odr/Downloads/ODR-DabMux/gui/bottle.py", line 862, in _handle
    return route.call(**args)
  File "/home/odr/Downloads/ODR-DabMux/gui/bottle.py", line 1732, in wrapper
    rv = callback(*a, **ka)
  File "./odr-dabmux-gui.py", line 105, in index
    conf.load()
  File "/home/odr/Downloads/ODR-DabMux/gui/muxconfig.py", line 128, in load
    server_info = self.zRead(b'info')
  File "/home/odr/Downloads/ODR-DabMux/gui/muxconfig.py", line 124, in zRead
    raise IOError("Timeout processing ZMQ request")
IOError: Timeout processing ZMQ request

I have changed interface to 0.0.0.0 in odr-dabmux-gui.py to allow connection from remote browsers.

Any ideas,

Regards,

Claus Juul Nielsen

Matthias Brändli

unread,
Feb 7, 2020, 2:23:27 AM2/7/20
to crc-mm...@googlegroups.com
Does your mux have the zmq remote control enabled? And on the right port?

mpb

On 07/02/2020 00:08, Claus Nielsen wrote:
> Hi,
>
> I still get errors when running the gui.
> I'm currently on the Nex branch  (v3.0.1-19-g9e1a5e0)
>
> I keep getting:
>
>
> Error: 500 Internal Server Error
>
> Traceback (most recent call last):
> File "/home/odr/Downloads/ODR-DabMux/gui/bottle.py", line 862, in _handle
> return route.call(**args)
> File "/home/odr/Downloads/ODR-DabMux/gui/bottle.py", line 1732, in wrapper
> rv = callback(*a, **ka)
> File "./odr-dabmux-gui.py", line 105, in index
> conf.load()
> File "/home/odr/Downloads/ODR-DabMux/gui/muxconfig.py", line 128, in load
> server_info = self.zRead(b'info')
> File "/home/odr/Downloads/ODR-DabMux/gui/muxconfig.py", line 124, in zRead
> raise IOError("Timeout processing ZMQ request")
> IOError: Timeout processing ZMQ request
>
>
> I have changed interface to 0.0.0.0 in *odr-dabmux-gui.py *to allow
> connection from remote browsers.
>
> Any ideas,
>
> Regards,
>
> Claus Juul Nielsen
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "mmbtools" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to crc-mmbtools...@googlegroups.com
> <mailto:crc-mmbtools...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/crc-mmbtools/fdd17642-1cc1-4d20-a01e-58427a7edae0%40googlegroups.com
> <https://groups.google.com/d/msgid/crc-mmbtools/fdd17642-1cc1-4d20-a01e-58427a7edae0%40googlegroups.com?utm_medium=email&utm_source=footer>.

Claus Nielsen

unread,
Feb 7, 2020, 3:49:15 AM2/7/20
to mmbtools
Hi Matthias,  Yes I think so.

Top of mux.conf:


general {
dabmode 1
nbframes 0
syslog true
writescca false
tist true
tist_offset 2
managementport 12270
}

remotecontrol {
telnetport 12271
zmqendpoint "tcp://*:12722"
}



Cheers,

Claus

Jan de Vries

unread,
Feb 24, 2020, 9:23:53 AM2/24/20
to mmbtools
Also problems with the GUI at V3.01-next.
updated my test mux to the next branche, did also sudo make clean before the make command.
Started the .py file from the next dir.
Error says  Template "index" not found.

I see in the terminal, that info is pulled from the mux file.


Gerard Lokhoff

unread,
Aug 18, 2020, 8:51:51 AM8/18/20
to mmbtools
For what it is worth : I have been experimenting with the Mux GUI as well.
It worked once, after that I get the same 'Template índex' not found message.
Seems that I have to start it in the gui subdirectory, such that it can find all modules ?
Because if I start it from there with "python3 odr-dabmux-gui.py" it works...
I tried to overcome this by adding the gui directory to the PYTHONPATH, but that didn't do the trick...

Matthias Brändli

unread,
Aug 18, 2020, 8:56:56 AM8/18/20
to crc-mm...@googlegroups.com
On 18/08/2020 14:51, Gerard Lokhoff wrote:
> Seems that I have to start it in the gui subdirectory, such that it can
> find all modules ?

Short answer: Yes.

If you launch the gui with something else (e.g. supervisor), you need to
set the working directory.

mpb

Gerard Lokhoff

unread,
Aug 18, 2020, 9:36:34 AM8/18/20
to mmbtools
Thanks, I added a

directory=/home/dabuser/ODR-DabMux/gui

line to the .conf file for supervisor and it works now !

Op dinsdag 18 augustus 2020 14:56:56 UTC+2 schreef Matthias Brändli:

Gerard Lokhoff

unread,
Aug 19, 2020, 7:21:23 PM8/19/20
to mmbtools
This might also help some people: I wanted to be able to call the DabMux GUI from another computer in my network. This can be done by adding the option

    --host 0.0.0.0

to the command invocation.

Also, I think there is a problem with using port 8000 as it may interfere with other programs (e.g. supervisor), so I added
 
    --port 8079

to the command line as well.

Now I can simply see the GUI in a browser on another machine using

    <IP address of DabMux machine>:8079

as URL

See at the end of the odr-dabmux-gui.py file ;o)


Reply all
Reply to author
Forward
0 new messages