[Qgis-developer] python: no module name core
Richard Duivenvoorde
rdmailings at duif.net
Tue May 20 10:38:06 PDT 2014
Hi Alexander,
that is another problem, discussed yesterday.
You have a build which installed soem customwidgets stuff for qgis
widgets to be used in Qt-Designer
The option:
-DWITH_CUSTOM_WIDGETS=FALSE
would have prevented that, but was enabled by default.
Since today it is false again by default I think...
The problem is that by the global install you have a
qgis_customwidgets.py somewhere in
/usr/lib/python2.7/dist-packages/PyQt4.
and a libqgis_customwidgets.so.2.3.0 file somehere around
/usr/lib/qt4/plugins/designer/
both should be removed if you do not have the qgis libs installed globally.
All this is solved now, but I think you should remove those to be clean
again.
Regards,
Richard
On 20-05-14 18:21, Alexander Bruy wrote:
> Hi,
>
> I also have troubles with Python plugins and bindings. For example build failed
> with error
>
> [ 6%] Generating ui_frmVectorGrid.py
> An unexpected error occurred.
> Check that you are using the latest version of PyQt and send an error report to
> support at riverbankcomputing.com, including the following information:
>
> * your version of PyQt (4.9.1)
> * the UI file that caused this error
> * the debug output of pyuic4 (use the -d flag when calling pyuic4)
> An unexpected error occurred.
> Check that you are using the latest version of PyQt and send an error report to
> support at riverbankcomputing.com, including the following information:
>
> * your version of PyQt (4.9.1)
> * the UI file that caused this error
> * the debug output of pyuic4 (use the -d flag when calling pyuic4)
> make[2]: *** [python/plugins/fTools/tools/ui_frmVectorGrid.py] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[2]: *** [python/plugins/fTools/tools/ui_frmRandom.py] Error 1
> make[1]: *** [python/plugins/fTools/tools/CMakeFiles/fTools-tools-stageinstall.dir/all]
> Error 2
> make[1]: *** Waiting for unfinished jobs....
>
> This is strange, as my system has Qt 4.8.2 not 4.9.1 Cleant rebuild
> and install doesn't
> helps.
>
>
> 2014-05-20 17:42 GMT+03:00 Nathan Woodrow <madmanwoo at gmail.com>:
>> This seems to be due to my changes today, although I'm not sure what is
>> going on unless I stuffed up the cmake files.
>>
>> qgis.core is now a package i.e folder and it imports the sip modules, now
>> called _core, _gui, etc.
>>
>> For some reason the package is missing the core, gui, package folders.
>>
>> - Nathan
>>
>>
>> On Wed, May 21, 2014 at 12:34 AM, Victor Olaya <volayaf at gmail.com> wrote:
>>>
>>> it works fine here
>>>
>>> It might be that you have a plugin that has a package called qgis, which
>>> might be shadowing the core one.
>>>
>>>
>>> 2014-05-20 16:27 GMT+02:00 Denis Rouzaud <denis.rouzaud at gmail.com>:
>>>>
>>>> Hi all,
>>>>
>>>> From python console, running from qgis.core import * gives:
>>>> Traceback (most recent call last):
>>>> File "<stdin>", line 1, in <module>
>>>> File "/usr/lib/python2.7/dist-packages/qgis/__init__.py", line 36, in
>>>> <module>
>>>> from qgis.core import QgsFeature, QgsGeometry
>>>> ImportError: No module named core
>>>>
>>>> Any idea what's going on?
>>>>
>>>> Cheers,
>>>>
>>>> Denis
>>>>
>>>> _______________________________________________
>>>> Qgis-developer mailing list
>>>> Qgis-developer at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>>
>>>
>>>
>>> _______________________________________________
>>> Qgis-developer mailing list
>>> Qgis-developer at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>>
>>
>> _______________________________________________
>> 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