iXBRL viewer plugin not working on macOS

254 views
Skip to first unread message

SK

unread,
Apr 8, 2021, 2:13:36 AM4/8/21
to Arelle-users
As soon as the iXBRL Viewer plugin is activated on macOS Arelle crashes on startup.

As far as i can tell this issue is only occurring using the latest version (2021-04-01).

Thanks!
----
System log says:

Apr  8 08:10:32 mbp-home com.apple.xpc.launchd[1]: Coalition Cache Hit: app<application.Arelle.8643975288.8643975294(501)> [156344]

Apr  8 08:10:33 mbp-home Arelle[10244]: pkg_resources.DistributionNotFound: The 'pycountry' distribution was not found and is required by the application

Call Trace

  File "/Users/arelle/hfdev/arelle/CntlrWinMain.py", line 1546, in main

  File "/Users/arelle/hfdev/arelle/CntlrWinMain.py", line 223, in __init__

  File "/Users/arelle/hfdev/arelle/PluginManager.py", line 410, in pluginClassMethods

  File "/Users/arelle/hfdev/arelle/PluginManager.py", line 333, in loadModule

  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/imp.py", line 244, in load_module

    return load_package(name, filename)

  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/imp.py", line 216, in load_package

    return _load(spec)

  File "<frozen importlib._bootstrap>", line 711, in _load

Environment environ({'USER': 'mbpadmin', '__CFBundleIdentifier': 'Arelle', 'COMMAND_MODE': 'unix2003', 'LOGNAME': 'mbpadmin', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'SSH_AUTH_SOCK': '/private/tmp/com.apple.launchd.mNE9dgnsH6/Listeners', 'SHELL': '/bin/bash', 'HOME': '/Users/mbpadmin', '__CF_USER_TEXT_ENCODING': '0x1F5:0x0:0x13', 'TMPDIR': '/var/folders/z6/jdg_pzzx70g_1__h6gw2n_580000gn/T/', 'XPC_SERVICE_NAME': 'application.Arelle.8643975288.8643975294', 'XPC_FLAGS': '0x0', 'TCL_LIBRARY': '/Applications/Arelle.app/Contents/MacOS/tcl8.6', 'TK_LIBRARY': '/Applications/Arelle.app/Contents/MacOS/tk8.6', 'TKTABLE_LIBRARY': '/Applications/Arelle.app/Contents/MacOS/Tktable2.11'})

Apr  8 08:10:33 mbp-home Arelle[10244]: tcl_pkgPath ('/Library/Frameworks/Python.framework/Versions/3.10/lib', '/usr/local/lib') tcl_library /Applications/Arelle.app/Contents/MacOS/tcl8.6 tcl version 8.6.11

Apr  8 08:11:00 mbp-home com.apple.xpc.launchd[1]: Coalition Cache Evicted: app<application.Arelle.8644003447.8644003463(502)> [155982]

Apr  8 08:11:00 mbp-home Dock[3225]: DEPRECATED USE in libdispatch client: Setting timer interval to 0 requests a 1ns timer, did you mean FOREVER (a one-shot timer)?; set a breakpoint on _dispatch_bug_deprecated to debug

Apr  8 08:11:03 mbp-home com.apple.appkit.xpc.openAndSavePanelService[10256]: assertion failed: 20D91: libxpc.dylib + 88537 [70F26262-01AA-3CEC-9FAD-2701D24096F0]: 0x89

Apr  8 08:11:06 mbp-home com.apple.xpc.launchd[1] (com.apple.mdworker.shared.0A000000-0600-0000-0000-000000000000[10243]): Service exited due to SIGKILL | sent by mds[95]

Daniel Owen van Dommelen

unread,
Jul 14, 2021, 4:31:02 PM7/14/21
to Arelle-users
Open Applications in Finder
Right click on Arelle -> Open package contents
Open Contents folder
Open MacOS folder
Open plugin folder
Open iXBRLViewerPlugin folder
Right click iXBRLViewer.py open in some code editor (or Text Editor)
Remove line 22
Then (with line 22 already removed) from line 106, change the code from:

def makeLanguageName(self, langCode):
code = re.sub("-.*","",langCode)
try:
language = pycountry.languages.lookup(code)
match = re.match(r'^[^-]+-(.*)$',langCode)
if match is not None:
name = "%s (%s)" % (name, match.group(1).upper())
except LookupError:
name = langCode

return name

to:

def makeLanguageName(self, langCode):
code = re.sub("-.*","",langCode)
name = langCode

return name

BE CAREFUL TO KEEP THE TABS IN THE RIGHT PLACE.

SK

unread,
Jul 15, 2021, 2:32:38 AM7/15/21
to Arelle-users

Many thanks, I appreciate your help with this (as the situation is still the same with Arelle 2021-07-08).

Changing the code in the particular file does in fact allow me to start Arelle again.
However, the plugin seems not to get activated properly. I can see it as "enabled" in the Plugin-Manager, but the menu (using GUI) seems to be missing. Also command line says "error: no such option: --save-viewer".

Do you have any futher ideas regarding this?

Once again, many thanks!

Victor S

unread,
Jul 26, 2021, 2:28:07 AM7/26/21
to Arelle-users
Did you manage to fix it?

On Thursday, April 8, 2021 at 8:13:36 AM UTC+2 sound...@mac.com wrote:

SK

unread,
Jul 26, 2021, 2:31:00 AM7/26/21
to Arelle-users
Unfortunately not. No iXBRL Viewer on macOs in my case (using Windows for this at the moment). 

Victor S

unread,
Jul 26, 2021, 9:23:09 AM7/26/21
to Arelle-users
So, what layout do you use to view and comment on iXBRL?

SK

unread,
Jul 27, 2021, 1:11:58 AM7/27/21
to Arelle-users
Unfortunately I am not sure what is meant with "layout". It is still possible to use Arelle for iXBRL validation, only the "preview" with the iXBRL viewer (which can be helpful) seems not possible on macOS at the moment.
I am not sure if there is some impact with my setup (e.g. manually installed python version) or if it is not working on all macOS systems currently. Also, as far as I can see Windows works fine.

Daniel Owen van Dommelen

unread,
Jul 30, 2021, 11:00:54 AM7/30/21
to Arelle-users
If it's only for viewing just look for an online viewer. It is the same as the one included with Arelle. I didn't check the one below, but Googling on online xbrl viewer should get you there.
Reply all
Reply to author
Forward
0 new messages