Ubuntu 16.04: MusicBrainz Picard 1.4 does not start


#1

Hello everyone !

Well, I have been using Picard sucessfully about three weeks ago ,
but now it is not possible any more.

I just click on the Picard Icon on Ubuntu 16.04 and then the mouse pointer turns into the
“rotating ball” for waiting". This is happening about 30 sconds. After this nothing more happens.
The programe is not there.

I made an uninstall and then installed the (newer) version 1.4.2-1+git2216~ppa5~ubuntu16.04.1.
That did not help. Well I have no idea, why picard is not starting, do you have any idea ?

What can I do ?

My last action with picard was to tag quite a large path with about 30.000 entiries inside.
Could that be the reason ?

I am luck for any help …


#2

can you open up a terminal and run picard --debug and see if there are any errors just before it crashes.
If it is something like a bad plugin you may want to try and get rid of it by deleting anything under ~/.config/MusicBrainz/Picard/


#3

Ah, that is a good idea, I get the following results:

~$ picard --debug
»/desktop/gnome/interface/icon_theme« wurde kein Wert zugewiesen
Traceback (most recent call last):
File “/usr/bin/picard”, line 2, in
from picard.tagger import main; main(’/usr/share/locale’, True)
File “/usr/lib/picard/picard/tagger.py”, line 769, in main
tagger = Tagger(picard_args, unparsed_args, localedir, autoupdate)
File “/usr/lib/picard/picard/tagger.py”, line 179, in init
upgrade_config()
File “/usr/lib/picard/picard/config_upgrade.py”, line 239, in upgrade_config
cfg.run_upgrade_hooks(log.debug)
File “/usr/lib/picard/picard/config.py”, line 187, in run_upgrade_hooks
traceback.format_exc()
picard.config.ConfigUpgradeError: Error during config upgrade from version 1.3.0dev2 to 1.3.0dev3 using upgrade_to_v1_3_0_dev_3():
Traceback (most recent call last):
File “/usr/lib/picard/picard/config.py”, line 178, in run_upgrade_hooks
hook’func’
File “/usr/lib/picard/picard/config_upgrade.py”, line 121, in upgrade_to_v1_3_0_dev_3
_s[opt] = _s.raw_value(opt).split(sep)
AttributeError: ‘list’ object has no attribute ‘split’

aehmm… and now ?


#4

I have de-installed and installed musicBrainz Piccard now serveral times on my Ubuntu.

Well, it does not seem to work any more -

Is any one still able to use Piccard with Ubuntu 16.04 LTS and can help me?


#5

I could attempt running it in VirtualBox. Is your Ubuntu 16.04 updated to the latest version? Ubuntu 16.04.4 LTS?

This is some parts from how the debug looks on my system when I start Picard 1.4.2:

:~$ picard --debug
D: 11:32:59 Debug mode on
D: 11:32:59 Starting Picard from '/usr/lib/picard/picard/tagger.pyc'
D: 11:32:59 Platform: Linux-4.13.0-37-generic-x86_64-with-Ubuntu-17.10-artful CPython 2.7.14
D: 11:32:59 Versions: Picard 1.4.2, PyQt 4.11.4, Qt 4.8.7, Mutagen 1.38, Discid discid 1.1.0 (compat layer from python-libdiscid 0.4.1), libdiscid 0.6.2
D: 11:32:59 Loading gettext translation, localedir='/usr/share/locale'
D: 11:32:59 Loading gettext translation (picard-countries), localedir='/usr/share/locale'
D: 11:32:59 IOError(2, 'No translation file found for domain')
D: 11:32:59 _ = <function <lambda> at 0x7fa4e0d61398>
D: 11:32:59 N_ = <function <lambda> at 0x7fa4f0449f50>
D: 11:32:59 ungettext = <function _ungettext at 0x7fa4e0d61410>
D: 11:32:59 ugettext_countries = <function _ugettext_countries at 0x7fa4e0d61488>
D: 11:32:59 ugettext_attributes = <function _ugettext_attributes at 0x7fa4e0d61500>
D: 11:32:59 NetworkDiskCache size: 355718 / 104857600
D: 11:32:59 Looking for plugins in directory '/usr/lib/picard/picard/plugins', 0 names found
I: 11:32:59 Plugin directory '/usr/lib/picard/contrib/plugins' doesn't exist
D: 11:32:59 Starting the browser integration (127.0.0.1:8000)
D: 11:32:59 WSREQ: First request to ('picard.musicbrainz.org', 443)
D: 11:33:00 Received reply for https://picard.musicbrainz.org:443/api/v1/plugins/: HTTP 200 (OK)

#6

