R cannot be initialized - MacOS 10.15.5 - KNIME 4.1.3

Rebuilding the Spotlight index for the whole drive did not fix the issue. Since it seems that the indexing in the “/Applications” directory was still disabled.

Careful with “sudo mdutil -E”. It will cause each local store for the volumes indicated to be erased. The stores will be rebuilt if appropriate.

To check the indexing status “sudo mdutil -s” can be used instead.

user@MBP /Applications % sudo mdutil -E /Applications

/System/Volumes/Data/Applications:
2020-07-23 10:40:51.171 mdutil[41004:1597023] mdutil disabling Spotlight: /System/Volumes/Data/Applications → kMDConfigSearchLevelFSSearchOnly
Indexing disabled.

Switching on indexing:

user@MBP /Applications % sudo mdutil -i on /Applications

/System/Volumes/Data/Applications:
Indexing enabled.

Now “mdls” reports the all metadata entries and the KNIME is able to
confirm the R installation and runs without any issues.

user@MBP Utilities % mdls XQuartz.app

_kMDItemDisplayNameWithExtensions = “XQuartz.app”
kMDItemAlternateNames = (
“XQuartz.app”
)
kMDItemAppStoreCategory = “Utilities”
kMDItemAppStoreCategoryType = “public.app-category.utilities”
kMDItemCFBundleIdentifier = “org.macosforge.xquartz.X11”
kMDItemContentCreationDate = 2016-09-26 07:41:50 +0000
kMDItemContentCreationDate_Ranking = 2016-09-26 00:00:00 +0000
kMDItemContentModificationDate = 2020-07-23 08:23:54 +0000
kMDItemContentModificationDate_Ranking = 2020-07-23 00:00:00 +0000
kMDItemContentType = “com.apple.application-bundle”
kMDItemContentTypeTree = (
“com.apple.application-bundle”,
“com.apple.application”,
“public.executable”,
“com.apple.localizable-name-bundle”,
“com.apple.bundle”,
“public.directory”,
“public.item”,
“com.apple.package”
)
kMDItemCopyright = "© 2003-2016 Apple Inc. © 2003 XFree86 Project, Inc. © 2003-2016 X.org Foundation, Inc. "
kMDItemDateAdded = 2020-06-21 08:35:01 +0000
kMDItemDateAdded_Ranking = 2020-06-21 00:00:00 +0000
kMDItemDisplayName = “XQuartz.app”
kMDItemDocumentIdentifier = 0
kMDItemFSContentChangeDate = 2020-07-23 08:23:54 +0000
kMDItemFSCreationDate = 2016-09-26 07:41:50 +0000
kMDItemFSCreatorCode = “”
kMDItemFSFinderFlags = 0
kMDItemFSHasCustomIcon = 0
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery = 0
kMDItemFSLabel = 0
kMDItemFSName = “XQuartz.app”
kMDItemFSNodeCount = 1
kMDItemFSOwnerGroupID = 0
kMDItemFSOwnerUserID = 0
kMDItemFSSize = 1
kMDItemFSTypeCode = “”
kMDItemInterestingDate_Ranking = 2020-07-23 00:00:00 +0000
kMDItemKind = “Application”
kMDItemLogicalSize = 7949322
kMDItemPhysicalSize = 8499200
kMDItemVersion = “2.7.11”

I hope that this helps other people in the future!

Cheers
Oliver

4 Likes