Enter a mismatch when calling the function in qtpselenium

The first time I tried to create a simple plugin, I encountered this error:

ImportError: Name cannot be imported

I'm using QGIS 2.6.0 for Windows, the QT Designer that comes with this package, and the Plugin Builder Plugin 2.0.3

I've created the simplest user interface, almost identical to the one at http://anitagraser.com/2014/04/26/getting-started-writing-qgis-2-x-plugins/.

Compiled the UI and resource file according to the instructions and placed the folder within the boundaries of the QGIS folder.

When opening QGIS and then the plugin manager I saw my plugin and tried to click on it and the DLG box reported this error (full batch, under "==="):

Import file "C: / PROGRA ~ 1 / QGISBR ~ 1 / apps / qgis /./ python / plugins \ TestPlugin \ testplugindialog.py", line 24, from ui_testplugin Ui_TestPlugin ImportError: Name Ui_TestPlugin cannot be imported

I'm inferring a circular import or other problem, but the referenced file is created by the Plugin Builder.

Can someone give some clues as to why this error occurs?


The TestPlugin plugin could not be loaded due to an error calling its classFactory () method

Python version: 2.7.5 (default, May 15, 2013, 10:44:16 pm) & lsqb; MSC v.1500 64-bit (AMD64) & rsqb;

I hadn't changed the object name for the dialog object in QT. I mistakenly assumed the name was generic / default and applied it as such to the plugin builder. After I changed the name of the dialog object it worked. The hint came from the class name mismatch in the compiled code.