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

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
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?

Post 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?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 4 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Husse

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

Post 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)
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?

Post 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
Husse

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

Post 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)
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?

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

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

Post by Husse »

If you search for xf6 (without the \ ) - what then?
If you find it I think you've found the error
gui

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

Post 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.
Husse

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

Post by Husse »

What can I say
Sometimes two # instead of one does it
Thanks!
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?

Post 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!
Husse

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

Post by Husse »

Hope it isn't this
http://www.linuxmint.com/forum/viewtopi ... =90&t=9234
Should have asked at the beginning
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?

Post 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?
Guest

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

Post 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.
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?

Post by lanrun »

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?

Post by lanrun »

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

Return to “Software & Applications”