Package Details: pyradio-git 0.8.9.12.r0.g6bafa23-2

Git Clone URL: https://aur.archlinux.org/pyradio-git.git (read-only, click to copy)
Package Base: pyradio-git
Description: Internet radio player for the command line
Upstream URL: http://www.coderholic.com/pyradio/
Licenses: MIT
Conflicts: pyradio
Provides: pyradio
Submitter: aksr
Maintainer: willemw (sng)
Last Packager: sng
Votes: 28
Popularity: 0.001666
First Submitted: 2012-08-23 11:53 (UTC)
Last Updated: 2022-04-29 14:46 (UTC)

Latest Comments

vevais commented on 2022-02-17 17:13 (UTC)

Reinstalling through pacman did not do the trick, but installing pip through pip did!

sng commented on 2022-02-13 12:26 (UTC) (edited on 2022-02-13 12:27 (UTC) by sng)

@vevais

It seems your pip is corrupt...

Maybe at some point you installed pip using pip? (someting like sudo python -m pip install --upgrade pip or sudo pip install --upgrade pip)?

I'd try reinstalling python-pip:

sudo pacman -S python-pip

vevais commented on 2022-02-11 09:06 (UTC)

Get the following error when trying to build: http://sprunge.us/M6jkg0 Reinstalling (and also deleting all the files) of python-pip did not do the trick for me. Any ideas?

martynjy commented on 2022-01-31 17:18 (UTC) (edited on 2022-01-31 17:25 (UTC) by martynjy)

@sng: Thanks, that did the trick. There was no

pip-20.3.4-py3.10.egg-info/
but somehow there was
pip-21.3.1.dist-info/
.

sng commented on 2022-01-31 16:57 (UTC) (edited on 2022-01-31 16:59 (UTC) by sng)

I'd say your python-pip package is corrupt

I'd try removing python-pip and the install it again

sudo pacman -R python-pip

These are the files installed by python-pip

https://pastebin.com/Q19rXMyx

After removing the package, check that these two directories do not exist

If the do, delete them manually

/usr/lib/python3.10/site-packages/pip-20.3.4-py3.10.egg-info/
/usr/lib/python3.10/site-packages/pip/

Then install python-pip again

sudo pacman -S python-pip

martynjy commented on 2022-01-31 16:05 (UTC) (edited on 2022-01-31 16:13 (UTC) by martynjy)

pacman -Qo /usr/lib/python3.10/site-packages/pip:
/usr/lib/python3.10/site-packages/pip/ is owned by python-pip 20.3.4-4
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/locations/_sysconfig.py:
error: No package owns /usr/lib/python3.10/sitepackages/pip/_internal/locations/_sysconfig.py

willemw commented on 2022-01-31 15:55 (UTC)

@martynjy: what does the following return as output:

pacman -Qo /usr/lib/python3.10/site-packages/pip
pacman -Qo /usr/lib/python3.10/site-packages/pip/_internal/locations/_sysconfig.py

martynjy commented on 2022-01-31 15:43 (UTC) (edited on 2022-01-31 15:47 (UTC) by martynjy)

Build Failed: https://pastebin.com/4MpxwHXx

willemw commented on 2021-12-16 09:05 (UTC)

@kusky: the problem is that those files are owned by package(s) and managed by pacman libraries. The user should not (re)move them.

Python 3.10 should be on your system. Rebuilding and reinstalling Python packages should install files in /usr/lib/python3.10 instead of /usr/lib/python3.9.

Try uninstalling and then installing pyradio-git with Python 3.10 installed.

kusky commented on 2021-12-16 08:53 (UTC) (edited on 2021-12-16 08:55 (UTC) by kusky)

@willemw i already --rebuild pyradio but the files didn't move from 3.9 to 3.10
only way to make it work was to move the themes manually
i didn't have problems with any other python package
and i didn't move any file other than my custom theme

willemw commented on 2021-12-15 21:49 (UTC) (edited on 2021-12-15 21:50 (UTC) by willemw)

@kusky:

The files in /usr/lib/python3.9/ are probably all AUR packages. You need to rebuilt those packages, not move the files. Please move the files back first.

To rebuild, you may need to delete the specific .zst package files first and maybe also the specific cached build files. (Look in /var/cache/..., ~/.cache/...).

