Pagina 1 di 2

Picard MusicBrainz tagger

Inviato: dom 21 ott 2007, 20:23
da anycolouryoulike
http://musicbrainz.org/doc/PicardTagger
È un tagger client di MusicBrainz.
Come lo installo?

Inviato: dom 21 ott 2007, 21:03
da michele.p
...è scritto in Python quindi da root il comando;

python setup.py install

P.S.:Leggi il file INSTALL all'interno del pacchetto perché ci sono diverse dipendenze da soddisfare.

Bye 8)

Inviato: lun 22 ott 2007, 15:24
da anycolouryoulike
Grazie ma...

Codice: Seleziona tutto

root@darkstar:~# picard
Traceback (most recent call last):
  File "/usr/bin/picard", line 2, in <module>
    from picard.tagger import main; main('/usr/share/locale')
  File "/usr/lib/python2.5/site-packages/picard/tagger.py", line 64, in <module>
    import wx
ImportError: No module named wx
root@darkstar:~# ls /var/log/packages/wxpython*
/var/log/packages/wxpython-2.8.6.0-i486-1pv
Come risolvo?

Inviato: lun 22 ott 2007, 18:35
da michele.p
...sta "lamentando" l'assenza del modulo wx. Hai installato tutte le dipendenze elencate nel file INSTALL?

Bye 8)

Inviato: mar 23 ott 2007, 12:51
da anycolouryoulike
Erano veramente tante, ma mi pare di averle installate tutte.
Quel "wx" credo si riferisca a wxPython, ed è presente anche quello. :?:

Inviato: mar 23 ott 2007, 13:04
da slackaddict
wxgtk le hai?

Inviato: mar 23 ott 2007, 13:33
da anycolouryoulike

Codice: Seleziona tutto

root@darkstar:~# ls /var/log/packages/wx*
/var/log/packages/wxGTK-2.8.4-i486-1mfb  /var/log/packages/wxpython-2.8.6.0-i486-1pv
/var/log/packages/wxgtk-2.8.5-i486-1kjz  /var/log/packages/wxwidgets-2.8.4.unicode-i486-1sl
root@darkstar:~# picard
Traceback (most recent call last):
  File "/usr/bin/picard", line 2, in <module>
    from picard.tagger import main; main('/usr/share/locale')
  File "/usr/lib/python2.5/site-packages/picard/tagger.py", line 64, in <module>
    import wx
ImportError: No module named wx
Si. Forse un problema di percorsi?
Nessuno è riuscito a installare questo tagger?

Inviato: mar 23 ott 2007, 14:20
da michele.p
...potrebbe essere anche quanto segue; il "modulo wx" di cui il programma ne lamenta l'assenza potrebbe chiamarsi in modo differente.

Più tardi (stasera) provo a scaricare il tagger e a dare un'occhiata al file tagger.py perché è lì che viene richiamato il modulo "incriminato"e di preciso alla riga 64 del sorgente....


Bye 8)

Inviato: mar 23 ott 2007, 14:37
da michele.p
...allora, oltre a Slackware io uso anche Musix e Mandriva. Ora (dal precedente post) sono in Mandriva e ho provato a installare Picard con rpm. Di seguito ti elenco i pacchetti che, in risoluzione automatica delle dipendenze, mi sono stati installati;
- libdiscid0-0.1.1-1mdv2008.0.i586
- libwxgtkglu2.6-2.6.4-13mdv2008.0.i586
- libwxgtku2.6-2.6.4-13mdv2008.0.i586
- python-musicbrainz2-0.5.0-2mdv2008.0.noarch
- python-tunepimp-0.5.3-5plf2008.0.i586
- wxGTK2.6-2.6.4-13mdv2008.0.i586
- wxpython2.6-2.6.3.3-2mdv2008.0.i586
- wxPythonGTK-wxversion-2.8.4.2-2mdv2008.0.i586
...naturalmente Python era già installato. Verifica se ti manca qualche cosa tra le dipendenze elencate (naturalmente tieni conto che Mandriva, ma non solo, ha i pacchetti suddivisi in lib, lib-devel e lib-static-devel).

...facci sapere....

Bye 8)

Inviato: mar 23 ott 2007, 14:43
da michele.p
...e già che ci stavo :D ho dato un'occhiata anche al sorgente che riporto di seguito;
61 - import sys
62 - import os
63 - import copy
64 - import wx
65 - import atexit
66 - import time
67 - import traceback
68 - import gettext
69 - import locale
come vedi alla riga 64 c'è la chiamata al modulo wx... :?

Bye

Inviato: mar 23 ott 2007, 14:47
da michele.p
...bene, ora mi sto scatenando :badgrin: l'errore;

ImportError: No module named wx

pare che voglia indicare;
The "No module named wx" error means that it can't find wxPython. Make sure you have wxPython installed. There should be an .rpm for it. It probably came with your fedora core Linux distribution, so that is the first place I would look. Or if you can't find it there, it is available on the wxPython download page. http://www.wxpython.org/download.php#binaries

...facci sapere....

Bye 8)

Inviato: mar 23 ott 2007, 15:00
da slackaddict
http://bbs.archlinux.org/viewtopic.php?pid=240023
It's a wxgtk 2.8 issue. The file /usr/lib/python2.5/site-packages/BitTorrent/GUI_wx/__init__.py checks for version 2.6. You could try to change the references to 2.6 to 2.8 to see if it'll work or submit a bug report. I had to do that for another package (picard).

Inviato: mar 23 ott 2007, 15:08
da anycolouryoulike
Tutte quelle dipendenze mi pare di averle installate tutte, alcune anche compilate a mano per fortuna senza errori.
slackaddict ha scritto:http://bbs.archlinux.org/viewtopic.php?pid=240023
It's a wxgtk 2.8 issue. The file /usr/lib/python2.5/site-packages/BitTorrent/GUI_wx/__init__.py checks for version 2.6. You could try to change the references to 2.6 to 2.8 to see if it'll work or submit a bug report. I had to do that for another package (picard).
Quindi? La mia conoscenza dell'inglese è piuttosto scarsa...

Inviato: mar 23 ott 2007, 16:05
da slackaddict
hai provato ad importare wx e vedere se ti restituisce qualche errore?

Codice: Seleziona tutto

bash-3.2$ python
Python 2.4.3 (#1, Jul 26 2006, 20:13:39)
[GCC 3.4.6] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>>
potrebbe essere una questione di versione python, magari picard usa la 2.4 e tu hai la 2.5... potresti dovere creare qualche link simbolico come in qs esempio

http://tovid.wikia.com/wiki/Common_tovi ... e_named_wx

aspetta info da qualche esperto di python...

Inviato: mar 23 ott 2007, 16:15
da anycolouryoulike

Codice: Seleziona tutto

alessandro@darkstar:~$ python
Python 2.5.1 (r251:54863, May  4 2007, 16:52:23)
[GCC 4.1.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>>
Perché Picard non riesce a importarlo?