I want to publish the documentation of my project https://bitbucket.org/oaltun/opn in readthedocs.org.
The build fails. There are different errors shown in the log
The trick is to mock these interfaces:
import mock MOCK_MODULES = ['sip', 'PyQt4', 'PyQt4.QtGui'] sys.modules.update((mod_name, mock.MagicMock()) for mod_name in MOCK_MODULES)
Note that you must also mock the root package 'PyQt4' or will get an ImportError.