[Qgis-developer] Problem with my first plugin in Python

Luigi Pirelli luipir at gmail.com
Wed Sep 17 03:41:23 PDT 2014


probabily your're mixing pyqt4 from osgeo4w installation with pyqt4 as
standalone installation (with python)... to solve it's a good shortcut
launch your pycharm from a .bat script similar to that used to start
QGIS (copy and edit it)... leave loading osgeo4w env and add
pythonpath to point your qgis install.

Regards, Luigi Pirelli (luigi.pirelli at faunalia.it - luipir at gmail.com)

On 16 September 2014 22:57, Gary Sherman <gsherman at geoapt.com> wrote:
> To begin with, you need to be using Python 2.x from PyCharm (the one
> included with your QGIS install).
>
> On Tue, Sep 16, 2014 at 12:18 PM, Francisco D. Salas Rosette
> <fsalas at pinar.geocuba.cu> wrote:
>>
>> Hi,  I am novice in this topic and I use a QGis plugin builder , when I
>> load the plugin in  PyCharm , is not possible accede the package
>> PyQt4.QtGui, show this in  QtGui.py
>>
>>
>>
>> # encoding: utf-8
>>
>> # module PyQt4.QtGui
>>
>> # from D:\Python34\lib\site-packages\PyQt4\QtGui.pyd
>>
>> # by generator 1.124
>>
>>
>>
>> # Skeleton generation error:
>>
>> #
>>
>> #     Failed to process 'PyQt4.QtGui' while redoing innards of module
>> 'PyQt4.QtGui' "<module 'PyQt4.QtGui' from
>> 'D:\\\\Python34\\\\lib\\\\site-packages\\\\PyQt4\\\\QtGui.pyd'>": wrapped
>> C/C++ object of type QApplication has been deleted
>>
>>
>>
>> How I could resolve this, because I need use for example : the Class
>> QMessageBox, etc.
>>
>>
>>
>> Thanks!
>>
>>
>>
>> Best regards,
>>
>> Francisco Salas
>>
>>
>>
>>
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
>
>
> --
> -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
> Gary Sherman
> Chair, QGIS Project Steering Committee
> -Open Source GIS Books:
>  *http://locatepress.com
> -Alaska Novel:
>  *http://alaskana.co
> -Geospatial Consulting & Hosting:
>  *http://geoapt.com
> "We work virtually everywhere"
> -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the Qgis-developer mailing list