psychopy.org | Reference | Downloads | Github

Psychopy1.90.3(or Psychopy3.0) cannot open on the mac OS Mojave


#1

OS: mac OS Mojave 10.14.1 (18B75)
Psychopy version: Psychopy1.90.3(or Psychopy3.0 11b)

Hi everyone,

Yesterday, I updated my mac OS to Mojave. Today, I found I cannot open the psychopy1.90.3(or Psychopy3.0). After opening, the result was shown in the picture.

Could anyone give some suggestions how to deal with this problem.

The errors are pasted as below:

2018-11-21 11:11:39.662 xcodebuild[1061:23036] [MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.IDE.DVTKitDFRSupport (/Applications/Xcode.app/Contents/PlugIns/DVTKitDFRSupport.ideplugin), error = Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode.app/Contents/PlugIns/DVTKitDFRSupport.ideplugin/Contents/MacOS/DVTKitDFRSupport, 265): Symbol not found: _OBJC_IVAR_$_NSTextViewIvars.sharedData
  Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit
  Expected in: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
 in /Applications/Xcode.app/Contents/Developer/usr/bin/../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/DVTKitDFRSupport.ideplugin/Contents/MacOS/DVTKitDFRSupport, NSDebugDescription=dlopen(/Applications/Xcode.app/Contents/PlugIns/DVTKitDFRSupport.ideplugin/Contents/MacOS/DVTKitDFRSupport, 265): Symbol not found: _OBJC_IVAR_$_NSTextViewIvars.sharedData
  Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit
  Expected in: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
 in /Applications/Xcode.app/Contents/Developer/usr/bin/../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit, NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/DVTKitDFRSupport.ideplugin, NSLocalizedDescription=The bundle “DVTKitDFRSupport” couldn’t be loaded.}, dyldError = dlopen(/Applications/Xcode.app/Contents/PlugIns/DVTKitDFRSupport.ideplugin/Contents/MacOS/DVTKitDFRSupport, 0): Symbol not found: _OBJC_IVAR_$_NSTextViewIvars.sharedData
  Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit
  Expected in: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
 in /Applications/Xcode.app/Contents/Developer/usr/bin/../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit
2018-11-21 11:11:39.662 xcodebuild[1061:23036] [MT] DVTPlugInExtensionFaulting: Failed to fire fault for extension Xcode.DVTKitDFRSupport.Initializer: Error Domain=DVTPlugInErrorDomain Code=2 "Loading a plug-in failed." UserInfo={DVTPlugInIdentifierErrorKey=com.apple.dt.IDE.DVTKitDFRSupport, DVTPlugInExecutablePathErrorKey=/Applications/Xcode.app/Contents/PlugIns/DVTKitDFRSupport.ideplugin/Contents/MacOS/DVTKitDFRSupport, NSLocalizedRecoverySuggestion=The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled., DVTPlugInDYLDErrorMessageErrorKey=dlopen(/Applications/Xcode.app/Contents/PlugIns/DVTKitDFRSupport.ideplugin/Contents/MacOS/DVTKitDFRSupport, 0): Symbol not found: _OBJC_IVAR_$_NSTextViewIvars.sharedData
  Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit
  Expected in: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
 in /Applications/Xcode.app/Contents/Developer/usr/bin/../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit, NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/DVTKitDFRSupport.ideplugin, NSLocalizedFailureReason=The plug-in “com.apple.dt.IDE.DVTKitDFRSupport” at path “/Applications/Xcode.app/Contents/PlugIns/DVTKitDFRSupport.ideplugin” could not be loaded.  The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x7fbaeec0f240 {Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode.app/Contents/PlugIns/DVTKitDFRSupport.ideplugin/Contents/MacOS/DVTKitDFRSupport, 265): Symbol not found: _OBJC_IVAR_$_NSTextViewIvars.sharedData
  Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit
  Expected in: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
 in /Applications/Xcode.app/Contents/Developer/usr/bin/../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/DVTKitDFRSupport.ideplugin/Contents/MacOS/DVTKitDFRSupport, NSDebugDescription=dlopen(/Applications/Xcode.app/Contents/PlugIns/DVTKitDFRSupport.ideplugin/Contents/MacOS/DVTKitDFRSupport, 265): Symbol not found: _OBJC_IVAR_$_NSTextViewIvars.sharedData
  Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit
  Expected in: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
 in /Applications/Xcode.app/Contents/Developer/usr/bin/../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit, NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/DVTKitDFRSupport.ideplugin, NSLocalizedDescription=The bundle “DVTKitDFRSupport” couldn’t be loaded.}}}