kusky commented on 2021-12-15 21:40 (UTC)

thanks @sng and @willemw, the following solved the issue for me:

# mv /usr/lib/python3.9/site-packages/pyradio/themes/* /usr/lib/python3.10/site-packages/pyradio/themes/ 

sng commented on 2021-12-14 19:42 (UTC) (edited on 2021-12-14 19:42 (UTC) by sng)

@kusky

In case you cannot fix it using the proposed actions by @willemw, please do contact me at https://github.com/coderholic/pyradio (submit an issue)

Please execute pyradio -d and include in the bug report

a. your ~/pyradio.log

b. the full output of the crash (from the terminal)

S.

willemw commented on 2021-12-14 12:32 (UTC)

@kusky:

Also make sure your whole system is up-to-date. And also run pacman -Qo /usr/lib/python3.9 to check if there are any out-of-date Python packages.

It could also be a CPython issue. The following issue also mentions "KeyError": https://bbs.archlinux.org/viewtopic.php?pid=2008581#p2008581

willemw commented on 2021-12-14 07:12 (UTC)

@kusky: you rebuilt the package and then maybe found an upstream issue. Try moving/renaming your configuration folder (~/.config/pyradio/) and then start pyradio again.

kusky commented on 2021-12-14 02:42 (UTC)

getting the following error after bumping to python 3.10

  File "/usr/lib/python3.10/site-packages/pyradio/themes.py", line 283, in open_theme
    self._applied_theme_max_colors = self._colors['Colors']
KeyError: 'Colors'

servimo commented on 2020-10-30 17:03 (UTC) (edited on 2020-10-30 17:04 (UTC) by servimo)

