mpd-album-art icon indicating copy to clipboard operation
mpd-album-art copied to clipboard

ImportError: cannot import name 'socket'

Open ghost opened this issue 7 years ago • 2 comments

Hey, not sure if this is even maintained anymore, but you have some issues with your imports.

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-571e48209bbb> in <module>()
----> 1 import mpd_album_art

/usr/lib/python3.6/site-packages/mpd_album_art.py in <module>()
     24 
     25 from pylast import LastFMNetwork, AlbumSearch
---> 26 from mpd import MPDClient, socket
     27 
     28 import os, sys

ImportError: cannot import name 'socket'

I just modified line 26 to be "from mpd import *" and it imports fine now.

Not sure how many problems this will cause though

Looking a bit closer, looks like the pip version is behind a bit. Your git version seems to be OK.

some minor spelling issues with the pip version.

ghost avatar Apr 07 '18 20:04 ghost

Thanks for raising the issue! I haven't used mpd for a while now actually, and so haven't maintained this. I might start using it again soon though.

sidequestboy avatar Apr 08 '18 19:04 sidequestboy

No problem! Thanks for making the code, let me know if I can be of any assistance, don't know a whole lot but I am glad to help.

ghost avatar Apr 08 '18 21:04 ghost