Call for testing Pyradio snap


#1

Pyradio is a command line internet radio player.

Requirements:
python 2.6+/3.2+
mplayer or vlc installed and in your path

The latest version of pyradio is now in the beta channel.

Here’s how to test the release:

Install the beta version:

$ sudo snap install pyradio --beta

Run the program:

pyradio --play

This will appear. Choose your station and play it


#2

Sounds interesting. Doesn’t work for me, though, on Ubuntu 16.04:

$ pyradio --play
Traceback (most recent call last):
  File "/snap/pyradio/2/bin/pyradio", line 11, in <module>
    load_entry_point('pyradio==0.5.2', 'console_scripts', 'pyradio')()
  File "/snap/pyradio/2/lib/python3.5/site-packages/pyradio/main.py", line 81, in shell
    curses.wrapper(pyradio.setup)
  File "/snap/pyradio/2/usr/lib/python3.5/curses/__init__.py", line 94, in wrapper
    return func(stdscr, *args, **kwds)
  File "/snap/pyradio/2/lib/python3.5/site-packages/pyradio/radio.py", line 59, in setup
    self.player = player.probePlayer()(self.log)
TypeError: 'NoneType' object is not callable

I don’t think having mplayer or vlc in your PATH is going to help, as a confined snap isn’t going to see them. Would it work if you bundled mplayer in the snap?


#3

Bundle them ? You mean add them as plugins ?
If yes how do i add 2 plugins in the .yaml file ?


#4

no … adding mplayer to “stage-packages:” to bundle it in the snap …


#5

Fixed the error. It sould now work


#6

This is neat! It installs, and I can choose a radio station, but it doesn’t play any audio. Perhaps you need to add the “pulseaudio” and stage-package “libpulse0”?


#7

I get an error about jack.


#8

It has been fixed and its working well


#9

Nice one! - thanks!