gavinlaking / playa Goto Github PK
View Code? Open in Web Editor NEWPlays mp3s from a directory. An example app using Vedeu.
License: MIT License
Plays mp3s from a directory. An example app using Vedeu.
License: MIT License
Playa sequentially opens each file in the directory to extract the ID3 tag information for the track collection database. With large directories this causes Playa to fail with Errno::EMFILE Too many open files @ rb_sysopen
.
Need to look into:
I followed your installation instructions and when I tried using the gem I got:
>: playa
-bash: playa: command not found
This is after restarting the terminal.
gem list playa
outputs:
playa (0.0.12)
undefined method `iso8601' for 2014-08-19 13:36:14 UTC:Time
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/api/log.rb:9:in `block (2 levels) in logger'
/home/mmior/.dotfiles/ruby/rvm.symlink/rubies/ruby-2.1.2/lib/ruby/2.1.0/logger.rb:491:in `call'
/home/mmior/.dotfiles/ruby/rvm.symlink/rubies/ruby-2.1.2/lib/ruby/2.1.0/logger.rb:491:in `format_message'
/home/mmior/.dotfiles/ruby/rvm.symlink/rubies/ruby-2.1.2/lib/ruby/2.1.0/logger.rb:379:in `add'
/home/mmior/.dotfiles/ruby/rvm.symlink/rubies/ruby-2.1.2/lib/ruby/2.1.0/logger.rb:400:in `debug'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/api/api.rb:33:in `log'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/api/api.rb:9:in `block (2 levels) in events'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/api/events.rb:33:in `call'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/api/events.rb:33:in `block in trigger'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/api/events.rb:33:in `each'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/api/events.rb:33:in `trigger'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/api/api.rb:37:in `trigger'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/api/api.rb:28:in `keypress'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/api/api.rb:14:in `block (2 levels) in events'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/api/events.rb:33:in `call'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/api/events.rb:33:in `block in trigger'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/api/events.rb:33:in `each'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/api/events.rb:33:in `trigger'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/api/api.rb:37:in `trigger'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/support/input.rb:10:in `capture'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/support/input.rb:4:in `capture'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/application.rb:38:in `main_sequence'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/application.rb:19:in `block (2 levels) in start'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/application.rb:29:in `block in runner'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/application.rb:46:in `block in interactive'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/application.rb:46:in `loop'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/application.rb:46:in `interactive'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/application.rb:29:in `runner'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/application.rb:19:in `block in start'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/support/terminal.rb:10:in `block (2 levels) in open'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/support/terminal.rb:45:in `initialize_screen'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/support/terminal.rb:10:in `block in open'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/support/terminal.rb:10:in `raw'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/support/terminal.rb:10:in `open'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/application.rb:14:in `start'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/application.rb:6:in `start'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/vedeu-0.1.14/lib/vedeu/launcher.rb:18:in `execute!'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/playa-0.0.12/lib/playa.rb:57:in `start'
/u1/mmior/.rvm/gems/ruby-2.1.2/gems/playa-0.0.12/bin/playa:15:in `<top (required)>'
/u1/mmior/.rvm/gems/ruby-2.1.2/bin/playa:23:in `load'
/u1/mmior/.rvm/gems/ruby-2.1.2/bin/playa:23:in `<main>'
/u1/mmior/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
/u1/mmior/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'
If the mp3 file does not have ID3 tags, then the output will not be brilliant.
In particular, the track title will be the filename- including the path. (Yuck.)
00:13ruby /home/me/.rvm/gems/ruby-2.2.1/bin/playa: symbol lookup error: /home/me/.rvm/gems/ruby-2.2.1/gems/audite-0.3.0/lib/portaudio.so: undefined symbol: rb_thread_blocking_region
Ubuntu 15.04
Hi,
When trying to start playback of a song I get:
/home/felix/.rvm/gems/ruby-2.2.2/bin/playa /media/felix/data/music/Anugama: symbol lookup error: /home/felix/.rvm/gems/ruby-2.2.2/gems/audite-0.3.0/lib/portaudio.so: undefined symbol: rb_thread_blocking_region
Setup is a ubuntu 14.04 amd64 machine, ruby 2.2.2 via rvm.
I did install the package listed in the README.
Have fun
Felix
I am on ruby version 2.2.2
and I am trying to run the playa
executable. I am able to see the start up screen but as soon as a hit <enter>
it gives me:
lazy symbol binding failed: Symbol not found: _rb_thread_blocking_region
Any ideas please?
Updating to 0.1.17 seems to fix the crash (a NameError in the code)
$ playa
$HOME/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/vedeu-0.1.16/lib/vedeu/support/groups.rb:48:in `block in in_memory': uninitialized constant Vedeu::Groups::Set (NameError)
from $HOME/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/vedeu-0.1.16/lib/vedeu/support/groups.rb:27:in `yield'
from $HOME/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/vedeu-0.1.16/lib/vedeu/support/groups.rb:27:in `add'
from $HOME/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/vedeu-0.1.16/lib/vedeu/support/buffers.rb:11:in `create'
from $HOME/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/vedeu-0.1.16/lib/vedeu/api/interface.rb:22:in `define'
from $HOME/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/vedeu-0.1.16/lib/vedeu/api/interface.rb:10:in `define'
from $HOME/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/vedeu-0.1.16/lib/vedeu/api/api.rb:87:in `interface'
from $HOME/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/playa-0.0.13/lib/playa/application.rb:5:in `<class:Application>'
from $HOME/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/playa-0.0.13/lib/playa/application.rb:2:in `<module:Playa>'
from $HOME/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/playa-0.0.13/lib/playa/application.rb:1:in `<top (required)>'
from $HOME/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require'
from $HOME/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require'
from $HOME/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/playa-0.0.13/lib/playa.rb:19:in `<top (required)>'
from $HOME/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require'
from $HOME/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require'
from $HOME/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/playa-0.0.13/bin/playa:9:in `<top (required)>'
from $HOME/.rbenv/versions/2.0.0-p353/bin/playa:23:in `load'
from $HOME/.rbenv/versions/2.0.0-p353/bin/playa:23:in `<main>'
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:947:(find_matching_chmap) Found no matching channel map
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.