Page 1 of 1

SOLVED:How can I install and run .deb package?

Posted: Sat Mar 01, 2008 11:00 am
by lanrun
I managed to download and install the .deb package from Album Cover Art Downloader. In Synaptic I can se that albumart is installed. But I can't find the application on any menu. How can I run it?

When I typed sudo albumart-qt in the terminal I got the following lines:

Traceback (most recent call last):
File "/usr/bin/albumart-qt", line 145, in <module>
sys.exit(runGui())
File "/usr/bin/albumart-qt", line 77, in runGui
import albumart_dialog
File "/usr/lib/albumart/albumart_dialog.py", line 5
SyntaxError: Non-ASCII character '\xf6' in file /usr/lib/albumart/albumart_dialog.py on line 5, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

What does this mean?

Re: How can I install and run .deb package?

Posted: Sat Mar 01, 2008 11:29 am
by Husse
This probably means just what it says
There is an "illegal" character on line 5
Can you paste that line here and I'll take a look at it (or the whole file if it's reasonably small)

Re: How can I install and run .deb package?

Posted: Sat Mar 01, 2008 2:11 pm
by lanrun
From the top of file albumart_dialog.py, which is a big file:

f# -*- coding: iso-8859-1 -*-
#
# QT-frontend for the album image downloader.
#
# Copyright (C) 2003, 2004 Sami Kyöstilä <skyostil@kempele.fi>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# at your option) any later version.
#

"""Album Cover Art Downloader"""

import os
import sys
import traceback
import imghdr
import StringIO
import time
import urllib
import tempfile
import Image
import ConfigParser
import cPickle as pickle
from qt import *

# local imports
import albumart
import version
import config
from pixmap import getPixmapForPath
from items import TrackItem, AlbumItem, CoverItem, FolderItem, FileItem
from event import *
from process import *
from albumart_dialog_base import AlbumArtDialogBase
from albumart_configuration_dialog import ConfigurationDialog
from albumart_about_dialog import AboutDialog
from albumart_exception_dialog import ExceptionDialog


Line 5 is maybe: import StringIO

Re: How can I install and run .deb package?

Posted: Sat Mar 01, 2008 4:40 pm
by Husse
??
The risk is that line 5 is a line somewhere else and is #5 being read on execution
Can you search for \xf6 as it's indicated
This smells reinstall.... (of that app)

Re: How can I install and run .deb package?

Posted: Sat Mar 01, 2008 5:54 pm
by lanrun
I tried to search for the phrase \xf6 in the file, but the phrase couldn't be found.
It is possibly something wrong with the package or the installation.
I think I will uninstall it and maybe try to install from the source code (albumart-1.6.1.tar.gz).

Re: How can I install and run .deb package?

Posted: Sun Mar 02, 2008 10:51 am
by Husse
If you search for xf6 (without the \ ) - what then?
If you find it I think you've found the error

Re: How can I install and run .deb package?

Posted: Sat Mar 15, 2008 11:12 am
by gui
I just ran into this myself. Apparently the characters in the author's name are causing the problem, even though that part is commented out. Just delete this line
Copyright (C) 2003, 2004 Sami Kyöstilä <skyostil@kempele.fi>
and you'll be set.

Re: How can I install and run .deb package?

Posted: Sat Mar 15, 2008 3:34 pm
by Husse
What can I say
Sometimes two # instead of one does it
Thanks!

Re: How can I install and run .deb package?

Posted: Sat Mar 22, 2008 12:32 pm
by lanrun
Husse wrote:What can I say
Sometimes two # instead of one does it
Thanks!
Removing the line with the authors name didn't make it work.
Typing albumart-qt in the terminal gave this result:
Traceback (most recent call last):
File "/usr/bin/albumart-qt", line 145, in <module>
sys.exit(runGui())
File "/usr/bin/albumart-qt", line 77, in runGui
import albumart_dialog
File "/usr/lib/albumart/albumart_dialog.py", line 1, in <module>
f# -*- coding: iso-8859-1 -*-
NameError: name 'f' is not defined

I then removed the character f in line 1, and tried albumart-qt again:
Traceback (most recent call last):
File "/usr/bin/albumart-qt", line 145, in <module>
sys.exit(runGui())
File "/usr/bin/albumart-qt", line 77, in runGui
import albumart_dialog
File "/usr/lib/albumart/albumart_dialog.py", line 35, in <module>
from albumart_dialog_base import AlbumArtDialogBase
ImportError: cannot import name AlbumArtDialogBase

So far no good!

Re: How can I install and run .deb package?

Posted: Sun Mar 23, 2008 7:21 pm
by Husse
Hope it isn't this
http://www.linuxmint.com/forum/viewtopi ... =90&t=9234
Should have asked at the beginning

Re: How can I install and run .deb package?

Posted: Mon Mar 24, 2008 5:23 am
by lanrun
It is a deb-package that I have tried to get running. So I don't think so.

I could download the source code and try to compile it my self.
Before that I must install build-essential. Is that correct?

Re: How can I install and run .deb package?

Posted: Mon Mar 24, 2008 7:43 am
by Guest
lanrun wrote:It is a deb-package that I have tried to get running. So I don't think so.

I could download the source code and try to compile it my self.
Before that I must install build-essential. Is that correct?
Build-essential installed from package manager.
Downloaded the source code from album cover art downloader.
Following the Mint Wiki HowTo install without deb package:

This is the result from the terminal:

rune@hjemme-pc1:~$ cd /home/rune/Downloads/albumart-1.6.1
rune@hjemme-pc1:~/Downloads/albumart-1.6.1$ ./configure
bash: ./configure: No such file or directory
rune@hjemme-pc1:~/Downloads/albumart-1.6.1$ make
Uic'in albumart_about_dialog_base.ui
/bin/sh: pyuic: not found
make[1]: *** [albumart_about_dialog_base.py] Error 127
Uic'in albumart_configuration_dialog_base.ui
/bin/sh: pyuic: not found
make[1]: *** [albumart_configuration_dialog_base.py] Error 127
Uic'in albumart_dialog_base.ui
/bin/sh: pyuic: not found
make[1]: *** [albumart_dialog_base.py] Error 127
Uic'in albumart_exception_dialog_base.ui
/bin/sh: pyuic: not found
make[1]: *** [albumart_exception_dialog_base.py] Error 127
Uic'in albumart_string_list_widget_base.ui
/bin/sh: pyuic: not found
make[1]: *** [albumart_string_list_widget_base.py] Error 127
rune@hjemme-pc1:~/Downloads/albumart-1.6.1$ sudo make install
[sudo] password for rune:
make: *** No rule to make target `install'. Stop.
rune@hjemme-pc1:~/Downloads/albumart-1.6.1$ make clean
make: *** No rule to make target `clean'. Stop.

I don't understand what all this means, but no success. Maybe I am doing something wrong, or it is something wrong with the source code from album cover art downloader.

Re: How can I install and run .deb package?

Posted: Mon Mar 24, 2008 3:46 pm
by lanrun
The guest in the previous post was myself.

Re: How can I install and run .deb package?

Posted: Wed Jun 25, 2008 4:10 am
by lanrun
I think this is not a MINT problem, but a problem with the .deb package from third party...