title: "Module use of python34.dll conflicts with this version of Python"
body: <p>My knowledge of Python is still pretty basic, and I am only now trying to wrap my head around how to use / call libraries from within Maya. (Because I need to create a basic UI from QT Designer and have it be opened in Maya after converting it to a .py file)</p>
  <p>After I learned to properly convert a .ui to a .py, I now get this error in Maya</p>
  <blockquote>
  <p>&quot;Module use of python34.dll conflicts with this version of Python&quot;</p>
  </blockquote>
  <p>I tried following what was said <a href="https://stackoverflow.com/questions/28826410/importerror-module-use-of-python27-dll-conflicts-with-this-version-of-python">here</a> and <a href="http://forums.autodesk.com/t5/maya-forum/maya-2015-startup-error-python-conflicting/td-p/5509095" rel="nofollow noreferrer">here</a>, but even then - after setting these environment variables...</p>
  <blockquote>
  <p>PYTHONHOME = C:\Program Files\Autodesk\Maya2016\bin\maya.exe</p>
  <p>PYTHONPATH = C:\Python34</p>
  </blockquote>
  <p>... I a still unable to run a basic .py file. In fact - as long as the PYTHONHOME variable is in effect, Python from within Maya no longer does anything.</p>
  <p>This code below is the resulting python file that I got from converting the .ui file that I saved out of QT Designer.</p>
  <pre><code># -*- coding: utf-8 -*-
  
  # Form implementation generated from reading ui file 'test.ui'
  #
  # Created by: PyQt5 UI code generator 5.4.1
  #
  # WARNING! All changes made in this file will be lost!
  
  from PyQt5 import QtCore, QtGui, QtWidgets
  
  class Ui_Dialog(object):
      def setupUi(self, Dialog):
          Dialog.setObjectName(&quot;Dialog&quot;)
          Dialog.resize(400, 300)
          self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
          self.buttonBox.setGeometry(QtCore.QRect(30, 240, 341, 32))
          self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
          self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
          self.buttonBox.setObjectName(&quot;buttonBox&quot;)
  
          self.retranslateUi(Dialog)
          self.buttonBox.accepted.connect(Dialog.accept)
          self.buttonBox.rejected.connect(Dialog.reject)
          QtCore.QMetaObject.connectSlotsByName(Dialog)
  
      def retranslateUi(self, Dialog):
          _translate = QtCore.QCoreApplication.translate
          Dialog.setWindowTitle(_translate(&quot;Dialog&quot;, &quot;Dialog&quot;))
  
  
  if __name__ == &quot;__main__&quot;:
      import sys
      app = QtWidgets.QApplication(sys.argv)
      Dialog = QtWidgets.QDialog()
      ui = Ui_Dialog()
      ui.setupUi(Dialog)
      Dialog.show()
      sys.exit(app.exec_())
  </code></pre>
  <p>I've come across some different online notes that advised the use of PySide, and after trying to use:</p>
  <pre><code>from PySide.QtCore import *
  from PySide.QtGui import *
  </code></pre>
  <p>I still couldn't test if this works, because apparently QtWidgets isn't a module?</p>
  <p>I'm pretty lost. The bigger picture is that I just want to be able to run a ui created from QT Designer from Maya's script editor. I have no idea where to begin with learning about libraries. Would anyone here be kind enough to give some advice?</p>
  <p>Additional info:</p>
  <pre><code>I am using Maya 2016, running on a Windows 10 64 bit OS.
  I also have a Python 2.7 in my C: drive 
  And I am using PyQt5-5.4.1-gpl-Py3.4-Qt5.4.1-x64
  </code></pre>
  <p>Thank you for your time.</p>