Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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 youhave any other suggestions or ideas?

Best

share|improve this question
add comment

1 Answer

up vote 2 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
add comment

Your Answer

 
discard

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.