ODR-DabMux GUI python script error

365 views
Skip to first unread message

cl...@radioalfa.dk

unread,
Aug 18, 2016, 5:11:00 PM8/18/16
to mmbtools
Hello,

I'm trying to launch the gui/odr-dabmux-gui.py scrip.

The multiplexer is running with these parameters.

general {
dabmode 1
nbframes 0
syslog true
writescca false
tist true
managementport 12720
statsserverport 12720
new_fig_carousel false
}


The python script returns this:

  File "odr-dabmux-gui.py", line 30, in <module>

    from muxconfig import *

  File "/home/odr/dab/ODR-DabMux/gui/muxconfig.py", line 23, in <module>

    import zmq

ImportError: No module named zmq



 Any ideas ?


Cheers

Claus



Ulrik Brinck

unread,
Aug 18, 2016, 11:55:38 PM8/18/16
to mmbtools
Hi Claus, try this:
 
sudo apt-get install python-zmq
 
Best regards,
Ulrik.
 
 
--
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.
For more options, visit https://groups.google.com/d/optout.

Federico Allegretti

unread,
Apr 14, 2017, 5:43:56 AM4/14/17
to mmbtools
i get the same error and solved added the python zmq library (ps i added it in a my custom ubuntu installer script stripped by the original debian.sh)

but now if i run the script and point the browsere to localhost:8000 i get this error page:

Error: 500 Internal Server Error

Sorry, the requested URL 'http://localhost:8000/' caused an error:

Internal Server Error

Exception:

IOError('Timeout processing ZMQ request',)

Traceback:

Traceback (most recent call last):
  File "/home/v1p3r/src/dab/ODR-DabMux/gui/bottle.py", line 862, in _handle
    return route.call(**args)
  File "/home/v1p3r/src/dab/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/v1p3r/src/dab/ODR-DabMux/gui/muxrc.py", line 76, in load
    module_names = self.zRead([b'list'])
  File "/home/v1p3r/src/dab/ODR-DabMux/gui/muxrc.py", line 72, in zRead
    raise IOError("Timeout processing ZMQ request")
IOError: Timeout processing ZMQ request

Federico Allegretti

unread,
Apr 26, 2017, 6:18:07 AM4/26/17
to mmbtools
 guis, where i have to set the "" in the mux.conf?

in the readme i see: "... zeromq RC on tcp://lo:12722 ..."

i set a line on outputs section like this:

zmq "tcp://lo:12722"

but still zeromq timeout.


Il giorno giovedì 18 agosto 2016 23:11:00 UTC+2, cl...@radioalfa.dk ha scritto:

Matthias Brändli

unread,
Apr 26, 2017, 7:12:54 PM4/26/17
to crc-mm...@googlegroups.com
Don't confuse "output section" and "RC".

Have a look in the doc/advanced.mux file where both are described.

mpb

Federico Allegretti

unread,
Apr 27, 2017, 5:44:02 AM4/27/17
to mmbtools
sorry, but cannot find any in:
https://github.com/Opendigitalradio/ODR-DabMux/blob/master/doc/advanced.mux

maybe i get the wrong example ....


Il giorno giovedì 18 agosto 2016 23:11:00 UTC+2, cl...@radioalfa.dk ha scritto:

Federico Allegretti

unread,
Apr 28, 2017, 2:18:26 PM4/28/17
to mmbtools
With the help of Giovanni i discovered that the loine to add was "zmqendpoint "tcp://lo:12722" e che va aggiunto nella sezione remotecontrol {}

SOLVED


Il giorno giovedì 18 agosto 2016 23:11:00 UTC+2, cl...@radioalfa.dk ha scritto:

Matthias Brändli

unread,
Apr 30, 2017, 4:52:31 AM4/30/17
to crc-mm...@googlegroups.com
In this case è tutto bene !

:-)

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>.

Federico Allegretti

unread,
May 2, 2017, 12:33:30 PM5/2/17
to mmbtools, matthias...@mpb.li
sorry if i mixed the italian and english language, it appens to me when i'm talking / chatting with ifferente people on different enviroments :D

PS: i got also an error 'cause i run the python script from odr-dabmux folder with "gui/odr-dabmux-gui.py" and then when i point firefox to 127.0.0.1 i got:

Error: 500 Internal Server Error

Sorry, the requested URL 'http://127.0.0.1:8000/' caused an error:

Template 'index' not found.

this do not appens and everything goes well when i get into teh python script folder:
cd gui
AND then run the server script:
./odr-dabmux-gui.py

cl...@radioalfa.dk

unread,
Aug 29, 2018, 5:20:59 PM8/29/18
to mmbtools
Hello again,

I still cannot get this script going.
Everything on the RC-section looks right.

But the script odr-dabmux-gui.py stil fails:


odr@mux:~/gui$ ./odr-dabmux-gui.py
Bottle v0.12.8 server starting up (using WSGIRefServer())...
Listening on http://127.0.0.1:8000/
Hit Ctrl-C to quit.


