Bug report #19605

Updated by Jürgen Fischer almost 6 years ago

Running QGIS 3.2.1 on Mac OS installed through Homebrew, was initially setup and working fine. However, after updating all my pip packages (and there are a bunch of them) I've now started to get these errors on startup leading to no python support:

1st Message:
<pre>


Couldn't load PyQGIS.
Python support will be disabled.

Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.6/site-packages/qgis/__init__.py", line 80, in
import qgis.gui
File "/usr/lib/python3.6/site-packages/qgis/gui/__init__.py", line 27, in
from qgis._gui import *
ValueError: PyCapsule_GetPointer called with incorrect name
</pre>


2nd message:

<pre>
An error occurred during execution of following code:
qgis.utils.uninstallErrorHook()

Traceback (most recent call last):
File "", line 1, in
NameError: name 'qgis' is not defined
</pre>



Tried reverting all of these to a previous version, but to no avail. Currently python packages running these versions:
PyQt5: 5.11.2
PyQt5-sip: 4.19.12
sip: 4.19.12
QScintilla: 2.10.7

And Homebrew Libraries with these versions:
QGIS 3.2.1-Bonn
Qt 5.11.1 (Same as compiled against)
QScintilla: 2.10.4
Python 3.7.0

Very Similar to Bug #19374-4 #19374: https://issues.qgis.org/issues/19374#change-91513

Back