title: PySide2, Qt Creator run issue: Could not load the Qt platform plugin "cocoa" in "" even though it was found
body: <p>Teaching myself Python. Using tons of tools on a Windows computer for work and my Mac personally. On my Mac, I have been trying to get Qt and PySide2 to work together.</p>
  
  <p>I was following <a href="https://resources.qt.io/development-topic-application-development/getting-started-with-qt-for-python-tutorial" rel="nofollow noreferrer">this video tutorial</a>. I got stuck at the 1:47 mark when I launched the terminal and got the following message in the terminal output.</p>
  
  <blockquote>
    <p>Last login: Sat Aug 18 16:13:01 on ttys001
    cd /anaconda3/lib/python3.6/site-packages/PySide2/examples/charts;
    Jasons-MacBook:~ jason$ cd /anaconda3/lib/python3.6/site-packages/PySide2/examples/charts;
    Jasons-MacBook:charts jason$ python memoryusage.py
    objc[9326]: Class RunLoopModeTracker is implemented in both /anaconda3/lib/python3.6/site-packages/PySide2/Qt/lib/QtCore.framework/Versions/5/QtCore (0x107fb6498) and /anaconda3/lib/libQt5Core.5.9.5.dylib (0x10d4d6a80). One of the two will be used. Which one is undefined.
    QObject::moveToThread: Current thread (0x7f9a27736ca0) is not the object's thread (0x7f9a29884c00).
    Cannot move to target thread (0x7f9a27736ca0)</p>
    
    <p>You might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
    qt.qpa.plugin: Could not load the Qt platform plugin "cocoa" in "" even though it was found.
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.</p>
    
    <p>Available platform plugins are: cocoa, minimal, offscreen.</p>
  </blockquote>
  
  <p>Please advise. Take note. I am not a computer expert but use Windows and Mac enough to get myself in trouble as per the above.</p>
  
  <p>It appears to me the message is stating that it is confused with which Qt core to load based on the two locations given, then suggests a reinstall. When it states to reinstall the application, which one does it mean? </p>
  
  <p>In conclusion, could some please advise how I can resolve the issue so I can continue to Qt for Python aka PySide2 tutorial video.</p>
  
  <p>Best Regards.</p>