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

No module named 'mpv' #18

Closed
jamcmich opened this issue Jan 3, 2020 · 1 comment
Closed

No module named 'mpv' #18

jamcmich opened this issue Jan 3, 2020 · 1 comment

Comments

@jamcmich
Copy link

jamcmich commented Jan 3, 2020

Hi there,

I'm fairly new to Python so this could be a user error. After setting up a venv and installing the necessary dependencies for your application for Python3 via pip, I get this error when running the 'yterm' command:

Traceback (most recent call last):
  File "c:\users\jamcmich\appdata\local\programs\python\python38-32\lib\runpy.py", line 193, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\jamcmich\appdata\local\programs\python\python38-32\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\jamcmich\AppData\Local\Programs\Python\Python38-32\Scripts\yterm.exe\__main__.py", line 5, in <module>
  File "c:\users\jamcmich\appdata\local\programs\python\python38-32\lib\site-packages\yTermPlayer\__main__.py", line 11, in <module>
    from .music_api import YoutubePlayer
  File "c:\users\jamcmich\appdata\local\programs\python\python38-32\lib\site-packages\yTermPlayer\music_api.py", line 11, in <module>
    import mpv
ModuleNotFoundError: No module named 'mpv'

How can I resolve this?

@vaibkumr
Copy link
Owner

vaibkumr commented Jan 9, 2020

Hi,
This error is because of not properly installing python-mpv==0.3.9. Have you tried activating the virtual env and then install the dependencies? Maybe, do a pip install --user python-mpv==0.3.9. If this doesn't work, you might have to configure your python environment $PATH.
You also need to install the mpv package on your operating system.

EDIT2: I just noticed you're trying to run this on windows. I am sorry, ytermplayer isn't supported for windows yet. I will soon make a port to windows.

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

2 participants