Picard Crashing on Mac OSX 10.13

Tags: #<Tag:0x00007f7cfa10ed60> #<Tag:0x00007f7cfa10ec48>

Hi! I just downloaded and installed Picard on OSX 10.13.
I can’t seem to even open it for the first time, since every time I try to launch it, it appears in the dock for a split second then immediately quits.

Running a debug command returns the following:
“Traceback (most recent call last):
File “tagger.py”, line 19, in
File “picard/tagger.py”, line 974, in main
File “picard/tagger.py”, line 169, in init
File “picard/ui/theme.py”, line 164, in setup
File “picard/ui/theme.py”, line 66, in setup
File “picard/ui/theme.py”, line 151, in is_dark_theme
AttributeError: ‘NSCompositeAppearance’ object has no attribute ‘bestMatchFromAppearancesWithNames_’
[11255] Failed to execute script tagger”

Any thoughts? Thanks in advance!

1 Like

Yup, seems to be a similar to the Windows issue with the theming support. More specifically we assumed the attribute would exist in previous OS X releases. I think I already have a fix for it.

1 Like

Color me ignorant, but what do I do now in order to fix it? :sweat_smile:

If you’re launching it from the source code, you can apply the fix/clone the working branch.
If you’re not into that, wait until the fix is merged and a new build is released. :slight_smile:

1 Like

Ooooh, thanks! Yeah, I have no idea what any of that means. I’ll just wait for it then :slight_smile:

We have a couple of important fixes we need to apply, so there should be a 2.4.2 release soon.


2.4.2 is released, but it still fails to launch.

/Applications/MusicBrainz\ Picard.app/Contents/MacOS/picard-run -d
I: 17:31:02,407 config._backup_settings:274: Backing up config file to /Users/lantrix/.config/MusicBrainz/Picard-2.4.2.dev1.ini
Traceback (most recent call last):
  File "tagger.py", line 19, in <module>
  File "picard/tagger.py", line 974, in main
  File "picard/tagger.py", line 169, in __init__
  File "picard/ui/theme.py", line 168, in setup
  File "picard/ui/theme.py", line 66, in setup
  File "picard/ui/theme.py", line 159, in is_dark_theme
  File "site-packages/objc/_lazyimport.py", line 181, in __getattr__
AttributeError: NSAppearanceNameDarkAqua
[2334] Failed to execute script tagger

The error is no longer

AttributeError: ‘NSCompositeAppearance’ object has no attribute 

It’s now another “Dark Theme” component that is not in OSX 10.13

AttributeError: NSAppearanceNameDarkAqua

I was running the latest on Master yesterday before the release and this wasn’t a problem. Maybe one of the PRs before the release broke this again. I’ll see what I can find.

:thinking: I am able to launch dev build (2.4.2.dev1) which is on this commit

But 2.4.2 release causes that error.

Screenshot of launching 2.4.2.dev1 then 2.4.2

I updated to 2.4.3.dev1 and it also runs, so this must be a packaging as Mac App issue only.

1 Like

Proposed fix in https://github.com/metabrainz/picard/pull/1612

@lantrix Thanks a lot for testing. That it runs for you when launching from source is probably just because you don’t have pyobjc-core and pyobjc-framework-Cocoa installed, which would be needed for this.


Thanks. I’ll build the package and test with your PR branch.

1 Like

Thanks a lot for testing and sorry for the trouble with this.

Hey no troubles. It’s such a great app!

I built and packaged before https://github.com/metabrainz/picard/pull/1612 and also after.

The screenshot shows a working build for OSX 10.13 from before, then this commit.

Nice one. Thanks for the help!
(I forgot to re-gen the build number & release tag on rebuild, which is why version is the same)


The just released Picard 2.4.4 should finally solve the issue.

1 Like