Posts: 3
Joined: Wed Sep 03, 2014 7:23 pm

No module named copyreg (Respotify)

Wed Jan 27, 2016 11:26 pm

Hi, not sure if this is the correct area for this question but having some trouble with respotify.

Code: Select all

root@raspberrypi:/spotify-websocket-api/clients/respotify# python respotify.py
Traceback (most recent call last):
  File "respotify.py", line 7, in <module>
    from spotify_web.friendly import Spotify, SpotifyTrack, SpotifyUserlist
  File "../../spotify_web/friendly.py", line 6, in <module>
    from .spotify import SpotifyAPI, SpotifyUtil
  File "../../spotify_web/spotify.py", line 16, in <module>
    from .proto import mercury_pb2, metadata_pb2, playlist4changes_pb2,\
  File "../../spotify_web/proto/mercury_pb2.py", line 5, in <module>
    from google.protobuf import reflection
  File "/usr/local/lib/python2.7/dist-packages/google/protobuf/reflection.py", line 58, in <module>
    from google.protobuf.internal import python_message as message_impl
  File "/usr/local/lib/python2.7/dist-packages/google/protobuf/internal/python_message.py", line 59, in <module>
    import six.moves.copyreg as copyreg
ImportError: No module named copyreg
Whenever I try to launch the respotify Python file I am getting this error? There's not alot of documentation on this and I can't find anything about this online already apart from some places talking about "No module named copy_reg".

Help would be appreciated :)

Posts: 258
Joined: Sat Oct 24, 2015 1:50 pm

Re: No module named copyreg (Respotify)

Fri Jan 29, 2016 12:41 am

A quick Google seems to suggest there were problems with Respotify. Your error suggests you need to install something else ("six"?) to get copyreg. Your screen prompt suggests you are running as 'root', not the usual 'pi'

What instructions did you follow to get to where you are now? It is difficult to know exactly what is happening, and you might have other problems appear next. I should say I have not tried what you are doing, so I am guessing a bit ;)

Return to “Troubleshooting”