<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div>Hi Alessandro<div class=""><br class=""></div><div class="">No there is nothing at all in the logs.</div><div class=""><br class=""></div><div class="">I have used the same reduced snippet on qgis 3.4.5 (ltr) on Stretch and qgis 3.6.0 (release) on buster, using the same datasource:</div><div class=""><br class=""></div><div class="">```</div><div class="">import os</div><div class="">from qgis.core import QgsApplication, QgsVectorLayer</div><div class=""><br class=""></div><div class=""># prevent display not found error</div><div class="">os.environ['QT_QPA_PLATFORM'] = 'offscreen'</div><div class=""><br class=""></div><div class="">qgis_application = QgsApplication([], False )</div><div class="">layer = QgsVectorLayer('path/to/data')</div><div class=""><br class=""></div><div class="">layer.isValid() # Return True on 3.4.5/stretch, False on 3.6.0/buster whatever the data</div><div class="">```</div><div class=""><div class=""><div class=""><br class=""></div><div class="">If the release package has not been updated in the previous 24 h, I suspect that something has been broken on the buster distro.</div><div class=""><br class=""></div><div class="">Note that I'm able to load shapefile in python with ogr (gdal-python).</div><div class=""><br class=""></div><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div></div></div><div><blockquote type="cite" class=""><div class="">Le 26 mars 2019 à 17:47, Alessandro Pasotti <<a href="mailto:apasotti@gmail.com" class="">apasotti@gmail.com</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 26, 2019 at 5:45 PM David Marteau <<a href="mailto:dmarteau@3liz.com" class="">dmarteau@3liz.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" class=""><br class=""><div class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><span style="background-color:rgb(255,255,255)" class="">The situation seems to be worst: it seems that no layers can be read from python whatever the format.</span></div>
</div><div class=""><br class="gmail-m_-5690339171394836248webkit-block-placeholder"></div>
<div class=""><br class=""><blockquote type="cite" class=""><div class="">Le 26 mars 2019 à 17:38, David Marteau <<a href="mailto:dmarteau@3liz.com" target="_blank" class="">dmarteau@3liz.com</a>> a écrit :</div><br class="gmail-m_-5690339171394836248Apple-interchange-newline"><div class=""><div class="">Hi devs,<br class=""><br class="">We use to build docker images of the latest qgis releases and we have a regression affecting version 3.6.0 official release on buster<br class=""><br class="">Qgis: 3.6.0 on Debian<br class=""><br class="">If we read a layer with python:<br class=""><br class=""><blockquote type="cite" class="">layer = QgsVectorLayer('./mydata.shp')<br class=""></blockquote><br class="">Then the layer is invalid (no warning, no errors)<br class=""><br class="">Doing the same thing on stretch + Qgis 3.4.5 (ltr) with same data work flawlessly and lead to a valid layer.<br class=""><br class="">This was not affecting previous build 24 h ago (release end nightly-release)<br class=""><br class="">The tests were based with shapefiles from testdata in qgis sources.<br class=""><br class="">We are not sure it that come from Qgis itself or from a change on the distribution.<br class=""><br class="">David,<br class=""><br class=""></div></div></blockquote></div><br class=""></div></blockquote><div class=""><br class=""></div><div class="">Hi David,</div><div class=""><br class=""></div><div class="">anything in the logs?</div></div><div class="gmail_quote"><br class=""></div><div class="">I would check QGIS_PREFIX_PATH env var, and make sure the provider libraries are found and loaded.</div><div class=""><br class=""></div><div class=""><br class="">-- <br class=""><div dir="ltr" class="gmail_signature">Alessandro Pasotti<br class="">w3: <a href="http://www.itopen.it/" target="_blank" class="">www.itopen.it</a></div></div></div></div>
</div></blockquote></div><br class=""></div></div></body></html>