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

Questions about applications and software
Forum rules
Before you post please read how to get help
lanrun
Level 3
Level 3
Posts: 158
Joined: Tue Oct 23, 2007 7:31 am
Location: Lillehammer - Norway

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

Postby lanrun » Sat Mar 01, 2008 11:00 am

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?
Last edited by lanrun on Wed Jun 25, 2008 4:10 am, edited 3 times in total.

Husse
Level 23
Level 23
Posts: 19594
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

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

Postby Husse » Sat Mar 01, 2008 11:29 am

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)
Image
Don't fix it if it ain't broken, don't break it if you can't fix it

lanrun
Level 3
Level 3
Posts: 158
Joined: Tue Oct 23, 2007 7:31 am
Location: Lillehammer - Norway

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

Postby lanrun » Sat Mar 01, 2008 2:11 pm

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

Husse
Level 23
Level 23
Posts: 19594
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

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

Postby Husse » Sat Mar 01, 2008 4:40 pm

??
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)
Image
Don't fix it if it ain't broken, don't break it if you can't fix it

lanrun
Level 3
Level 3
Posts: 158
Joined: Tue Oct 23, 2007 7:31 am
Location: Lillehammer - Norway

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

Postby lanrun » Sat Mar 01, 2008 5:54 pm

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).

Husse
Level 23
Level 23
Posts: 19594
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

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

Postby Husse » Sun Mar 02, 2008 10:51 am

If you search for xf6 (without the \ ) - what then?
If you find it I think you've found the error
Image
Don't fix it if it ain't broken, don't break it if you can't fix it

gui

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

Postby gui » Sat Mar 15, 2008 11:12 am

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.

Husse
Level 23
Level 23
Posts: 19594
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

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

Postby Husse » Sat Mar 15, 2008 3:34 pm

What can I say
Sometimes two # instead of one does it
Thanks!
Image
Don't fix it if it ain't broken, don't break it if you can't fix it

lanrun
Level 3
Level 3
Posts: 158
Joined: Tue Oct 23, 2007 7:31 am
Location: Lillehammer - Norway

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

Postby lanrun » Sat Mar 22, 2008 12:32 pm

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!

Husse
Level 23
Level 23
Posts: 19594
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

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

Postby Husse » Sun Mar 23, 2008 7:21 pm

Hope it isn't this
viewtopic.php?f=90&t=9234
Should have asked at the beginning
Image
Don't fix it if it ain't broken, don't break it if you can't fix it

lanrun
Level 3
Level 3
Posts: 158
Joined: Tue Oct 23, 2007 7:31 am
Location: Lillehammer - Norway

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

Postby lanrun » Mon Mar 24, 2008 5:23 am

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?

Guest

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

Postby Guest » Mon Mar 24, 2008 7:43 am

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.

lanrun
Level 3
Level 3
Posts: 158
Joined: Tue Oct 23, 2007 7:31 am
Location: Lillehammer - Norway

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

Postby lanrun » Mon Mar 24, 2008 3:46 pm

The guest in the previous post was myself.

lanrun
Level 3
Level 3
Posts: 158
Joined: Tue Oct 23, 2007 7:31 am
Location: Lillehammer - Norway

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

Postby lanrun » Wed Jun 25, 2008 4:10 am

I think this is not a MINT problem, but a problem with the .deb package from third party...


Return to “Software & Applications”

Who is online

Users browsing this forum: Bing [Bot] and 4 guests