** INTERNAL ERROR: Uncaught exception **
Uncaught Exception: Error getting value for key 'initializationClass' of extension 'Xcode.DVTKitDFRSupport.Initializer' in plug-in 'com.apple.dt.IDE.DVTKitDFRSupport'
Stack:
  0   __exceptionPreprocess (in CoreFoundation)
  1   objc_exception_throw (in libobjc.A.dylib)
  2   -[DVTExtension valueForKey:error:] (in DVTFoundation)
  3   _IDEInitializeOnePlugInAndPrerequisites (in IDEFoundation)
  4   _IDEInitializePlugIns (in IDEFoundation)
  5   IDEInitialize (in IDEFoundation)
  6   -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
  7  0x000000010a2b4202 (in xcodebuild)
  8   start (in libdyld.dylib)

sh: line 1:  1063 Abort trap: 6           /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk macosx -find git 2> /dev/null
git: error: unable to find utility "git", not a developer tool or in PATH
Traceback (most recent call last):
  File "/Applications/PsychoPy2.app/Contents/Resources/__boot__.py", line 430, in <module>
    _run()
  File "/Applications/PsychoPy2.app/Contents/Resources/__boot__.py", line 409, in _run
    exec(compile(source, path, 'exec'), globals(), globals())
  File "/Applications/PsychoPy2.app/Contents/Resources/psychopyApp.py", line 96, in <module>
    start_app()
  File "/Applications/PsychoPy2.app/Contents/Resources/psychopyApp.py", line 28, in start_app
    app = PsychoPyApp(0, showSplash=showSplash)
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/_psychopyApp.py", line 175, in __init__
    self.onInit(testMode=testMode, **kwargs)
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/_psychopyApp.py", line 301, in onInit
    self.showBuilder(fileList=exps)
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/_psychopyApp.py", line 513, in showBuilder
    self.newBuilderFrame()
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/_psychopyApp.py", line 499, in newBuilderFrame
    fileName=fileName, app=self)
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/builder/builder.py", line 1126, in __init__
    self.fileNew(closeCurrent=False)
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/builder/builder.py", line 1544, in fileNew
    self.exp = experiment.Experiment(prefs=self.app.prefs)
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/experiment/_experiment.py", line 77, in __init__
    self.settings = _settingsComp(parentName='', exp=self)
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/experiment/components/settings/__init__.py", line 151, in __init__
    allowedVals=versionOptions() + [''] + availableVersions(),
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/tools/versionchooser.py", line 172, in versionOptions
    for v in availableVersions(local=local)}),
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/tools/versionchooser.py", line 223, in availableVersions
    return _localVersions(forceCheck)
  File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/tools/versionchooser.py", line 186, in _localVersions
    tagInfo = subprocess.check_output(cmd.split(), cwd=VERSIONSDIR).decode('UTF-8')
  File "subprocess.pyc", line 574, in check_output
subprocess.CalledProcessError: Command '['git', 'tag']' returned non-zero exit status 72
2018-11-21 11:11:40.510 PsychoPy2[1009:22490] PsychoPy2 Error


#2

Ah, OK, I can see where this problem is coming from now (and why it didn’t affect me on my own Mojave machine). Try installing git on your computer. https://git-scm.com/

Explanation: we use an application called git to switch between versions of PsychoPy at run-time. We check if this is installed first, but it seems that the process of checking is no longer working under Mojave. The result is that PsychoPy thinks git is installed and proceeds to try and use it but falls over.

Thanks for getting a full error message to us. That will help us fix the issue more gracefully.

And do let me know if there are further problems after git is installed


PsychoPy won't open in mac os mojave
#3

Hi, @jon, thanks for your quickly reply. Later, i tried to open the Xcode(older version 8.0) app on the Mojave OS according the error hint, and i found the Xcode app was also cannot open. So i reinstalled the latest version of Xcode(10.0). After that i can open the Psychopy software smoothly. Maybe the git was also installed accompany the installing of Xcode app?
Anyway, thank you so much.


#4

Yes, installing XCode is one way to install git