radiotray does not work

Non release banter
Kulle
Warlord
Warlord
Posts: 598
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

radiotray does not work

Post#1 by Kulle » 14 Feb 2019, 15:59

I used usm and generated radiotray-0.7.3-x86_64-2_slonly.xzm
But it does not work.
Run in terminal:
Traceback (most recent call last):
File "/usr/bin/radiotray", line 12, in <module>
os.chdir(workdir)
OSError: [Errno 2] No such file or directory: '/usr/bin/src'

who can help?
many thanks.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3933
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Re: radiotray does not work

Post#2 by ncmprhnsbl » 14 Feb 2019, 22:13

does the module include these deps: ?
https://slackonly.com/pub/packages/curr ... slonly.dep
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Kulle
Warlord
Warlord
Posts: 598
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Re: radiotray does not work

Post#3 by Kulle » 15 Feb 2019, 08:53

Hi ncmprhnsbl,
How can I determine if these dependencies are missing?
And how can I add these?
Many Thanks

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3933
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Re: radiotray does not work

Post#4 by ncmprhnsbl » 15 Feb 2019, 10:03

actually for the 14.2 package you're using, these are the deps:
https://slackonly.com/pub/packages/14.2 ... slonly.dep

Code: Select all

gst0-ffmpeg
opencore-amr
twolame
lame
libmpeg2
x264
gst0-plugins-ugly
gst0-python
BeautifulSoup4
python-webencodings
python3
six
html5lib
lxml
pyxdg
(doesn't seem very lightweight :p)
Kulle wrote:
15 Feb 2019, 08:53
How can I determine if these dependencies are missing?

Code: Select all

ls /mnt/live/memory/images/radiotray-0.7.3-x86_64-2_slonly.xzm/var/log/packages
Kulle wrote:
15 Feb 2019, 08:53
And how can I add these?
should be able to get them via usm..(they should be all in the slackonly repo)
Last edited by ncmprhnsbl on 17 Feb 2019, 01:57, edited 1 time in total.
Reason: fixed typo
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Kulle
Warlord
Warlord
Posts: 598
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Re: radiotray does not work

Post#5 by Kulle » 15 Feb 2019, 15:44

Result of the ls command:

Code: Select all

guest@porteus:~$ ls /mnt/live/memory/images/radiotray-0.7.3-x86_64-2_slonly.xzm/var/log/packages
radiotray-0.7.3-x86_64-2_slonly
And what do I have to load now additionally.
I have no experience in loading missing library programs.
In Porteus this seems to be very difficult

User avatar
Ed_P
Contributor
Contributor
Posts: 8360
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: radiotray does not work

Post#6 by Ed_P » 15 Feb 2019, 16:04

Kulle wrote:
15 Feb 2019, 15:44

Code: Select all

ls /mnt/live/memory/images/radiotray-0.7.3-x86_64-2_slonly.xzm/var/log/packages
Do note the command line difference.
ncmprhnsbl wrote:
15 Feb 2019, 10:03

Code: Select all

ls /mnt/live/memory/images/radiotray-0.7.3-x86_64-2_slonly.xzm/varlog/packages
;)

Retry the command and loading missing library programs is not that hard. :)
Ed

Kulle
Warlord
Warlord
Posts: 598
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Re: radiotray does not work

Post#7 by Kulle » 16 Feb 2019, 09:02

Hi Ed_P
run in terminal:

Code: Select all

guest@porteus:~$ radiotray 
Traceback (most recent call last):
  File "/usr/bin/radiotray", line 12, in <module>
    os.chdir(workdir)
OSError: [Errno 2] No such file or directory: '/usr/bin/src'
guest@porteus:~$ ls /mnt/live/memory/images/radiotray-0.7.3-x86_64-2_slonly.xzm/varlog/packages
/bin/ls: cannot access '/mnt/live/memory/images/radiotray-0.7.3-x86_64-2_slonly.xzm/varlog/packages': No such file or directory
And now??

Kulle
Warlord
Warlord
Posts: 598
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Re: radiotray does not work

Post#8 by Kulle » 16 Feb 2019, 09:13

Addendum:

Code: Select all

guest@porteus:/mnt/live/memory/images/radiotray-0.7.3-x86_64-2_slonly.xzm$ ls
usr/  var/
Only usr and var exist.

Kulle
Warlord
Warlord
Posts: 598
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Re: radiotray does not work

Post#9 by Kulle » 16 Feb 2019, 12:17

I have tried also
radiotray-0.7.3-x86_64-2rl.txz was found in salix
But the same error:

Code: Select all

guest@porteus:~$ radiotray 
Traceback (most recent call last):
  File "/usr/bin/radiotray", line 12, in <module>
    os.chdir(workdir)