Excellent idea with VirtualBox from your side internetofdata… perhaps it is possible to re-produce the error there.

And yes … my ubuntu is updated to the latest version, LTS.


#7

Can you execute the following command and show the result here ?
grep -F -e preferred -e enabled_plugins -e caa_image_types -e metadata_box_sizes -e version ~/.config/MusicBrainz/Picard.ini

It seems you have an unexpected value in one option.
You can always rename the current config file (backup), and start over (Picard will create a new config file) and start as it should.

We had no report of such issue yet, but something unexpected happened, causing an exception in upgrade hooks (which should manage configuration file changes among versions).


#8

Are you using the vanilla version of Ubuntu?(that’s what I’m testing on) And the version of Picard is 1.3.2? Cause that’s the version Ubuntu 16.04.4 gave me.

Anyway this is what I get after doing picard --debug in VirtualBox with vanilla Ubuntu 16.04.4:

abcd@abcd-VirtualBox:~$ picard --debug
No value set for `/desktop/gnome/interface/icon_theme’
D: 12:15:43 Debug mode on
D: 12:15:43 Starting Picard from ‘/usr/lib/picard/picard/tagger.pyc’
D: 12:15:43 Platform: Linux-4.13.0-36-generic-x86_64-with-Ubuntu-16.04-xenial CPython 2.7.12
D: 12:15:43 Versions: Picard 1.3.2, PyQt 4.11.4, Mutagen 1.31, Discid discid 1.1.0 (compat layer from python-libdiscid 0.4.1), libdiscid 0.6.1
D: 12:15:43 Configuration file path: /home/abcd/.config/MusicBrainz/Picard.conf
D: 12:15:43 User directory: /home/abcd/.config/MusicBrainz/Picard
D: 12:15:43 Using locale ‘LC_CTYPE=en_US.UTF-8;LC_NUMERIC=sv_SE.UTF-8;LC_TIME=sv_SE.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=sv_SE.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=sv_SE.UTF-8;LC_NAME=sv_SE.UTF-8;LC_ADDRESS=sv_SE.UTF-8;LC_TELEPHONE=sv_SE.UTF-8;LC_MEASUREMENT=sv_SE.UTF-8;LC_IDENTIFICATION=sv_SE.UTF-8’
D: 12:15:43 Loading gettext translation, localedir=’/usr/share/locale’
D: 12:15:43 Loading gettext translation (picard-countries), localedir=’/usr/share/locale’
D: 12:15:43 IOError(2, ‘No translation file found for domain’)
D: 12:15:43 _ = <function at 0x7f0135156488>
D: 12:15:43 N_ = <function at 0x7f0139020c80>
D: 12:15:43 ungettext = <function _ungettext at 0x7f0135156500>
D: 12:15:43 ugettext_countries = <function _ugettext_countries at 0x7f0135156578>
D: 12:15:43 ugettext_attributes = <function _ugettext_attributes at 0x7f01351565f0>
D: 12:15:43 NetworkDiskCache dir: /home/abcd/.cache/MusicBrainz/Picard/picard/
D: 12:15:43 NetworkDiskCache size: 0 / 104857600
D: 12:15:43 Looking for plugins in directory ‘/usr/lib/picard/picard/plugins’, 17 names found
D: 12:15:43 Loading plugin u’Add Cluster As Release’ version 0.5, compatible with API: 1.0
D: 12:15:43 Loading plugin u’Album Artist Website’ version 0.3, compatible with API: 0.15, 0.15.1, 0.16, 1.0, 1.1, 1.2, 1.3
D: 12:15:43 Loading plugin ‘Classic Disc Numbers’ version 0.1, compatible with API: 0.15
D: 12:15:43 Loading plugin u’Generate Cuesheet’ version 0.1, compatible with API: 0.15
D: 12:15:43 Loading plugin ‘Disc Numbers’ version 0.1, compatible with API: 0.15
D: 12:15:43 Loading plugin ‘Feat. Artists Removed’ version 0.2, compatible with API: 0.15, 0.16
D: 12:15:43 Loading plugin ‘Feat. Artists in Titles’ version 0.2, compatible with API: 0.15, 0.16
D: 12:15:43 Loading plugin u’Last.fm’ version 0.4, compatible with API: 0.15
D: 12:15:43 Loading plugin u’Last.fm.Plus’ version 0.14, compatible with API: 0.15
D: 12:15:43 Loading plugin u’No release’ version 0.1, compatible with API: 0.15
D: 12:15:43 Loading plugin ‘Release Type’ version 1.2, compatible with API: 0.15
D: 12:15:43 Loading plugin u’ReplayGain’ version 0.1, compatible with API: 0.15, 0.16
D: 12:15:43 Loading plugin u’Sort Multi-Value Tags’ version 0.1, compatible with API: 0.15
D: 12:15:43 Loading plugin u’Standardise Performers’ version 0.2, compatible with API: 0.15, 0.15.1, 0.16, 1.0, 1.1, 1.2, 1.3
D: 12:15:43 Loading plugin ‘Title Case’ version 0.1, compatible with API: 0.15
D: 12:15:43 Loading plugin u’Copy Cluster to Clipboard’ version 0.1, compatible with API: 0.15
D: 12:15:43 Loading plugin u’View script variables’ version 0.5, compatible with API: 1.0
W: 12:15:43 Plugin directory ‘/usr/lib/picard/contrib/plugins’ doesn’t exist
D: 12:15:43 Looking for plugins in directory ‘/home/abcd/.config/MusicBrainz/Picard/plugins’, 0 names found
D: 12:15:44 Starting the browser integration (127.0.0.1:8000)


#9

Did you mean Picard.conf? On 16.04.4 I only see a .conf file. It’s on my most recent system Ubuntu 17.10 that I only see an .ini file(cause there is no .conf file on this modern version)

Anyway doing

abcd@abcd-VirtualBox:~/.config/MusicBrainz/Picard$ grep -F -e preferred -e enabled_plugins -e caa_image_types -e metadata_box_sizes -e version ~/.config/MusicBrainz/Picard.conf

on my VirtualBox 16.04.4 system on the Picard that just works I got these results:

version=1.3.2final0
preferred_release_countries=@Invalid()
preferred_release_formats=@Invalid()
enabled_plugins=@Invalid()

so that’s what a healthy Picard should look like.(since my Picard currently works without any problems)

@Steffen_2007
I’m gonna have my virtual system available in case you need to test anything on it. If you do want to test something let me know, Cheers


#10

Thank you very much for your answers.

Well, about the version of Picard I am not really sure, perhaps there is a really bad combination now on my ubuntu , perhaps with a rest from older installations.

So executing in CMD I get the following result:

grep -F -e preferred -e enabled_plugins -e caa_image_types -e metadata_box_sizes -e version ~/.config/MusicBrainz/Picard.ini
version=1.3.0dev2
metadata_box_sizes=19 52 1638
caa_image_types=@Variant(\0\0\0\t\0\0\0\x1\0\0\0\n\0\0\0\n\0\x66\0r\0o\0n\0t)
enabled_plugins=@Invalid()
preferred_release_countries=@Variant(\0\0\0\t\0\0\0\x1\0\0\0\n\0\0\0\x4\0\x44\0\x45)
preferred_release_formats=@Variant(\0\0\0\t\0\0\0\x1\0\0\0\n\0\0\0\x4\0\x43\0\x44)
ubi@Ubunti:~$


#11

oh dear … Now I am totally confused / in Ubuntu software I get the information that
1.4.2-1+git2216~ppa5~ubuntu16.04.1
is installed
BUT in the CMD the system reports it is version=1.3.0dev2 ?

Even the name of my topic seems to be at least 50% wrong, sorry for that.

I think I have messed up the installations completely.
So how do I get rid of all of them and will be able to do a clean install of picard ?


#12

The version in the config file is stored to manage configuration file upgrades.
The problem you have is related to those upgrades, something prevents one upgrade hook to work, and the exception prevents Picard to start.

To know the current version of your installed Picard, use picard --version.

Can you send me your current config file by email at zas at metabrainz dot org ?

After you saved the current config file, you can fix the issue by manually removing concerned entries in the config file. Or just move the current config file out of the path, so Picard will create a new one and should start.


#13

Hhm, the version of picard is 1.4, but the CMD outpunt shows also somethin more:

ubi@Ubunti:~$ picard --version
»/desktop/gnome/interface/icon_theme« wurde kein Wert zugewiesen
MusicBrainz Picard 1.4.2
ubi@Ubunti:~$

Now I have moved the config file , tried to start again, same behavoiour - but I have a new config file.

I have sent you Zas the new config file - please help.


#14

Same behaviour starting with no config file at all ? Can you confirm this ? I don’t see how it’s possible.


#15

No, it was the same behaviour with the newly created config-file.

After this I deleted all config files, then
I looked in Ubuntu software store an found TWO Picard, one with the route-symbol, the other with music symbol.

So I made CMD apt-get remove --auto-remove picard

After this I saw in the ubuntu-store two possible picard installations, one directly and the other one from “Drittanbieter”

Well, I have chosen the one with route-symbol and installed again…
And …GRRRReeeeat - now MusicBrainz Picard works fine again -
thanks very much for your good support, without it I won’t have been able do do this !