<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>Python inside QGis has no access to plugins installed by pip if
called from normal shell.</p>
<p>But running "pip install reportlab" from the osgeo4w-shell should
do it.</p>
<p><br>
</p>
<p>"pip show reportlab" after pip-from-shell-installation returns <br>
</p>
<p>"Location:
c:\users\ludwi\appdata\local\programs\python\python39\lib\site-packages"</p>
<p>and "import reportlab" in QGis Python Console results
"ModuleNotFoundError: No module named 'reportlab'"<br>
</p>
<p><br>
</p>
<p>"pip show reportlab" after osgeo4W-shell-installation returns</p>
<p>"Location:
c:\users\ludwi\appdata\roaming\python\python39\site-packages"</p>
<p>and no error with "import reportlab" in QGis Python Console</p>
<p><br>
</p>
<p>Ludwig</p>
<div class="moz-cite-prefix">Am 09.05.2022 um 04:52 schrieb julio
cesar oliveira via Qgis-user:<br>
</div>
<blockquote type="cite"
cite="mid:CAG+u5gogpfb5sNpR5sAbFmM1Ox3agpEv48WvJC3EWRgPHdiZQQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Dears,
<div><br>
</div>
<div>
<p
style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:-apple-system,BlinkMacSystemFont,"Segoe
UI Adjusted","Segoe UI","Liberation
Sans",sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(35,38,41);background-color:rgb(249,248,246)">I
want to use ReportLab in my own plugin which I have written
for QGIS. </p>
<p
style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:-apple-system,BlinkMacSystemFont,"Segoe
UI Adjusted","Segoe UI","Liberation
Sans",sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(35,38,41);background-color:rgb(249,248,246)">I
have installed ReportLab for the python versions 3.10. </p>
<p
style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:-apple-system,BlinkMacSystemFont,"Segoe
UI Adjusted","Segoe UI","Liberation
Sans",sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(35,38,41);background-color:rgb(249,248,246)">The
package is respectively installed into the site-packages
folder (e.g.
C:\Users\olive\AppData\Local\Programs\Python\Python310\Lib\site-packages\reportLab).</p>
<p
style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;clear:both"><font
face="-apple-system, BlinkMacSystemFont, Segoe UI
Adjusted, Segoe UI, Liberation Sans, sans-serif"
color="#232629"><span
style="font-size:15px;background-color:rgb(249,248,246)">If
I want to use the tool in my plugin (</span></font>from
reportlab.pdfgen import canvas)<font face="-apple-system,
BlinkMacSystemFont, Segoe UI Adjusted, Segoe UI,
Liberation Sans, sans-serif" color="#232629"><span
style="font-size:15px;background-color:rgb(249,248,246)">,
the plugin returns the error "ImportError: no module
named reportLab". </span></font></p>
<p
style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;clear:both">**************************************************************************</p>
<p
style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;clear:both">C:\PyQgis\cav>
pip install reportlab
<br>
</p>
<p
style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;clear:both">Requirement
already satisfied: reportlab in
c:\users\olive\appdata\local\programs\python\python310\lib\site-packages
(3.6.9)<br>
Requirement already satisfied: pillow>=4.0.0 in
c:\users\olive\appdata\local\programs\python\python310\lib\site-packages
(from reportlab) (9.1.0)<br>
<br>
</p>
<p
style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;clear:both">**************************************************************************<br>
</p>
<p
style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;clear:both"><span
style="background-color:rgb(249,248,246);color:rgb(35,38,41);font-family:-apple-system,BlinkMacSystemFont,"Segoe
UI Adjusted","Segoe UI","Liberation
Sans",sans-serif;font-size:15px">Do you have any
other suggestions or ideas?</span><br>
</p>
<p
style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;clear:both"><span
style="background-color:rgb(249,248,246);color:rgb(35,38,41);font-family:-apple-system,BlinkMacSystemFont,"Segoe
UI Adjusted","Segoe UI","Liberation
Sans",sans-serif;font-size:15px"><br>
</span></p>
<p
style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;clear:both"><span
style="background-color:rgb(249,248,246);color:rgb(35,38,41);font-family:-apple-system,BlinkMacSystemFont,"Segoe
UI Adjusted","Segoe UI","Liberation
Sans",sans-serif;font-size:15px">Thanks</span></p>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
</blockquote>
</body>
</html>