Now it`s Ok. Thanks! :)

sng commented on 2020-10-30 15:19 (UTC) (edited on 2020-10-30 15:21 (UTC) by sng)

@servimo

yes, the pkgver was wrong again...

It should be ok now.

Please do update (once again) and report back

servimo commented on 2020-10-30 14:41 (UTC)

I updated it but it stay in updates.

sng commented on 2020-10-30 13:51 (UTC)

@martynjy thanks!

I did not know that...

Fixed...

martynjy commented on 2020-10-30 13:41 (UTC)

pkgver is not allowed to contain colons, forward slashes, hyphens or whitespace.

sng commented on 2019-12-23 15:36 (UTC)

ok, thanks!

BTW,

Merry Christmas!!!

willemw commented on 2019-12-23 14:05 (UTC)

@sng: Done. Feel free to make changes yourself, if you want.

sng commented on 2019-12-23 13:51 (UTC) (edited on 2019-12-23 13:51 (UTC) by sng)

@willemw

Can you please remove socat from the dependencies?

It is not needed anymore (version 0.8.7)

Thanks

Spiros

willemw commented on 2019-11-16 09:50 (UTC) (edited on 2019-12-23 14:02 (UTC) by willemw)

@blacktav: Thanks for the heads-up. Bumped the package with some minor changes.

Python 3 updated from 3.7 to 3.8. Everyone needs to rebuild and install the AUR packages which are in the "pacman -Qoq /usr/lib/python3.7" list when updating to Python 3.8.

blacktav commented on 2019-11-15 23:39 (UTC) (edited on 2019-11-15 23:41 (UTC) by blacktav)

Presumably some recent change in python updates broke pyradio with an error such as pkg_resources.DistributionNotFound: The 'pyradio==0.6.0' distribution was not found and is required by the application

Remove and Re-install cycle seems to sort things out Perhaps bumping the release would help

sng commented on 2019-03-02 10:15 (UTC)

@willemw: ok, thanks for making it clear

willemw commented on 2019-03-02 09:17 (UTC) (edited on 2019-03-02 09:59 (UTC) by willemw)

@sng: If the user is not actively following upstream project(s), then I think the normal procedure for the user is to regularly update/reinstall all his or her VCS packages (yay ... --devel, pikaur ... --devel, ...).

sng commented on 2019-03-02 08:57 (UTC) (edited on 2019-03-02 08:59 (UTC) by sng)

@willemw Yes, I know :)

I was under the impression that at least the pkgver should be updated (in the PKGBUILD) so that users get a notification or indication that something has changed, in order to reinstall the package. Otherwise, how would one know when to update?

Still, I don't really know how the whole thing works...

willemw commented on 2019-03-02 08:12 (UTC)

@sng: to update a VCS package (a package ending on -git, for example), you need to reinstall the package.

sng commented on 2019-03-02 01:54 (UTC) (edited on 2019-03-02 02:56 (UTC) by sng)

@willemw Updated upstream at pkgver=0.7.2-0-g1a5bed0

Can you please update here too?

sng commented on 2018-12-05 05:49 (UTC) (edited on 2018-12-05 05:57 (UTC) by sng)

@willemw

This PKGBUILD reflects the latest upstream changes

The man page (pyradio.1) is now in the repo; no need to keep it here any more

# Maintainer: willemw <willemw12@gmail.com>
# Contributor: sng <sng at hellug dot gr>
# Contributor: aksr <aksr at t-com dot me>

_pkgname=pyradio
pkgname=$_pkgname-git
pkgver=0.6.0.r0.gd13b7e3
pkgrel=1
pkgdesc="Command line internet radio player"
arch=('any')
url="http://www.coderholic.com/pyradio/"
license=('MIT')
depends=('ncurses' 'python')
optdepends=('mplayer: as backend' 'vlc: as backend' 'mpv: as backend' 'socat: if mpv is used')
makedepends=('git' 'python-setuptools')
provides=($_pkgname)
conflicts=($_pkgname)
source=($pkgname::git://github.com/coderholic/pyradio.git)
md5sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

package() {
  cd $pkgname
  descr=$(git describe --long --tags)
  sed -i "s/git_description = ''/git_description = '${descr}'/" pyradio/radio.py
  python setup.py install --root="$pkgdir" --optimize=1
  install -Dm644 LICENCE "$pkgdir/usr/share/licenses/pyradio/LICENSE"
  install -Dm644 README.md "$pkgdir/usr/share/doc/pyradio/README.md"
  install -Dm644 README.html "$pkgdir/usr/share/doc/pyradio/README.html"
  install -Dm644 build.md "$pkgdir/usr/share/doc/pyradio/build.md"
  install -Dm644 build.html "$pkgdir/usr/share/doc/pyradio/build.html"
  gzip pyradio.1
  install -Dm644 pyradio.1.gz "$pkgdir/usr/share/man/man1/pyradio.1.gz"
  # we don't have to install stations.csv, it is already in the egg file
  #install -Dm644 pyradio/stations.csv "$pkgdir/usr/share/doc/pyradio/stations.csv"
} 

willemw commented on 2018-11-17 06:30 (UTC)

@aksr: Done.

aksr commented on 2018-11-17 03:45 (UTC)

Remove this stupid line: The man page was written by \fBaksr <aksr at t-com dot me>\fR for Arch Linux.

sng commented on 2018-11-16 20:00 (UTC) (edited on 2018-12-05 05:49 (UTC) by sng)

man page update

.\" Copyright (C) 2011 Ben Dowling <http://www.coderholic.com/pyradio>
.\" This manual is freely distributable under the terms of the GPL.
.\"
.TH PYRADIO 1 "November 2018"

.SH NAME
.PP
pyradio \- a console based Internet radio player

.SH SYNOPSIS
.PP
\fBpyradio\fR
.RI \fI[OPTIONS]
[path/to/]stations.csv

.SH DESCRIPTION
.PP
.B pyradio
is a command line internet radio player. 
.PP
It will use one of the following players: \fImpv\fR, \fImplayer\fR or \fIvlc\fR, detected in that order. If none of them is detected, \fBpyradio\fR will \fBsilently\ terminate\fR (use \fB-d\fR option to get a log file).
.PP
If \fImpv\fR is detected, \fIsocat\fR is required too.
.PP
It is possible to use 
a custom stations list in \fB~/.pyradio/stations.csv.
.PP
If custom stations list is missing, \fBpyradio\fR would use a 
default one.

.SH OPTIONS

.IP \fB-h\fR,\fB\ \--help            
Show this help message and exit.
.IP \fB-s\fR,\fB\ \--stations\ \fI[STATIONS]
Use specified station CSV file.
.IP \fB-p\fR,\fB\ \--play\ \fI\<PLAY\>
Play station number \fI\<PLAY\>\fR. Select randome station if \fI\<PLAY\>\fR not specified.
.IP \fB-r\fR,\fB\ \--random          
Start and play a random station.
.IP \fB-a\fR,\fB\ \--add             
Add station to list.
.IP \fB-l\fR,\fB\ \--list            
List of added stations.
.IP \fB-u\fR,\fB\ \--use-player\ \fI[USE_PLAYER]
Specify which player to use (\fImpv\fR,\ \fImplayer\fR\ or\ \fIcvlc\fR).
.IP \fB-d\fR,\fB\ \--debug           
Debug mode (pyradio.log created). To be attached with any bug report.

.SH CONTROLS

.IP \fB\Up/Down/PgUp/PgDown     
Change station selection
.IP \fBj/k
Change station selection (vi-like)
.IP \fBEnter                   
Play selected station
.IP \fB-/+                     
Change volume
.IP \fBv
Save volume (mpv and mplayer only)
.IP \fBm                       
Mute
.IP \fBr                       
Select and play a random station
.IP \fBSpace                   
Stop/start playing selected station
.IP \fBEsc/q                   
Quit

.SH FILES
.PP
.I /usr/share/doc/pyradio/stations.csv

.I /usr/share/doc/pyradio/README.md

.I /usr/share/licenses/pyradio/LICENSE

.SH AUTHOR
.PP
 \fBBen Dowling <http://www.coderholic.com/pyradio>
.PP
 The man page was written by \fBaksr <aksr at t-com dot me>\fR for Arch Linux.


Guybrusssh commented on 2018-08-07 11:56 (UTC) (edited on 2018-08-07 12:18 (UTC) by Guybrusssh)

@blacktav Ok I had to delete the .config/pyradio directory manually. It seems my csv file had some error. my fault, sorry. I had a filler line like this:"---- Country specific ----" this line was fine before but now it isn't. Removing the line from my old csv solved the problem. thx for your quick response.

blacktav commented on 2018-08-07 01:47 (UTC) (edited on 2018-08-07 01:49 (UTC) by blacktav)

@Guybrusssh: python3.7 is now the default python but pyradio was deployed under v3.6 so the package cannot be found. Remove pyradio-git and reinstall. If you used an aur tool like pikaur, make sure you clear its cache before reinstalling otherwise the old install into python3.6 will still be used.

Guybrusssh commented on 2018-08-06 19:14 (UTC)

doesn't run for me anymore I get the following error msg:

Traceback (most recent call last): File "/usr/bin/pyradio", line 11, in <module> load_entry_point('pyradio==0.5.2', 'console_scripts', 'pyradio')() File "/usr/lib/python3.7/site-packages/pyradio/main.py", line 89, in shell name, url = [s.strip() for s in row] ValueError: not enough values to unpack (expected 2, got 1)</module>

willemw commented on 2018-06-01 06:23 (UTC) (edited on 2018-06-01 07:22 (UTC) by willemw)

@aksr: Done.

willemw commented on 2018-05-31 06:03 (UTC)

@sng: Done.

sng commented on 2018-05-30 23:14 (UTC) (edited on 2018-05-30 23:56 (UTC) by sng)

Here I am again :)

I've got an update for the man page, pyradio.1

Here it is:

.\" Copyright (C) 2011 Ben Dowling <http://www.coderholic.com/pyradio>
.\" Copyright (C) 2012 aksr <aksr at t-com dot me>
.\" This manual is freely distributable under the terms of the GPL.
.\" It was originally written for Arch Linux (but may be used by
.\" others).
.\"
.TH PYRADIO 1 "May 2018"

.SH NAME
.PP
pyradio \- a console based Internet radio player

.SH SYNOPSIS
.PP
\fBpyradio\fR [path/to/]stations.csv

.SH DESCRIPTION
.PP
.B pyradio
is a command line internet radio player. 
.PP
It will use one of the following players: mpv, mplayer or vlc, detected in that order.
.PP
If mpv is detected, socat is required too.
.PP
It is possible to use 
a custom stations list in ~/.pyradio/stations.csv.
.PP
If custom stations list is missing, \fBpyradio\fR would use a 
default one.

.SH Controls

.IP \fB\Up/Down/PgUp/PgDown     
Change station selection
.IP \fBj/k
Change station selection (vi-like)
.IP \fBEnter                   
Play selected station
.IP \fB-/+                     
Change volume
.IP \fBv
Save volume (mpv and mplayer only)
.IP \fBm                       
Mute
.IP \fBr                       
Select and play a random station
.IP \fBSpace                   
Stop/start playing selected station
.IP \fBEsc/q                   
Quit

.SH FILES
.PP
.I /usr/share/doc/pyradio/stations.csv

.I /usr/share/doc/pyradio/README.md

.I /usr/share/licenses/pyradio/LICENSE

.SH AUTHOR
.PP
 \fBBen Dowling <http://www.coderholic.com/pyradio>
.PP
 The man page was written by \fBaksr <aksr at t-com dot me>\fR for Arch Linux.

willemw commented on 2018-05-29 16:18 (UTC)

@sng: Thanks. Optdepends has been updated.

sng commented on 2018-05-29 15:54 (UTC)

Hi again willemw I have taken some time with this and contributed a couple of features

BTW, I believe you should change the optional packages from

optdepends=('mplayer: as backend' 'vlc: as backend')

to something like

optdepends=('mplayer: as backend' 'vlc: as backend' 'mpv: as backend' 'socat: if mpv is used')

Regards, Spiros

willemw commented on 2018-05-16 05:58 (UTC)

@sng: Also make sure to update pyradio-git to the latest commit by reinstalling it.

sng commented on 2018-05-15 14:05 (UTC) (edited on 2018-05-15 14:41 (UTC) by sng)

Hi willemw, thanks for the answer

Well, there seems to be something strange going on...

I got the program installed using "sudo pip install pyradio" and i noticed that the station list is different than the one i get when installing through "yaort pyradio-git". Strange?

Also i noticed that using the "pip version" i don't get the error i mentioned in my previous message. Playback starts ok, no sound though - but that's another issue i'm looking into in git issues

Can you have a look?

EDIT:

Ok, it seems two different urls...

aur: https://github.com/coderholic/pyradio

pip: https://pypi.org/simple/pyradio/ [pyradio-0.5.2.tar.gz]

I think it's the same version, but clearly it's a different package...

EDIT2:

Filed an issue: https://github.com/coderholic/pyradio/issues/51

willemw commented on 2018-05-15 06:07 (UTC)

@sng:

Seems like an upstream issue. You may want to check the upstream issues and maybe report your issue there.

Issue https://github.com/coderholic/pyradio/issues/48 is MPV related and was recently closed. If you reinstall pyradio-git, you could check if your issue has already been fixed.

sng commented on 2018-05-14 22:24 (UTC) (edited on 2018-05-14 22:29 (UTC) by sng)

Hi all, i get an error when i play a station:

pyradio --play

rm: cannot remove '/tmp/mpvsocket': No such file or dorectory Traceback (most recent call last):

...

...

File "/usr/lib/python3.6/site-packages/pyradio/player.py", line 110, in _buildStartOpts

if "not found" not in out[0]:

TypeError: a bytes-like object is required, not 'str'

python --version

Python 3.6.5

After some googling, i made the following change:

File: /usr/lib/python3.6/site-packages/pyradio/player.py

Line: 110

Changed from:

if "not found" not in out[0]:

to:

if "not found" not in str(out[0]):

An now it works!!!

p1tt1 commented on 2015-11-09 08:00 (UTC)

new commit on github

willemw commented on 2015-10-02 06:06 (UTC)

@martynjy: it's an upstream issue: https://github.com/coderholic/pyradio/issues/31.

martynjy commented on 2015-10-01 22:31 (UTC)

Crashes after upgrade today python (3.4.3-3 -> 3.5.0-2) Traceback (most recent call last): File "/usr/bin/pyradio", line 9, in <module> load_entry_point('pyradio==0.5.2', 'console_scripts', 'pyradio')() File "/usr/lib/python3.5/site-packages/pyradio/main.py", line 78, in shell pyradio = PyRadio(stations, play=args.play) UnboundLocalError: local variable 'stations' referenced before assignment

willemw commented on 2013-08-21 18:37 (UTC)

@thoase: Thanks. Fixed (now all Python 3).

thoase commented on 2013-08-21 10:58 (UTC)

You need to have 'python-setuptools' installed to build pyradio-git.