Code Monkey home page Code Monkey logo

pandora-to-google-music's People

Contributors

nickwareing avatar rupert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pandora-to-google-music's Issues

object has no attribute 'PROTOCOL_SSLv3'

(venv) [me@pc ~]$ python2 pandora_to_google_music.py
Traceback (most recent call last):
  File "pandora_to_google_music.py", line 8, in <module>
    import requests
  File "/usr/lib/python2.7/site-packages/requests/__init__.py", line 53, in <module>
    from .packages.urllib3.contrib import pyopenssl
  File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 73, in <module>
    ssl.PROTOCOL_SSLv3: OpenSSL.SSL.SSLv3_METHOD,
AttributeError: 'module' object has no attribute 'PROTOCOL_SSLv3'

SyntaxError: Missing parentheses in call to 'print'

Did everything as instructed. Using Fedora 25.

(venv) [11:50:07] rolle pandora-to-google-music $ pip --version
pip 9.0.1 from /home/rolle/pandora-to-google-music/venv/lib/python3.5/site-packages (python 3.5)
(venv) [11:50:48] rolle pandora-to-google-music $ python --version
Python 3.5.4
(venv) [11:49:53] rolle pandora-to-google-music $ pip install -r requirements.txt
Collecting Unidecode==0.04.16 (from -r requirements.txt (line 1))
  Using cached Unidecode-0.04.16.tar.gz
Collecting appdirs==1.4.0 (from -r requirements.txt (line 2))
  Using cached appdirs-1.4.0-py2.py3-none-any.whl
Collecting decorator==3.4.0 (from -r requirements.txt (line 3))
  Using cached decorator-3.4.0.tar.gz
Collecting gmusicapi from git+git://github.com/simon-weber/gmusicapi.git#egg=gmusicapi (from -r requirements.txt (line 4))
  Cloning git://github.com/simon-weber/gmusicapi.git to /tmp/pip-build-vpudxqu7/gmusicapi
Collecting httplib2==0.9 (from -r requirements.txt (line 5))
  Using cached httplib2-0.9.zip
Collecting lxml==3.4.0 (from -r requirements.txt (line 6))
  Using cached lxml-3.4.0.tar.gz
Collecting mock==1.0.1 (from -r requirements.txt (line 7))
  Using cached mock-1.0.1.zip
Collecting mutagen==1.24 (from -r requirements.txt (line 8))
  Using cached mutagen-1.24.tar.gz
Collecting oauth2client==1.2 (from -r requirements.txt (line 9))
  Using cached oauth2client-1.2.zip
Collecting proboscis==1.2.6.0 (from -r requirements.txt (line 10))
  Using cached proboscis-1.2.6.0.tar.gz
Collecting protobuf==2.6.0 (from -r requirements.txt (line 11))
  Using cached protobuf-2.6.0.tar.gz
Collecting python-dateutil==2.2 (from -r requirements.txt (line 12))
  Using cached python-dateutil-2.2.tar.gz
Collecting requests==2.10.0 (from -r requirements.txt (line 13))
  Using cached requests-2.10.0-py2.py3-none-any.whl
Collecting six==1.10.0 (from -r requirements.txt (line 14))
  Using cached six-1.10.0-py2.py3-none-any.whl
Collecting termcolor==1.1.0 (from -r requirements.txt (line 15))
  Using cached termcolor-1.1.0.tar.gz
Collecting validictory==0.9.3 (from -r requirements.txt (line 16))
  Using cached validictory-0.9.3.tar.gz
Collecting wsgiref==0.1.2 (from -r requirements.txt (line 17))
  Using cached wsgiref-0.1.2.zip
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-vpudxqu7/wsgiref/setup.py", line 5, in <module>
        import ez_setup
      File "/tmp/pip-build-vpudxqu7/wsgiref/ez_setup/__init__.py", line 170
        print "Setuptools version",version,"or greater has been installed."
                                 ^
    SyntaxError: Missing parentheses in call to 'print'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-vpudxqu7/wsgiref/

How to resolve?

Login Arguments

This may be a version thing with a newer gmusicapi, but if you try to run this with the current version, you get this error.
File "pandora_to_google_music.py", line 387, in
main()
File "pandora_to_google_music.py", line 383, in main
gmusic_password
File "pandora_to_google_music.py", line 328, in pandora_to_google_music
gmusic_client.login(gmusic_email, gmusic_password)
TypeError: login() takes exactly 4 arguments (3 given)

Cannot run under Windows

I was able to get all of the dependencies installed, but I get the following error when running the script. Any ideas?

C:\pandora-to-google-music-master>python pandora_to_google
_music.py
Traceback (most recent call last):
File "pandora_to_google_music.py", line 9, in
from gmusicapi import Mobileclient
ImportError: cannot import name Mobileclient

Playlists in GPM are empty

I have used this tool once before and it worked perfectly. When I attempted this time i was getting some syntax errors that led me to updating to tensorflow 0.5 which helped everything get going. At first it failed with a "Too many Items" error and it emptied out my playlists from before. I thought I was running into an issue of too many songs in a playlist, and I am not sure if this script was capable of avoiding duplicates.

I deleted all the Pandora based playlists and started the script again, it ran fine for what I can see but it created the blank playlists again.
pandora rupert

Traceback on running

Running it on Amazon Linux (Cent/Redhat derivative) in case it's relevant. Maybe related to Pandora overhauling their interface recently?

python pandora-to-google-music/pandora_to_google_music.py Traceback (most recent call last): File "pandora-to-google-music/pandora_to_google_music.py", line 9, in <module> from gmusicapi import Mobileclient File "/root/venv/local/lib/python2.7/site-packages/gmusicapi/__init__.py", line 4, in <module> from gmusicapi.clients import Webclient, Musicmanager, Mobileclient File "/root/venv/local/lib/python2.7/site-packages/gmusicapi/clients/__init__.py", line 5, in <module> from gmusicapi.clients.musicmanager import Musicmanager, OAUTH_FILEPATH File "/root/venv/local/lib/python2.7/site-packages/gmusicapi/clients/musicmanager.py", line 27, in <module> from gmusicapi.protocol import musicmanager, upload_pb2, locker_pb2 File "/root/venv/local/lib/python2.7/site-packages/gmusicapi/protocol/musicmanager.py", line 24, in <module> from gmusicapi.protocol import upload_pb2, locker_pb2, download_pb2 File "/root/venv/local/lib/python2.7/site-packages/gmusicapi/protocol/upload_pb2.py", line 16, in <module> from . import locker_pb2 as locker__pb2 File "/root/venv/local/lib/python2.7/site-packages/gmusicapi/protocol/locker_pb2.py", line 16, in <module> from . import uits_pb2 as uits__pb2 File "/root/venv/local/lib/python2.7/site-packages/gmusicapi/protocol/uits_pb2.py", line 22, in <module> \x12\x32\n\x08url_info\x18\x08 \x01(\x0b\x32 .wireless_android_skyjam.UrlInfo\x12Z\n\x16parental_advisory_type\x18\t \x01(\x0e\x32:.wireless_android_skyjam.UitsMetadata.ParentalAdvisoryType\x12\x42\n\x10\x63opyright_status\x18\n \x01(\x0b\x32(.wireless_android_skyjam.CopyrightStatus\x12-\n\x05\x65xtra\x18\x0b \x03(\x0b\x32\x1e.wireless_android_skyjam.Extra\"A\n\x14ParentalAdvisoryType\x12\x0f\n\x0bUNSPECIFIED\x10\x01\x12\x0c\n\x08\x45XPLICIT\x10\x02\x12\n\n\x06\x45\x44ITED\x10\x03\"\xa5\x02\n\rUitsSignature\x12L\n\x0e\x61lgorithm_type\x18\x01 \x02(\x0e\x32\x34.wireless_android_skyjam.UitsSignature.AlgorithmType\x12Z\n\x15\x63\x61nonicalization_type\x18\x02 \x02(\x0e\x32;.wireless_android_skyjam.UitsSignature.CanonicalizationType\x12\x0e\n\x06key_id\x18\x03 \x02(\t\x12\r\n\x05value\x18\x04 \x02(\t\")\n\rAlgorithmType\x12\x0b\n\x07RSA2048\x10\x01\x12\x0b\n\x07\x44SA2048\x10\x02\" \n\x14\x43\x61nonicalizationType\x12\x08\n\x04NONE\x10\x01\"z\n\x04Uits\x12\x37\n\x08metadata\x18\x01 \x02(\x0b\x32%.wireless_android_skyjam.UitsMetadata\x12\x39\n\tsignature\x18\x02 \x02(\x0b\x32&.wireless_android_skyjam.UitsSignature') TypeError: __init__() got an unexpected keyword argument 'syntax'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.