Traceback (most recent call last):
  File "./odr-dabmux-gui.py", line 155, in <module>
    run(host=cli_args.host, port=int(cli_args.port), debug=True, reloader=False)
  File "/home/odr/gui/bottle.py", line 3117, in run
    server.run(app)
  File "/home/odr/gui/bottle.py", line 2771, in run
    srv = make_server(self.host, self.port, app, server_cls, handler_cls)
  File "/usr/lib/python2.7/wsgiref/simple_server.py", line 151, in make_server
    server = server_class((host, port), handler_class)
  File "/usr/lib/python2.7/SocketServer.py", line 417, in __init__
    self.server_bind()
  File "/usr/lib/python2.7/wsgiref/simple_server.py", line 48, in server_bind
    HTTPServer.server_bind(self)
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
    SocketServer.TCPServer.server_bind(self)
  File "/usr/lib/python2.7/SocketServer.py", line 431, in server_bind
    self.socket.bind(self.server_address)
  File "/usr/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use


/Claus

Nick Piggott

unread,
Aug 30, 2018, 1:59:02 AM8/30/18
to crc-mm...@googlegroups.com
Hi Claus

socket.error: [Errno 98] Address already in use

Suggests you've already got something running on port 8000 on that machine.?

Nick


> For more options, visit https://groups.google.com/d/optout.

--
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.

inino

unread,
May 20, 2024, 7:51:47 PM5/20/24
to mmbtools
Hello all
I up this chan because of :

-----------------------------
$ tail /var/log/munin/munin-node.log

Resolved [*]:4949 to [::]:4949, IPv6
Not including resolved host [0.0.0.0] IPv4 because it will be handled by [::] IPv6
Binding to TCP port 4949 on host :: with IPv6
Setting gid to "0 0"
2024/05/21-01:22:08 [2421521] Error output from stats_dabmux_munin:
2024/05/21-01:22:08 [2421521] Traceback (most recent call last):
2024/05/21-01:22:08 [2421521]   File "/etc/munin/plugins/stats_dabmux_munin", line 12, in <module>
2024/05/21-01:22:08 [2421521]     import zmq
2024/05/21-01:22:08 [2421521] ImportError: No module named zmq
2024/05/21-01:22:08 [2421521] Service 'stats_dabmux_munin' exited with status 1/0.
--------------------------------------------


Dabmux version : 2.3.2
I got the most rencent version of the py script for munin
Ubuntu 20.04 LTS

I just installed python3-zmq and restarted munin-node.service > same thing
I installed zmq librairie with :
"sudo pip3 install zmq"

In Python3 i can import zmq without problem
in Python 2 i got "no module named zmq"

I tried "sudo pip2 install zmq" ^^ , but no pip2 available

And on  :
----------------------------------------
$ sudo pip install zmq
Requirement already satisfied: zmq in /usr/local/lib/python3.8/dist-packages (0.0.0)
Requirement already satisfied: pyzmq in /usr/lib/python3/dist-packages (from zmq) (18.1.1)
----------------------------------------

Anybody to help me to fix that ?

Thx a lot

Clement

Matthias Brändli

unread,
May 21, 2024, 1:29:52 AM5/21/24
to crc-mm...@googlegroups.com
Salut Clément,

Prefer installing the python3-zmq package over using system-wide pip.
Same goes for the python2 package python-zmq.

If you want to run the stats_dabmux_munin with python3, modify it so
that the first line reads

#!/usr/bin/env python3

Cheers
mpb

On 21/05/2024 01:51, inino wrote:
> Hello all
> I up this chan because of :
>
> -----------------------------
> $ tail /var/log/munin/munin-node.log
>
> Resolved [*]:4949 to [::]:4949, IPv6
> Not including resolved host [0.0.0.0] IPv4 because it will be handled by
> [::] IPv6
> Binding to TCP port 4949 on host :: with IPv6
> Setting gid to "0 0"
> 2024/05/21-01:22:08 [2421521] Error output from stats_dabmux_munin:
> 2024/05/21-01:22:08 [2421521] Traceback (most recent call last):
> 2024/05/21-01:22:08 [2421521]   File
> "/etc/munin/plugins/stats_dabmux_munin", line 12, in <module>
> 2024/05/21-01:22:08 [2421521]     import zmq
> *2024/05/21-01:22:08 [2421521] ImportError: No module named zmq*
> --
> 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/93d9281c-5ebe-434f-b0fb-9cbb2240497bn%40googlegroups.com <https://groups.google.com/d/msgid/crc-mmbtools/93d9281c-5ebe-434f-b0fb-9cbb2240497bn%40googlegroups.com?utm_medium=email&utm_source=footer>.

inino

unread,
May 21, 2024, 5:35:33 AM5/21/24
to mmbtools
Ok, I couldn't find the package for python2 zmq, but modifying the shebang of the script from python to python3 simply solved the problem, thx Matthias :)
Le jeudi 18 août 2016 à 23:11:00 UTC+2, clausj...@gmail.com a écrit :
Reply all
Reply to author
Forward
0 new messages