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

mpv ModuleNotFoundError #35

Closed
rektdeckard opened this issue Apr 28, 2019 · 2 comments
Closed

mpv ModuleNotFoundError #35

rektdeckard opened this issue Apr 28, 2019 · 2 comments

Comments

@rektdeckard
Copy link

I have mpv and libmpv1 installed and can play audio with it directly, but trying to play a file from within castero crashes with the following error:

Traceback (most recent call last):
  File "/usr/local/bin/castero", line 6, in <module>
    from castero.__main__ import main usr/local/lib/python3.5/dist-packages/castero/__main__.py", line 79, in <module> main()
  File "/usr/local/lib/python3.5/dist-packages/castero/__main__.py", line 74, in main
    running = display.handle_input(char)
  File "/usr/local/lib/python3.5/dist-packages/castero/display.py", line 439, in handle_input
    return self._get_active_perspective().handle_input(c)
  File "/usr/local/lib/python3.5/dist-packages/castero/perspectives/primaryperspective.py", line 157, in handle_input
    self._create_player_from_selected()
  File "/usr/local/lib/python3.5/dist-packages/castero/perspectives/primaryperspective.py", line 261, in _create_player_from_selected
    episode.get_playable(), episode)
  File "/usr/local/lib/python3.5/dist-packages/castero/player.py", line 94, in create_instance
    available_players[av_player].check_dependencies()
  File "/usr/local/lib/python3.5/dist-packages/castero/players/mpvplayer.py", line 31, in check_dependencies
    ModuleNotFoundError): NameError: name 'ModuleNotFoundError' is not defined

It looks like castero doesn't know how to find mpv. How can I fix this?

@xgi xgi closed this as completed in 6839c24 Apr 28, 2019
@xgi
Copy link
Owner

xgi commented Apr 28, 2019

I don't think this was actually caused by a load error, it was just because the ModuleNotFoundError didn't exist in Python 3.5. I've removed it as of 6839c24 since it was covered with an ImportError check anyway.

However, that may be indicative of an actual load error occurring. Feel free to reopen this issue if so.

Thanks!

@capaldo
Copy link

capaldo commented Jun 2, 2019

I'm having this issue still on macOS with python-vlc, mpv etc installed.

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

3 participants