<div dir="ltr"><div>Hi,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 12 mars 2019 à 14:55, Max Pyziur <<a href="mailto:pyz@brama.com">pyz@brama.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 12 Mar 2019, Richard Duivenvoorde wrote:<br>
<br>
> Ah...<br>
><br>
> Now I see 2.7 ????<br>
> That is very old, please upgrade to the one available via<br>
> <a href="https://qgis.org/en/site/forusers/alldownloads.html#fedora" rel="noreferrer" target="_blank">https://qgis.org/en/site/forusers/alldownloads.html#fedora</a><br>
<br>
Much thanks for your replies.<br>
<br>
I've done this, but this has led to another issue. Either it's a bug or <br>
I'm not executing something correctly (clicking checkboxes etc.<br>
<br>
If I go Database -> DB Manager<br>
Establish a connection to my postgresql/postgis database<br>
<br>
F2 to open the SQL editing window, type:<br>
SELECT * FROM "shapefiles"."us_states" WHERE state = 'Texas'<br>
<br>
Hit Execute, Load As layer<br></blockquote><div><br></div><div>At this point, the dialog expands new options in which you may need to indicate the PK and the geometry fields.</div><div>And then press on "Load" to have layer and features in the application.</div><div><br></div><div>Are these options not visible? Or do you simply skip these steps in your feedback?</div><div><br></div><div>Harrissou<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Nothing appears in either the Layers pane or the main window.<br>
<br>
However, if I go<br>
Layer -> Add Layer -> Add PostGIS Layers<br>
<br>
and then select a table built upon a shapefile<br>
<br>
the map loads.<br>
<br>
I can then edit the SQL for that layer by right-clicking on the layer in <br>
the layer pane, Update sql, and my modifications are reflected in the <br>
layer.<br>
<br>
How do I get DB Manager to add a layer?<br>
<br>
Much thanks,<br>
<br>
Max Pyziur<br>
<br>
<br>
> Regards,<br>
><br>
> Richard Duivenvoorde<br>
><br>
><br>
> On 12/03/2019 07.08, Richard Duivenvoorde wrote:<br>
>> Hi Max,<br>
>><br>
>> The error means that the python-cpp bridge is not working because wrong<br>
>> paths to (python) libs.<br>
>> Are you maybe in a Python Virtual Environment at that moment, which in<br>
>> that case screws up your python path?<br>
>><br>
>> Or else: did you miss some QGIS-Python package (if installed via package<br>
>> manager)?<br>
>><br>
>> Regards,<br>
>><br>
>> Richard Duivenvoorde<br>
>><br>
>> On 11/03/2019 23.15, Max Pyziur wrote:<br>
>>><br>
>>><br>
>>> Greetings,<br>
>>><br>
>>> My use of QGis Desktop is occassional; when I do use it, I construct<br>
>>> layers using PostGIS & PostgreSQL.<br>
>>><br>
>>> The key component that facilitates this in QGis is a Python plugin<br>
>>> called DB Manager.<br>
>>><br>
>>> When I started Qgis today, there was an error message that appeared<br>
>>> something like this:<br>
>>><br>
>>> Couldn't load PyQGIS. Python support will be disabled.<br>
>>><br>
>>><br>
>>> Traceback (most recent call last):<br>
>>>   File "", line 1, in<br>
>>>   File "/usr/lib64/python2.7/site-packages/qgis/gui/__init__.py", line<br>
>>> 27, in<br>
>>>     from qgis._gui import *<br>
>>> RuntimeError: the PyQt4.QtCore module failed to register with the sip<br>
>>> module<br>
>>><br>
>>><br>
>>> Python version:<br>
>>> 2.7.15 (default, Oct 15 2018, 15:26:09)<br>
>>> [GCC 8.2.1 20180801 (Red Hat 8.2.1-2)]<br>
>>><br>
>>> QGIS version:<br>
>>> 2.18.20 'Las Palmas', exported<br>
>>><br>
>>> After clicking away the error away, the existing layers that I had built<br>
>>> using PostGIS/PostgreSQL were still available in my key critical project.<br>
>>><br>
>>> However, when I went to look for DB Manager, it wasn't available.<br>
>>><br>
>>> After some searching, I upgraded to QGIS 3.6 from a non-Fedora<br>
>>> repository (the guidance is here:<br>
>>> <a href="https://stackoverflow.com/questions/53716778/the-pyqt4-qtcore-module-failed-to-register-with-the-sip-module" rel="noreferrer" target="_blank">https://stackoverflow.com/questions/53716778/the-pyqt4-qtcore-module-failed-to-register-with-the-sip-module</a>)<br>
>>><br>
>>><br>
>>> and now I have access to the DB Manager functionality.<br>
>>><br>
>>> Is the Fedora/QGis community aware of this issue?<br>
>>><br>
>>> Thanks!<br>
>>><br>
>>> Max Pyziur<br>
>>> <a href="mailto:pyz@brama.com" target="_blank">pyz@brama.com</a><br>
>>> _______________________________________________<br>
>>> Qgis-user mailing list<br>
>>> <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
>>> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
>>> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
>><br>
>> _______________________________________________<br>
>> Qgis-user mailing list<br>
>> <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
>> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
>> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
>><br>
><br>
> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div></div>