Developing a plugin with Qt Designer for QGIS 2.14.1-Essen on Windows 7 and having trouble inserting the QgsCollapsibleGroupBox widget. I receive the following error:     ImportError: No module named qgscollapsiblegroupbox   I put from qgis.gui import QgsCollapsibleGroupBox into my main.py file but it still doesn't recognise it. Only post I found which mentioned this error is  but not exactly sure how to install this qgis_customwidgets.py file.   I would like this plugin to be transferred to other computers but would like to avoid having to install this file each time (if it is indeed required).  Is there another way to use this type of widget or perhaps a method to save the qgis_customwidgets.py into my plugin directory and just call the module?
122221
My  works on Ubuntu (at least for me, and all fatal bugs reported so far are solved), but when I run it on QGIS installed from the official 2.10.1 64-bit installer for Windows (on Windows 7 64-bit), I can't install it due to following error:  This plugin is broken No module named qgsprojectionselectionwidget   Another user reported it this problem as well. but with another error message (I don't know which operation system and architecture does he have, but I'd guess Windows and 64-bit EDIT: I guessed wrong, he has Mac OS X):  This plugin is broken No module named qgsmaplayercombobox   Both refer to widgets in the GUI form, which I built through Qt Designer in Ubuntu. Qt Designer is packed with QGIS installer for Windows as well and claims to contain the same QGIS custom widgets, so the problem shouldn't be in those widgets missing, and QGIS should recognize them - but it doesn't.  So how to fix it? My plugin is still experimental, so I can just add "sorry, doesn't work under Windows" to the metadata, but it's not a real solution.  EDIT: the same behavior confirmed on 32-bit version too.  Now I found a good hint in comment to : use os.path.join to make the paths cross-platform. This is easy for the few hardcoded paths I have, but the errors seems to suggest the problem is deeper, perhaps even in Qt. How can I handle this problem in my plugin without tweaking anything else?
89047
I am working with a fresh install of Ubuntu 18.04 and installed QGIS using . I get the following error when I launch QGIS:  Couldn't load PyQt. Python support will be disabled. Traceback (most recent call last):   File "", line 1, in  ImportError: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /usr/local/lib/python3.6/dist-packages/PyQt5/QtCore.so) Python version: 3.6.5 (default, Apr  1 2018, 05:46:30)  [GCC 7.3.0]  QGIS version: 3.0.3-Girona 'Girona', 8a899c8  Python path: ['/usr/share/qgis/python', '/home/ned/.local/share/QGIS/QGIS3/profiles/default/python', '/home/ned/.local/share/QGIS/QGIS3/profiles/default/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/usr/local/lib/python3.6/dist-packages', '/usr/lib/python3/dist-packages']   A similar error has been reported as a bug () but I haven’t seen a workaround.  I tried to install 2.18 (ltr) but apt-get failed with:  qgis : Depends: python-qgis (= 1:2.18.20+28bionic) but 1:3.1.0+git20180529+ad1fef9+28bionic is to be installed   Any suggestions on how to get QGIS working on Ubuntu 18.04?
109230
Related to the following question but looking for a PyQGIS method:      The following is a simple setup containing a group with three layers.    The code I use adds a new layer at the end of this group:  root = QgsProject.instance().layerTreeRoot() group = root.findGroup('Main group')  vlayer = QgsVectorLayer('LineString?crs=epsg:27700', 'vlayer', 'memory') QgsMapLayerRegistry.instance().addMapLayer(vlayer, False) group.insertChildNode(-1, QgsLayerTreeLayer(vlayer))       In the Layer Order Panel, the newly added layer is at the end.       Is it possible to move this to the top without moving the layer in the Layers Panel?
107204
I'm trying to install plugins on a fresh install of QGIS 2.18.12. I can connect to the plugins repository but trying to install any plugin fails with the error message:  Failed to unzip plugin package. Probably it is broken or missing from the repository. You may also want to make sure that you have right permissions to the plugin directory  I've tried rebooting and and checked permissions on the repository folder. I've also tried setting an http proxy in the network settings.  None of the above have worked.
2484
I am trying to go trough a simple Blender tutorial in which I need to use module Rasterizer. Unfortunately my Blender has no such module. As far as I know Blender has its own Python so there should be no collision with other  EDIT: Yes, question concerns BGE. As fas as I saw I have none of the modules that should be in Blender: no bge for example. I dont think there is need to get the link to the tutorial, as Blender Python console simply states that script failed, and the script is:  import Rasterizer   or  import bge   both fail.  EDIT2: I have downloaded a new version of Blender 2.68a. When it starts writes: found bundled python. I have for example bpy module but no bge module. It seems I have absolutely no Game Engine module. What a pity! :(
42139
I have been trying to teach myself QGIS by using this forum and others to help. Most of my questions can be answered by downloading plugins that are available through 3rd party repositories but for some reason I am not able to connect with these. Anyone have any ideas why this is the case?
38252
For purpose of a project, I created a project in QGIS - aerophoto base and 3 layers. It works perfect on my computer, but if I save it on CD, the project doesent work on any other computer... I saved all data for layers &amp; project works from CD, but only on computer, where it was created.  How can I save it, so it will be working on other comps, since I have to distribute this project to other partners?  I am using windows and QGIS 1.8.0. Lisboa  EDIT &amp; MORE INFO: my project is aerophoto based with one raster and 2 vector layers. It works on my comp (where QGIS 1.8.0 Lisboa is installed).  Now I need to put it on USB (and few on CD), so I can take to my menthor and cooperants to see it...  I copied all data (those are in same folder), I downloaded the QGIS Lisboa (.exe file) so everyone can install it. Now all is on usb. It works on my computer, where this was created. But when I try to see it on laptop (after installing QGIS), it serves me with error (runtime error) - same on my friend computer.  Proposal to make a USB option of qgis is nice, I am in a process of trying, but i suspect there is something else, because error is reported.  if possible, step by step solution, because I am comp analphabet actually :(
62235
I stumbled across the GRASS-Tool  but could not find it in my QGIS processing toolbox. I found out that it is an addon for  GRASS 7 that I already installed in GRASS 7 standalone. How can I import Grass 7 into QGIS?  I installed the latest QGIS Version with the OSGeo4W installer and enabled Grass for installation. The thing is, that the OSGeo4W installation installed Grass 6.4.3 and not Grass 7.  I do know how to  (I have already done this for Grass 6.4.3 and for OTB). I am wondering how it is possible to make GRASS 7 (tools and addons) available within the processing toolbox?   I updated Windows 7 to Windows 10.
56701
I have been trying to get rasterio working with my QGIS setup so that I can take advantage of the fast raster manipulations.  After a day of installing / uninstalling and then piece by piece searching and getting components installed one by one where needed (From upgrading GDAL, numpy, and a whole slew of other modules which were fighting each other) I manged to get to the point where I could import rasterio without any errors.  However now when I run, the first call in the example causes a Traceback:  with rasterio.drivers(CPL_DEBUG=True):     creates error =>  TypeError: 'module' object is not callable   I have noticed that other rasterio objects seem fine, but all functions that are in .pyc files have this same issue.  Any help?  - I will continue in the morning, but I was hoping some elves would appear and help solve this one tonight! :-)
9558
Although I have installed the OpenLayers plugin in QGIS 2.4, I cannot see it in the list when I click on Plugins.    Does anyone else have this issue?
114486
I need to start learning Python, and I want to learn with version 3.x. I understand that QGIS--at least some plug-ins--relies on Python and Tcl/Tk, and probably on specific versions. Assuming that QGIS is dependent on Python 2, can anyone tell me how to set up parallel installations of Python 3 and Tcl/Tk such that QGIS will have what it needs and I can use Python 3 for other purposes?
70980
has anybody been successful getting pandas to work with QGIS's Python installation, on Windows? I've used the OSGeo4W installer to install QGIS2.2, which comes with Python 2.7 and Numpy 1.5.1. Any reasonably new version of pandas requires Numpy 1.6.1 or newer. So that seems like my main problem. I've tried: - Building an older version of pandas (e.g. 0.7.3 and 0.4.1) using easy_install, but that gives me a very long list of errors, at least the last of which are related to distutils\msvc9compiler.py - Using binaries of old pandas versions, but they are all built for Numpy 1.6.1 - Upgrading Numpy, which also gives me an error message. In case anybody is interested, the message ends with "File “C:\OSGeo4W\apps\Python27\lib\distutils\msvc9compiler.py”, line 299, in query_vcvarsall” newline “raise ValueERror(str(list(result.keys())))” newline “ValueError: [u’path’]"  I'm wondering if anybody else has ever been successful in getting pandas to work with a QGIS install on Windows??  It would be so easy if QGIS would ship with, say, a version of Numpy that's less than three years old. Does anybody know if such an upgrade is in the works for upcoming QGIS versions?
111454
Running on Mac OS.  I am using a composer template that I have used in the past with this version of QGIS (3.2) that uses an atlas. Now it does not display the Atlas tab in the composer.  The generate atlas box is checked.    I then installed 3.4 with the same result. Next I tried opening an empty composer and loaded a map, still no Atlas tab and checking the generate atlas box had no effect (it did not register -- no tick -- it appears disabled).  I swapped to a near identical system and started QGIS 3.2 opening the same project (it is stored on Google Drive) using the same PostGIS database with the same result.  Anyone have any idea what is going on?   I last used this print template a few months ago.
51148
I am rewritting a custom QGIS application as a plugin for QGIS. I am testing it by writing some new code, then deactivate/activate the plugin in the plugin manager, which seems to me a bit cumbersome. Is there a way to reload the plugin faster?
84557
I want to access the  outside of QGIS from a standalone script.  What module do I have to load in order to use it?   How can I access processing?  from qgis.core import *  layerInput = QgsVectorLayer('test.shp', 'test', 'ogr')  processing.runalg('qgis:explodelines', layerInput, 'temp.shp')
88469
I'm making a plugin were i want to get the min and max value of a raster. When i tried the following code in the qgis python console it worked fine but in my plugin code i get the following error   ver = provider.hasStatistics(1, QgsRasterBandStats.All)  NameError: global name 'QgsRasterBandStats' is not defined   The code i m using is:      layer = self.iface.activeLayer()     renderer = layer.renderer()     provider = layer.dataProvider()     extent = layer.extent()      ver = provider.hasStatistics(1, QgsRasterBandStats.All)      stats = provider.bandStatistics(1, QgsRasterBandStats.All,extent, 0)      minum= stats.minimumValue     maxim = stats.maximumValue      self.dlg.lineEdit.addItems(minum)      self.dlg.lineEdit_2.addItems(maxim)       It look like QgsRasterBandStats isn't included in my python plugin. How can i include this?
34870
I'm looking for some resources for learning PyQGIS.  It would be interesting having a collection of books or websites that provide some practical examples for learning the syntax or accomplishing specific tasks.  Ideally, these resources should give a general guidance for both beginner and experienced users.   is a very similar question, but it gives help for learning QGIS, and not specifically PyQGIS (in fact, it doesn't have the PyQGIS tag).  Any help?