Covergloobus doesn't start - importerror: webservices problem

Asked by GeekMiki on 2010-11-21

Hi,

I'm trying to run Covergloobus 1.7-6 on an Ubuntu 10.04 (64bits). Whenever I try to launch Covergloobus nothing happens and I get the following output:

covergloobus
Traceback (most recent call last):
  File "/usr/share/covergloobus/covergloobus.py", line 97, in init
    self.init_player()
  File "/usr/share/covergloobus/covergloobus.py", line 127, in init_player
    self.player = __import__('players.' + name, fromlist=['players']).__dict__[name](self)
  File "/usr/share/covergloobus/players/Spotify.py", line 27, in <module>
    import WEBServices
ImportError: No module named WEBServices

Any clues of what is going wrong?

Thanks in advance!

Question information

Language:
English Edit question
Status:
Solved
For:
CoverGloobus Edit question
Assignee:
No assignee Edit question
Solved by:
GeekMiki
Solved:
2010-11-23
Last query:
2010-11-23
Last reply:
2010-11-23
Alexandr Grigorcea (cahr-gr) said : #1

oops :D

we will fix that, thank you for the bug report

in the meantime if you want using Spotify plugin, open the file with
$ sudo gedit /usr/share/covergloobus/players/Spotify.py
delete line 27 (import WEBServices)
also delete file /usr/share/covergloobus/players/Spotify.pyc
and try running CG again

if you dont need Spotify plugin, just remove
~/.config/CoverGloobus/CoverGloobus.cfg, start CG, but do not select Spotify
again

On Sun, Nov 21, 2010 at 7:55 PM, GeekMiki <
<email address hidden>> wrote:

> New question #134942 on CoverGloobus:
> https://answers.launchpad.net/covergloobus/+question/134942
>
> Hi,
>
> I'm trying to run Covergloobus 1.7-6 on an Ubuntu 10.04 (64bits). Whenever
> I try to launch Covergloobus nothing happens and I get the following output:
>
> covergloobus
> Traceback (most recent call last):
> File "/usr/share/covergloobus/covergloobus.py", line 97, in init
> self.init_player()
> File "/usr/share/covergloobus/covergloobus.py", line 127, in init_player
> self.player = __import__('players.' + name,
> fromlist=['players']).__dict__[name](self)
> File "/usr/share/covergloobus/players/Spotify.py", line 27, in <module>
> import WEBServices
> ImportError: No module named WEBServices
>
> Any clues of what is going wrong?
>
> Thanks in advance!
>
>
> --
> You received this question notification because you are an answer
> contact for CoverGloobus.
>

GeekMiki (mstenzel) said : #2

Thank you for the quick answer. It did solve the problem and now Covergloobus is launching normally again. All the plugins are working correctly but the one for Spotify isn't.

If I check the spotify plugin version I see 0.0.
Anything I can do to have the Spotify plugin working?
I tried with Spotify for Linux and Spotify running in Wine.

Thanks in advance!

Alexandr Grigorcea (cahr-gr) said : #3

yeah, you are right, I don't have Spotify in my country, so I haven't tested it well
I've made an account now using a proxy and fixed that plugin, if you wanna try it download it from here
http://bazaar.launchpad.net/%7Ecahr-gr/covergloobus/ui/download/cahr.gr%40gmail.com-20101122221341-9uzla2812du6e7y4/spotify.py-20091215224213-k3mj24sv1mmzjxip-1/Spotify.py
replace /usr/share/covergloobus/players/Spotify.py with the new one and run CG

I've tested it with wine, spotify for linux has no free access, but I suppose it will work with linux version too

but there are some other bugs that I've found now, related to cover downloading, so if you know how to install from bazaar, try installing from this branch
https://code.launchpad.net/~cahr-gr/covergloobus/ui
feel free to ask if you don't know how to make this

also, I understand you have a premium account and you can run spotify for linux, so I would like to ask you if you are willing to help me in making another spotify plugin. I can make a plugin that uses MPRIS api of spotify linux client, this will work much better than the current one, but I need someone to test it.

GeekMiki (mstenzel) said : #4

Hi,

I tried with the new Spotify.py and I still have the same behaviour: COvergloobus doesn't identify the tracks played by Spotify and the plugin is still marked as version 0.0.
Here's the command line output when playing a track:
  File "/usr/share/covergloobus/players/Spotify.py", line 207, in check_new_song
    self._last_album = wikilyrics_get_album(artist, title)
  File "/usr/share/covergloobus/common.py", line 283, in wikilyrics_get_album
    artist = urllib2.quote(artist.replace(" ","_").encode('utf-8'))
NameError: global name 'urllib2' is not defined

Spotify for Linux is not recognized at all.

I am more than glad to help you in any way in the development of a plugin for the native player. So let me know what I can do.

By the way, I'm not familiar with Bazaar, so any help will be welcome.

Thanks again for your help!

Alexandr Grigorcea (cahr-gr) said : #5

as I said there is some other bugs I've fixed
try this way:
open console in some folder where there is no folder named 'ui'
first install some building packages if you dont have them:
$ sudo apt-get install build-essential checkinstall bzr
then run this:
$ bzr branch lp:~cahr-gr/covergloobus/ui
$ cd ui
$ ./autogen.sh
$ make
$ sudo make install
$ covergloobus

tell me if it works
when I have time I'll make a new plugin, you will have to install from bazaar (like in previous steps) and to test it a little
thanks

GeekMiki (mstenzel) said : #6

I tried to compile from bazaar, but I get a:
./autogen.sh: line 7: ./configure: No such file or directory

Anything I can do? Thanks for your help!

GeekMiki (mstenzel) said : #7

Actually the whole output is:
./autogen.sh
./autogen.sh: line 3: aclocal: command not found
./autogen.sh: line 4: autoconf: command not found
./autogen.sh: line 5: automake: command not found
Running configure with arguments
./autogen.sh: line 7: ./configure: No such file or directory

Alexandr Grigorcea (cahr-gr) said : #8

sorry I thought those apps are provided by build-essential meta-package
install:
$ sudo apt-get install automake autoconf intltool

On Tue, Nov 23, 2010 at 7:28 PM, GeekMiki <
<email address hidden>> wrote:

> Question #134942 on CoverGloobus changed:
> https://answers.launchpad.net/covergloobus/+question/134942
>
> Status: Answered => Open
>
> GeekMiki is still having a problem:
> I tried to compile from bazaar, but I get a:
> ./autogen.sh: line 7: ./configure: No such file or directory
>
> Anything I can do? Thanks for your help!
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

GeekMiki (mstenzel) said : #9

Great, thanks for your help! It's working perfectly now with Spotify through Wine and native Spotify!

As mentioned, let me know when you need my help to run some more tests!