OSError: [Errno 2] No such file or directory: '/usr/bin/src'
guest@porteus:~$ ls /mnt/live/memory/images/radiotray-0.7.3-x86_64-2_rl.xzm/varlog/packages
/bin/ls: cannot access '/mnt/live/memory/images/radiotray-0.7.3-x86_64-2_rl.xzm/varlog/packages': No such file or directory
what is the reason?

Kulle
Warlord
Warlord
Posts: 598
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Re: radiotray does not work

Post#10 by Kulle » 16 Feb 2019, 15:11

I have now found out:
For all xzm modules the directory varlog/packages does not exist.
For example:

Code: Select all

guest@porteus:~$ /mnt/live/memory/images/06-abiword.xzm/varlog/packages
bash: /mnt/live/memory/images/06-abiword.xzm/varlog/packages: No such file or directory
Can someone help?

User avatar
Ed_P
Contributor
Contributor
Posts: 8360
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: radiotray does not work

Post#11 by Ed_P » 16 Feb 2019, 16:38

You're doing the command wrong. /var/log/ not /varlog

Try it like this. This is my firefox module.

Code: Select all

guest@porteus:~$ ls /mnt/live/memory/images/firefox*.xzm
usr/  var/
guest@porteus:~$ ls /mnt/live/memory/images/firefox*.xzm/var
log/
guest@porteus:~$ ls /mnt/live/memory/images/firefox*.xzm/var/log
packages/  removed_packages/  removed_scripts/  scripts/  setup/
guest@porteus:~$ ls /mnt/live/memory/images/firefox*.xzm/var/log/packages
firefox-60.5.0esr-x86_64-1
guest@porteus:~$ cat /mnt/live/memory/images/firefox*.xzm/var/log/packages/*
PACKAGE NAME:     firefox-60.5.0esr-x86_64-1
COMPRESSED PACKAGE SIZE:     42M
UNCOMPRESSED PACKAGE SIZE:     147M
PACKAGE LOCATION: /tmp/firefox-60.5.0esr-x86_64-1.txz
PACKAGE DESCRIPTION:
FILE LIST:
./
install/
install/doinst.sh
install/slack-desc
usr/
usr/bin/
usr/lib64/
usr/lib64/firefox-60.5.0esr/
usr/lib64/firefox-60.5.0esr/Throbber-small.gif
usr/lib64/firefox-60.5.0esr/application.ini
  :
  :
  :
Ed

Kulle
Warlord
Warlord
Posts: 598
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Re: radiotray does not work

Post#12 by Kulle » 17 Feb 2019, 09:36

Hi ED_P
I had already entered the command correctly (see #5 above)
I have now created the module gst0-ffmpeg-0.10.13-x86_64-bundle.xzm:

Code: Select all

root@porteus:/home/guest# usm -g gst0-ffmpeg-0.10.13-x86_64-1_slonly.txz
find: `/tmp/xdg-runtime-guest/gvfs': Permission denied

 The following items were found.
 Choose an number to confirm. 
 ctrl+c to quit

1) gst0-ffmpeg-0.10.13-x86_64-1_slonly.txz
#? 1

Processing:   gst0-ffmpeg-0.10.13-x86_64-1_slonly.txz 
Ignored libraries: 

Libraries required:  20
Libraries found in system: 14
Libraries to resolve: 6

Processing library: libgstaudio-0.10.so.0
Processing library: libgstbase-0.10.so.0

 More than one package contains:  libgstbase-0.10.so.0
gstreamer0-0.10.36-x86_64-1.txz          1336K   slackware
insync-1.3.12.36116-x86_64-1_slonly.txz  33840K  slackonly

 The following items were found.
 Choose an number to confirm. 
 ctrl+c to quit

1) gstreamer0-0.10.36-x86_64-1.txz
2) insync-1.3.12.36116-x86_64-1_slonly.txz
#? 1
Processing library: libgstinterfaces-0.10.so.0
Processing library: libgstpbutils-0.10.so.0
Processing library: libgstreamer-0.10.so.0
Processing library: libgstvideo-0.10.so.0


Processing:   gst-plugins-base0-0.10.36-x86_64-2.txz 
Ignored libraries: 

Libraries required:  43
Libraries found in system: 30
Libraries to resolve: 13

Processing library: libgstapp-0.10.so.0
Processing library: libgstaudio-0.10.so.0
Processing library: libgstbase-0.10.so.0
Processing library: libgstcdda-0.10.so.0
Processing library: libgstcontroller-0.10.so.0
Processing library: libgstdataprotocol-0.10.so.0
Processing library: libgstinterfaces-0.10.so.0
Processing library: libgstpbutils-0.10.so.0
Processing library: libgstreamer-0.10.so.0
Processing library: libgstriff-0.10.so.0
Processing library: libgsttag-0.10.so.0
Processing library: libgstvideo-0.10.so.0
Processing library: libvisual-0.4.so.0


Processing:   gstreamer0-0.10.36-x86_64-1.txz 
Ignored libraries: 

Libraries required:  11
Libraries found in system: 9
Libraries to resolve: 2

Processing library: libgstbase-0.10.so.0
Processing library: libgstreamer-0.10.so.0


Processing:   libvisual-0.4.0-x86_64-3.txz 
Ignored libraries: 

Libraries required:  3
Libraries found in system: 3
Libraries to resolve: 0



 The following packages are required. 
gst-plugins-base0-0.10.36-x86_64-2.txz [1332K] [not installed]
gst0-ffmpeg-0.10.13-x86_64-1_slonly.txz [2584K] [not installed]
gstreamer0-0.10.36-x86_64-1.txz [1336K] [not installed]
libvisual-0.4.0-x86_64-3.txz [128K] [not installed]

Total size: 5 MB

 Multiple packages were detected.
 Would you like to merge the packages into one module? [y/n]

 Press [r] to remove packages, [q] to quit, or enter to start downloading.
Downloading: gst-plugins-base0-0.10.36-x86_64-2.txz  DONE
Downloading: gst0-ffmpeg-0.10.13-x86_64-1_slonly.txz  DONE
Downloading: gstreamer0-0.10.36-x86_64-1.txz  DONE
Downloading: libvisual-0.4.0-x86_64-3.txz  DONE
gst-plugins-base0-0.10.36-x86_64-2: gst-plugins-base base set of GStream [12M] 
gst0-ffmpeg-0.10.13-x86_64-1_slonly: A GStreamer 0.10.x FFmpeg plugin .. [7.0M]
gstreamer0-0.10.36-x86_64-1: GStreamer streaming multimedia framework, v [14M] 
libvisual-0.4.0-x86_64-3: audio visualization library .................. [570K]
Parallel mksquashfs: Using 4 processors
Creating 4.0 filesystem on /tmp/usm/gst0-ffmpeg-0.10.13-x86_64-bundle.xzm, block size 262144.
[===============================================================-] 894/894 100%

Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
	compressed data, compressed metadata, compressed fragments, compressed xattrs
	duplicates are removed
Filesystem size 5960.39 Kbytes (5.82 Mbytes)
	18.78% of uncompressed filesystem size (31729.72 Kbytes)
Inode table size 8082 bytes (7.89 Kbytes)
	23.72% of uncompressed inode table size (34066 bytes)
Directory table size 9580 bytes (9.36 Kbytes)
	31.35% of uncompressed directory table size (30554 bytes)
Number of duplicate files found 30
Number of inodes 1034
Number of files 850
Number of fragments 87
Number of symbolic links  40
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 144
Number of ids (unique uids + gids) 1
Number of uids 1
	root (0)
Number of gids 1
	root (0)
Quiet mode: off
Updating shared library links:  /sbin/ldconfig

/tmp/usm/gst0-ffmpeg-0.10.13-x86_64-bundle.xzm is ready.
There are 14 more dependencies !! (see #4 above)
I would still have to create these 14 modules.
That is extremely time consuming.
Is there a simpler method?
Thank you.

User avatar
Ed_P
Contributor
Contributor
Posts: 8360
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: radiotray does not work

Post#13 by Ed_P » 17 Feb 2019, 14:27

I'll have ncmprhnsbl follow up with you on this. :)
Ed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3933
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Re: radiotray does not work

Post#14 by ncmprhnsbl » 18 Feb 2019, 02:20

Kulle wrote:
17 Feb 2019, 09:36
That is extremely time consuming.
Is there a simpler method?
i don't know about simpler .. but .. you can:
edit /etc/usm/usm.conf line 81 (or thereabouts)

Code: Select all

# Convert all slackware packages that are downloaded
# to porteus modules.
MODULES=false
which will give you packages..
unfortunately, usm doesn't appear to handle more than one package(and it's deps) at a time, so it still labourius..
but if you persist, you should end up with a bunch of packages in tmp(or thereabouts)
put them all in one folder(in /tmp)(call it for this example "pkgs") and run(as root, one at a time):

Code: Select all

mkdir /tmp/build
ROOT=/tmp/build installpkg /tmp/pkgs/*
dir2xzm /tmp/build /tmp/radio-tray-deps.xzm
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: radiotray does not work

Post#15 by francois » 18 Feb 2019, 03:31

Other solutions on the porteus forum:
Best Radio Streaming App To Convert
Prendre son temps, profiter de celui qui passe.

Post Reply