gmusic-playlist icon indicating copy to clipboard operation
gmusic-playlist copied to clipboard

ImportError: No module named Crypto.PublicKey

Open rlopin opened this issue 9 years ago • 2 comments

Steps I have followed:

  1. On my Windows 7 laptop I installed Python 2.7.11.
  2. Downloaded the gmusicplayer zip and extracted it into my downloads folder.
  3. Downloaded the gmusicapi zip, extracted it into my downloads folder, then copied the extracted folder to the gmusicapi folder. (I am a newbie and thought gmusicapi files had to be in the same folder as gmusicplayer to be recognized. Later I learned that I needed to install gmusicapi first)
  4. Installed gmusic api with the following command via a windows command prompt (start-->run-->cmd). C:\Users\rlopin\Downloads\gmusic-playlist-master\gmusic-playlist-master>c:\python27\python.exe setup.py install
  5. Updated the preferences.py file to include my google user name and changed the delimiter to the pipe character to match the delimiter of the playlist file I created prior to step 1.
  6. Ran the ImportList.py: C:\Users\rlopin\Downloads\gmusic-playlist-master\gmusic-playlist-master>c:\python27\python.exe ImportList.py "Rob's Dance Playlist.txt"

This is the resulting error: ImportError: No module named Crypto.PublicKey

Where do I find this module and how to I install it?

rlopin avatar Dec 13 '15 17:12 rlopin

for windows I had to switch to using the python that comes with cygwin (https://www.cygwin.com/) because I was getting the same error (or similar one) and I couldn't get the crypto or related dependencies to compile.

hope that you can get it figured out. python can be a bit tricky to get going. if you don't get things going and can hold out for another week or so I'm working on a different version of gmusic-playlist that doesn't depend on python.

soulfx avatar Dec 14 '15 05:12 soulfx

the javascript version has been posted to https://github.com/soulfx/gmusic-playlist.js

soulfx avatar Jan 01 '16 20:01 soulfx