title: How to force PyQt5 use for QObject class?
body: <p>I'm developping a small graphic application using Python 3 and PyQt5.
  On the first computer I use, where only PyQt5 is installed, everything in my code is fine. But when I want to run my code on my other laptop, where both PyQt4 and PyQt5 are installed, I get the following error:</p>
  
  <pre><code>RuntimeError: the PyQt5.QtCore and PyQt4.QtCore modules both wrap the QObject class
  </code></pre>
  
  <p>Python interpreter locates the error in the file "ViewWindow.py", called from the main file.</p>
  
  <p>As I have both PyQt4 and PyQt5 on this laptop, and because I can't uninstall PyQt4 (it would be too easy...), I wonder if it's possible to force use of PyQt5.QtCore, or something else to avoid this problem.
  My configuration on this laptop: Debian 8, Python3.4, PyQt4 and 5 (without special configuration, installed from Debian repos), IDE = Spyder.</p>
  
  <p>I put there first lines of my files <code>main.py</code> and <code>ViewWindow.py</code>.</p>
  
  <pre><code># main.py
  import sys
  import sqlite3
  import ViewWindow
  from DataWindow import DataWindow
  from PyQt5.QtCore import QObject # I tried adding this line, but nothing changed...
  from PyQt5.QtWidgets import (QApplication,
                           QWidget,
                           QGridLayout,
                           QHBoxLayout,
                           QLabel,
                           QLineEdit,
                           QPushButton,
                           QTextEdit,
                           QVBoxLayout
                           )
  
  
  class MainWindow(QWidget):
      # Some cool stuff
  
  
  # ViewWindow.py
  import sys
  import sqlite3
  from PyQt5.QtCore import QObject # same thing than above, adding this line doesn't change the output.
  from PyQt5.QtWidgets import (QApplication,
                           QWidget,
                           QGridLayout,
                           QLabel,
                           QPushButton,
                           QVBoxLayout
                           )
  
  
  class ViewWindow(QWidget):
  </code></pre>
  
  <p>Does someone knows how to make this code run ?</p>
  
  <p>Thanks,</p>
  
  <p>Jerry M.</p>
  
  <hr>
  
  <p>Edit: I tried to run that script forcing use of Python3, and it worked... It seems that problem comes from iPython3.
  Thanks for your help.</p>