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

AttributeError: 'mpv' object has no attribute 'mpv_usesock' (Windows) #825

Closed
elig0n opened this issue Apr 27, 2018 · 3 comments · Fixed by #1027
Closed

AttributeError: 'mpv' object has no attribute 'mpv_usesock' (Windows) #825

elig0n opened this issue Apr 27, 2018 · 3 comments · Fixed by #1027

Comments

@elig0n
Copy link

elig0n commented Apr 27, 2018

When trying to play a selection using mpsyt 0.2.8 (git) on windows and latest mpv

Traceback (most recent call last):
  File "mpsyt", line 3, in <module>
    mps_youtube.main.main()
  File "D:\GitHub\mps-youtube\mps_youtube\main.py", line 152, in main
    if matchfunction(i.function, i.regex, userinput):
  File "D:\GitHub\mps-youtube\mps_youtube\main.py", line 69, in matchfunction
    func(*matches)
  File "D:\GitHub\mps-youtube\mps_youtube\commands\play.py", line 103, in play
    g.PLAYER_OBJ.play(songlist, shuffle, repeat, override)
  File "D:\GitHub\mps-youtube\mps_youtube\player.py", line 71, in play
    self._playsong()
  File "D:\GitHub\mps-youtube\mps_youtube\player.py", line 133, in _playsong
    self._launch_player()
  File "D:\GitHub\mps-youtube\mps_youtube\player.py", line 277, in _launch_player
    cmd = self._generate_real_playerargs()
  File "D:\GitHub\mps-youtube\mps_youtube\players\mpv.py", line 90, in _generate_real_playerargs
    if self.mpv_usesock:
AttributeError: 'mpv' object has no attribute 'mpv_usesock'
@novia713
Copy link

novia713 commented Apr 1, 2020

me having this problem :-/

@tigerjack
Copy link

tigerjack commented May 1, 2020

me having this problem :-/

Same here, but manually applying the fix of the referenced commit solved the issue.

@GokulNC
Copy link

GokulNC commented Aug 3, 2020

The issue still persists even in the latest develop branch.

I had to go to C:\Program Files\Python38\Lib\site-packages\mps_youtube\players and manually add a default self.mpv_usesock = "" in the mpv class.

@mps-youtube Please fix this, such that even if mswin is True, set the above string as empty

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

Successfully merging a pull request may close this issue.

4 participants