DanNixon / PlayMusicCL

A command line client for Google Play Music
Apache License 2.0
135 stars 21 forks source link

Startup error #35

Open TheMikeyR opened 8 years ago

TheMikeyR commented 8 years ago

When i try to launch the playmusiccl then I get following loading error:

load_entry_point('playmusiccl==0.6.2', 'console_scripts', 'playmusiccl')()
  File "/home/mikeyr/anaconda2/lib/python2.7/site-packages/setuptools-19.6.2-py2.7.egg/pkg_resources/__init__.py", line 547, in load_entry_point
  File "/home/mikeyr/anaconda2/lib/python2.7/site-packages/setuptools-19.6.2-py2.7.egg/pkg_resources/__init__.py", line 2719, in load_entry_point
  File "/home/mikeyr/anaconda2/lib/python2.7/site-packages/setuptools-19.6.2-py2.7.egg/pkg_resources/__init__.py", line 2379, in load
  File "/home/mikeyr/anaconda2/lib/python2.7/site-packages/setuptools-19.6.2-py2.7.egg/pkg_resources/__init__.py", line 2385, in resolve
  File "/home/mikeyr/anaconda2/lib/python2.7/site-packages/playmusiccl-0.6.2-py2.7.egg/playmusiccl/__init__.py", line 1, in <module>
    from playmusiccl import *
  File "/home/mikeyr/anaconda2/lib/python2.7/site-packages/playmusiccl-0.6.2-py2.7.egg/playmusiccl/playmusiccl.py", line 10, in <module>
    from gi.repository import GLib
ImportError: No module named gi.repository
charlescbeebe commented 8 years ago

@TheMikeyR are you on OS X? I'm on 10.10.5, and I fixed this error by installing pyGObject & GStreamer with Homebrew: brew install pygobject3 gstreamer. If you're installing PlayMusicCL in its own virtualenv you'll also need to symlink the system gi package; I use virtualenvwrapper and did this with the following commands:

cdsitepackages
ln -s /usr/local/lib/python2.7/site-packages/gi gi

(I would have preferred to install pygobject3 local to the virtualenv, but the package says that's only possible on Windows.)

Here are some links that helped me come up with my solution: http://stackoverflow.com/questions/18119618/importerror-no-module-named-gi-repository-mac-os-x http://stackoverflow.com/questions/9667517/gobject-gtk-gnome-gtk-gl-gtk2-gtk3-i-dont-understand/9672426#9672426 https://encrypted.google.com/search?hl=en&q=PyGObject%20install%20osx http://macappstore.org/pygobject3/ http://stackoverflow.com/questions/6907473/cannot-import-gst-in-python http://stackoverflow.com/questions/2767382/including-global-package-into-a-virtualenv-that-has-been-created-with-no-site

TheMikeyR commented 8 years ago

@charlescbeebe unfortunatly I'm sitting on Ubuntu 14.04