Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to use ReportLab in my own plugin which I have written for QGIS. I have installed ReportLab for the python versions 2.4, 2.5 and 2.6. The package is respectively installed into the site-packages folder (e.g. C:/Python24/Lib/site-packages/reportLab).

If I want to use the tool in my plugin, the plugin returns the error "ImportError: no module named reportLab". I have set the path to the modul into the environment variables, but this doesn´t help.

I try to import the module by "from reportLab.pdfgen import *".

Do you have any other suggestions or ideas?

share|improve this question
up vote 3 down vote accepted

If you want Qgis to use the python lib, you have to put it in

C:\Programs\Quantum GIS Lisboa\apps\Python27\Lib\site-packages

(or whereever your Qgis is installed to). The C:\Python24 installation will not be used by Qgis.

share|improve this answer
That works! Thx! – kopi Aug 9 '12 at 10:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.