Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in Mac OSX #17

Closed
marcoslhc opened this issue Oct 26, 2013 · 8 comments
Closed

Problem in Mac OSX #17

marcoslhc opened this issue Oct 26, 2013 · 8 comments

Comments

@marcoslhc
Copy link

I tried to run the script but I get this exception:

    Traceback (most recent call last):
      File "/usr/local/bin/pyradio", line 8, in <module>
        load_entry_point('pyradio==0.5.2', 'console_scripts', 'pyradio')()
      File "/Library/Python/2.7/site-packages/pyradio/main.py", line 54, in shell
        curses.wrapper(pyradio.setup)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/curses/wrapper.py", line 43, in wrapper
        return func(stdscr, *args, **kwds)
       File "/Library/Python/2.7/site-packages/pyradio/radio.py", line 56, in setup
        self.player = player.probePlayer()(self.log)
     TypeError: 'NoneType' object is not callable

I'm running OSX Maverics with python 2.7 and vlc 2.10.0
I think pyradio doesn't find the player

@marcoslhc
Copy link
Author

I found a workaround. I didn't have the NoX version of vlc (which install cvlc) so I had to use the full application path for VLC

marcoslhc@5accdd5#diff-a4d84050d90f72672490814ceb702447

I've tried using an alias to /Applications/VLC.app/Contents/MacOS/VLC but it didn't work

I see theres two possible solutions:

  1. Describe in the documentation the necessary steps to get it running. That is: "install a NoX version of VLC".
  2. Add an additional step in the VlcPlayer class verifying the installed VLC or environment (OS) and choosing the right option.

@stac47
Copy link
Contributor

stac47 commented Jan 18, 2014

Hello Marco,

I investigated this issue. You perfectly right, we should add something in the documentation. But to solve your issue, you don't need to modify the source code.

You should simply create a symlink to the installed VLC on Mac OS X (and have it in your path).

I did the test knowing I have "~/bin" in my PATH.

cd ~/bin
 ln -s /Applications/VLC.app/Contents/MacOS/VLC cvlc

Regards,
Laurent

stac47 added a commit to stac47/pyradio that referenced this issue Jan 18, 2014
@marcoslhc
Copy link
Author

​Wow, talking about the simplest solution :) thanks!​

Saludos…

MLH

Valencia - Venezuela

[phone]: +58-241-615.36.54 / +58-241-614.13.73

https://www.google.com/profiles/marcoslhc*

On Sat, Jan 18, 2014 at 10:40 AM, stac47 notifications@github.com wrote:

Hello Marco,

I investigated this issue. You perfectly right, we should add something in
the documentation. But to solve your issue, you don't need to modify the
source code.

You should simply create a symlink to the installed VLC on Mac OS X (and
have it in your path).

I did the test knowing I have "~/bin" in my PATH.

cd ~/bin
ln -s /Applications/VLC.app/Contents/MacOS/VLC cvlc

Regards,
Laurent


Reply to this email directly or view it on GitHubhttps://github.com//issues/17#issuecomment-32683317
.

@stac47
Copy link
Contributor

stac47 commented Jan 19, 2014

You're welcome !
Stac

coderholic added a commit that referenced this issue Jan 21, 2014
marcoslhc added a commit to marcoslhc/pyradio that referenced this issue Jan 25, 2014
@moeabdol
Copy link

moeabdol commented Dec 2, 2015

I followed the suggested fix, and it worked; however, I can see the list of radio stations but can't seem to play any of them....I get "No handlers could be found for logger 'pyradio.player'"
any help please.

@jottr
Copy link

jottr commented Apr 27, 2017

@coderholic I am seeing the same error message as @moeabdol:

No handlers could be found for logger "pyradio.player"

I have both mplayer and cvlc installed and available in my PATH:

$ which mplayer
/usr/local/bin/mplayer

$ which cvlc
/Users/jottr/.bin/cvlc

@coderholic
Copy link
Owner

@jottr It sounds like a logging issue, rather than an issue with finding a player. What version of python are you using? Here's the logger related code: https://github.com/coderholic/pyradio/search?utf8=%E2%9C%93&q=logger&type=

@jottr
Copy link

jottr commented Apr 28, 2017

It seems my issue was caused by my python environment (using pyenv).
Reinstalling pyradio fixed it for me.

@s-n-g s-n-g closed this as completed Jul 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants