You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the awesome scripts. I tried using Python 3 without fully reading your requirements and got the script to work after some tweaking. However, I couldn't get my Spotify playlists into a csv format that gmusic-playlist seemed to like so I kept getting empty playlists on google music. I eventually found "portify.js" which worked for me, but playing around with your script help me learn some more about Python, so thanks again!
Anyway, in case anyone else tries to get this working with Python 3, here's what I did:
Traceback (most recent call last):
File "ImportList.py", line 171, in
input_filename = sys.argv[1].decode('utf-8')
AttributeError: 'str' object has no attribute 'decode'
Removed .decode('utf-8') (not needed in Python 3)
Traceback (most recent call last):
File "ImportList.py", line 177, in
output_filename += u'_' + unicode(datetime.datetime.now().strftime(
NameError: name 'unicode' is not defined
Removed all of the unicode() instances (same reason as above)
Traceback (most recent call last):
File "ImportList.py", line 188, in
plog('Reading playlist... ')
File "[my directory]\gmusic\common.py", line 63, in plog
log(message, nl = False)
File "[my directory]\gmusic\common.py", line 52, in log
sys.stdout.write(message.encode(sys.stdout.encoding, errors='replace'))
TypeError: write() argument must be str, not bytes
Changed sys.stdout.write(message.encode(sys.stdout.encoding, errors='replace'))
to
sys.stdout.write(message)
File "ImportList.py", line 318, in
u'/'+len(current_songs)+' songs')
TypeError: Can't convert 'int' object to str implicitly
make sure you wrape any len() code that's being combined with a string with the str() code.
The text was updated successfully, but these errors were encountered:
Thanks for the awesome scripts. I tried using Python 3 without fully reading your requirements and got the script to work after some tweaking. However, I couldn't get my Spotify playlists into a csv format that gmusic-playlist seemed to like so I kept getting empty playlists on google music. I eventually found "portify.js" which worked for me, but playing around with your script help me learn some more about Python, so thanks again!
Anyway, in case anyone else tries to get this working with Python 3, here's what I did:
Removed .decode('utf-8') (not needed in Python 3)
Removed all of the unicode() instances (same reason as above)
Changed
sys.stdout.write(message.encode(sys.stdout.encoding, errors='replace'))
to
sys.stdout.write(message)
make sure you wrape any len() code that's being combined with a string with the str() code.
The text was updated successfully, but these errors were encountered: