Re: [Qgis-user] QGIS 3 errors after install on macOS 10.13.4

2018-05-23 Thread William Kyngesburye
Ah, now we're getting somewhere.  Did you install some other python 3 modules?  
Maybe pyenv or virtualenv?

> On May 23, 2018, at 5:19 PM, Reg Maltais  wrote:
> 
> Here’s the truncated output to show just the postinstall lines:
> 
> May 23 18:14:15 Bellerophon installd[636]: PackageKit: Executing script 
> "./postinstall" in 
> /private/tmp/PKInstallSandbox.AXwBn9/Scripts/org.maptools.proj-framework-yosemite.xOVaFz
> May 23 18:14:16 Bellerophon installd[636]: ./postinstall: Could not find an 
> activated virtualenv (required).
> May 23 18:14:16 Bellerophon installd[636]: PackageKit: Executing script 
> "./postinstall" in 
> /private/tmp/PKInstallSandbox.AXwBn9/Scripts/org.gdal.gdal22-framework-yosemite.ogoElJ
> May 23 18:14:16 Bellerophon installd[636]: ./postinstall: Could not find an 
> activated virtualenv (required).
> May 23 18:14:17 Bellerophon installd[636]: ./postinstall: Could not find an 
> activated virtualenv (required).
> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Executing script 
> "./postinstall" in 
> /private/tmp/PKInstallSandbox.AXwBn9/Scripts/net.refractions.geos-framework-yosemite.Xrb86e
> May 23 18:14:17 Bellerophon installd[636]: ./postinstall: Could not find an 
> activated virtualenv (required).
> 
> Interestingly, immediately below these are the PackageKit receipt writes:
> 
> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
> org.maptools.proj-framework-yosemite to /
> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
> org.sqlite.sqlite3-framework-yosemite to /
> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
> com.kyngchaos.UnixImageIO-framework-F-yosemite to /
> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
> org.gdal.gdal22-framework-yosemite to /
> May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
> net.refractions.geos-framework-yosemite to /
> 
> So appears it thinks it worked.
> 
>> On May 23, 2018, at 5:22 PM, William Kyngesburye > > wrote:
>> 
>> That was just a test, only one python module.
>> 
>> So, now it looks like pip is working in the Terminal, but not in my 
>> installers.  Try running the GDAL Complete installer again, but don't close 
>> it when it finishes.  Instead, open the Installer Log from the Window menu 
>> (in the installer).  Then use the popup menu to Show All Logs.  There should 
>> be some lines with "postinstall:", what do these say?
>> 
>>> On May 23, 2018, at 4:59 AM, Reg Maltais >> > wrote:
>>> 
>>> So that worked:
>>> Processing 
>>> /Library/Frameworks/GDAL.framework/Versions/2.2/Resources/GDAL-2.2.4-cp36-none-macosx_10_6_intel.whl
>>> Installing collected packages: GDAL
>>> Successfully installed GDAL-2.2.4
>>> 
>>> I’m getting different errors when opening QGIS now, I’m assuming due to not 
>>> having run pip install for all of the various bits.
>>> 
>>> Couldn't load plugin 'processing' 
>>> ModuleNotFoundError: No module named 'psycopg2.extensions'
>>> 
>>> Traceback (most recent call last):
>>>   File 
>>> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
>>> line 311, in loadPlugin
>>> __import__(packageName)
>>>   File 
>>> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
>>> line 664, in _import
>>> mod = _builtin_import(name, globals, locals, fromlist, level)
>>>   File 
>>> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/__init__.py",
>>>  line 29, in 
>>> from processing.tools.general import *  # NOQA
>>>   File 
>>> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
>>> line 664, in _import
>>> mod = _builtin_import(name, globals, locals, fromlist, level)
>>>   File 
>>> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/tools/general.py",
>>>  line 39, in 
>>> from processing.core.Processing import Processing
>>>   File 
>>> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
>>> line 664, in _import
>>> mod = _builtin_import(name, globals, locals, fromlist, level)
>>>   File 
>>> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py",
>>>  line 57, in 
>>> from processing.algs.qgis.QgisAlgorithmProvider import 
>>> QgisAlgorithmProvider  # NOQA
>>>   File 
>>> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
>>> line 664, in _import
>>> mod = _builtin_import(name, globals, locals, fromlist, level)
>>>   File 
>>> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/algs/qgis/QgisAlgorithmProvider.py",
>>>  line 68, in 
>>> from .FieldsCalculator import FieldsCalculator
>>>   File 
>>> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
>>> line 664, in _import
>>> mod = _builtin_imp

Re: [Qgis-user] QGIS 3 clipping raster with a polygon - problem

2018-05-23 Thread Nyall Dawson
On 24 May 2018 at 01:12, David Addy  wrote:
> I have had another go with another dataset.
> I have tried both these algorithms in QGIS 3.0.2:
> 1.  Gdal ->" Raster extraction" -> "Clip raster by mask layer"
> 2.  Saga -> "Vector <-> raster" -> "Clip raster with polygon"
> Both give an error message.
> In the case of GDAL it is :"GDAL command output:
> ERROR 6: SetColorTable() only supported for Byte or UInt16 bands in TIFF
> format."
> I must be completely misunderstanding both these processes.
> By reverting to QGIS 2.18.16 the GDAL algorithm works quite happily on the
> same geotiff using the same shp file polygon to clip it..
> In Q3 I do not understand why the output file entry box is labelled
> Clipped(mask) and the box contains (save to temporary file)
> Are there some other entries I need to make it work?

Hi David,

In  both 2.18 and 3.0 you can see the GDAL command which is run by the
algorithm. Can you see if there's any difference between the two? Can
you please share them?

Cheers,
Nyall
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS 3 errors after install on macOS 10.13.4

2018-05-23 Thread Reg Maltais
Here’s the truncated output to show just the postinstall lines:

May 23 18:14:15 Bellerophon installd[636]: PackageKit: Executing script 
"./postinstall" in 
/private/tmp/PKInstallSandbox.AXwBn9/Scripts/org.maptools.proj-framework-yosemite.xOVaFz
May 23 18:14:16 Bellerophon installd[636]: ./postinstall: Could not find an 
activated virtualenv (required).
May 23 18:14:16 Bellerophon installd[636]: PackageKit: Executing script 
"./postinstall" in 
/private/tmp/PKInstallSandbox.AXwBn9/Scripts/org.gdal.gdal22-framework-yosemite.ogoElJ
May 23 18:14:16 Bellerophon installd[636]: ./postinstall: Could not find an 
activated virtualenv (required).
May 23 18:14:17 Bellerophon installd[636]: ./postinstall: Could not find an 
activated virtualenv (required).
May 23 18:14:17 Bellerophon installd[636]: PackageKit: Executing script 
"./postinstall" in 
/private/tmp/PKInstallSandbox.AXwBn9/Scripts/net.refractions.geos-framework-yosemite.Xrb86e
May 23 18:14:17 Bellerophon installd[636]: ./postinstall: Could not find an 
activated virtualenv (required).

Interestingly, immediately below these are the PackageKit receipt writes:

May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
org.maptools.proj-framework-yosemite to /
May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
org.sqlite.sqlite3-framework-yosemite to /
May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
com.kyngchaos.UnixImageIO-framework-F-yosemite to /
May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
org.gdal.gdal22-framework-yosemite to /
May 23 18:14:17 Bellerophon installd[636]: PackageKit: Writing receipt for 
net.refractions.geos-framework-yosemite to /

So appears it thinks it worked.

> On May 23, 2018, at 5:22 PM, William Kyngesburye  
> wrote:
> 
> That was just a test, only one python module.
> 
> So, now it looks like pip is working in the Terminal, but not in my 
> installers.  Try running the GDAL Complete installer again, but don't close 
> it when it finishes.  Instead, open the Installer Log from the Window menu 
> (in the installer).  Then use the popup menu to Show All Logs.  There should 
> be some lines with "postinstall:", what do these say?
> 
>> On May 23, 2018, at 4:59 AM, Reg Maltais > > wrote:
>> 
>> So that worked:
>> Processing 
>> /Library/Frameworks/GDAL.framework/Versions/2.2/Resources/GDAL-2.2.4-cp36-none-macosx_10_6_intel.whl
>> Installing collected packages: GDAL
>> Successfully installed GDAL-2.2.4
>> 
>> I’m getting different errors when opening QGIS now, I’m assuming due to not 
>> having run pip install for all of the various bits.
>> 
>> Couldn't load plugin 'processing' 
>> ModuleNotFoundError: No module named 'psycopg2.extensions'
>> 
>> Traceback (most recent call last):
>>   File 
>> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
>> line 311, in loadPlugin
>> __import__(packageName)
>>   File 
>> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
>> line 664, in _import
>> mod = _builtin_import(name, globals, locals, fromlist, level)
>>   File 
>> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/__init__.py",
>>  line 29, in 
>> from processing.tools.general import *  # NOQA
>>   File 
>> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
>> line 664, in _import
>> mod = _builtin_import(name, globals, locals, fromlist, level)
>>   File 
>> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/tools/general.py",
>>  line 39, in 
>> from processing.core.Processing import Processing
>>   File 
>> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
>> line 664, in _import
>> mod = _builtin_import(name, globals, locals, fromlist, level)
>>   File 
>> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py",
>>  line 57, in 
>> from processing.algs.qgis.QgisAlgorithmProvider import 
>> QgisAlgorithmProvider  # NOQA
>>   File 
>> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
>> line 664, in _import
>> mod = _builtin_import(name, globals, locals, fromlist, level)
>>   File 
>> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/algs/qgis/QgisAlgorithmProvider.py",
>>  line 68, in 
>> from .FieldsCalculator import FieldsCalculator
>>   File 
>> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
>> line 664, in _import
>> mod = _builtin_import(name, globals, locals, fromlist, level)
>>   File 
>> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/algs/qgis/FieldsCalculator.py",
>>  line 45, in 
>> from .ui.FieldsCalculatorDialog import FieldsCalculatorDialog
>>   File 
>> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/q

Re: [Qgis-user] QGIS 3 errors after install on macOS 10.13.4

2018-05-23 Thread William Kyngesburye
That was just a test, only one python module.

So, now it looks like pip is working in the Terminal, but not in my installers. 
 Try running the GDAL Complete installer again, but don't close it when it 
finishes.  Instead, open the Installer Log from the Window menu (in the 
installer).  Then use the popup menu to Show All Logs.  There should be some 
lines with "postinstall:", what do these say?

> On May 23, 2018, at 4:59 AM, Reg Maltais  wrote:
> 
> So that worked:
> Processing 
> /Library/Frameworks/GDAL.framework/Versions/2.2/Resources/GDAL-2.2.4-cp36-none-macosx_10_6_intel.whl
> Installing collected packages: GDAL
> Successfully installed GDAL-2.2.4
> 
> I’m getting different errors when opening QGIS now, I’m assuming due to not 
> having run pip install for all of the various bits.
> 
> Couldn't load plugin 'processing' 
> ModuleNotFoundError: No module named 'psycopg2.extensions'
> 
> Traceback (most recent call last):
>   File 
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
> line 311, in loadPlugin
> __import__(packageName)
>   File 
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
> line 664, in _import
> mod = _builtin_import(name, globals, locals, fromlist, level)
>   File 
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/__init__.py",
>  line 29, in 
> from processing.tools.general import *  # NOQA
>   File 
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
> line 664, in _import
> mod = _builtin_import(name, globals, locals, fromlist, level)
>   File 
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/tools/general.py",
>  line 39, in 
> from processing.core.Processing import Processing
>   File 
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
> line 664, in _import
> mod = _builtin_import(name, globals, locals, fromlist, level)
>   File 
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py",
>  line 57, in 
> from processing.algs.qgis.QgisAlgorithmProvider import 
> QgisAlgorithmProvider  # NOQA
>   File 
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
> line 664, in _import
> mod = _builtin_import(name, globals, locals, fromlist, level)
>   File 
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/algs/qgis/QgisAlgorithmProvider.py",
>  line 68, in 
> from .FieldsCalculator import FieldsCalculator
>   File 
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
> line 664, in _import
> mod = _builtin_import(name, globals, locals, fromlist, level)
>   File 
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/algs/qgis/FieldsCalculator.py",
>  line 45, in 
> from .ui.FieldsCalculatorDialog import FieldsCalculatorDialog
>   File 
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
> line 664, in _import
> mod = _builtin_import(name, globals, locals, fromlist, level)
>   File 
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/algs/qgis/ui/FieldsCalculatorDialog.py",
>  line 52, in 
> from processing.gui.PostgisTableSelector import PostgisTableSelector
>   File 
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
> line 664, in _import
> mod = _builtin_import(name, globals, locals, fromlist, level)
>   File 
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/gui/PostgisTableSelector.py",
>  line 34, in 
> from processing.tools.postgis import GeoDB
>   File 
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
> line 664, in _import
> mod = _builtin_import(name, globals, locals, fromlist, level)
>   File 
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/tools/postgis.py",
>  line 29, in 
> import psycopg2.extensions  # For isolation levels
>   File 
> "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
> line 664, in _import
> mod = _builtin_import(name, globals, locals, fromlist, level)
> ModuleNotFoundError: No module named 'psycopg2.extensions'
> 
> Python version: 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 05:52:31) [GCC 4.2.1 
> Compatible Apple LLVM 6.0 (clang-600.0.57)] 
> QGIS version: 3.0.2-Girona Girona, exported 
> Python Path:
> 
> /Applications/QGIS3.app/Contents/MacOS/../Resources/python
> /Users/goatsweater/Library/Application 
> Support/QGIS/QGIS3/profiles/default/python
> /Users/goatsweater/Library/Application 
> Support/QGIS/QGIS3/profiles/default/python/plugins
> /Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins
> /Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip
> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
> /L

Re: [Qgis-user] QGIS 3 clipping raster with a polygon - problem

2018-05-23 Thread David Addy
I have had another go with another dataset.
I have tried both these algorithms in QGIS 3.0.2: 
1.  Gdal ->" Raster extraction" -> "Clip raster by mask layer"
2.  Saga -> "Vector <-> raster" -> "Clip raster with polygon"
Both give an error message. 
In the case of GDAL it is :"GDAL command output:
ERROR 6: SetColorTable() only supported for Byte or UInt16 bands in TIFF
format."
I must be completely misunderstanding both these processes.
By reverting to QGIS 2.18.16 the GDAL algorithm works quite happily on the
same geotiff using the same shp file polygon to clip it..
In Q3 I do not understand why the output file entry box is labelled
Clipped(mask) and the box contains (save to temporary file)
Are there some other entries I need to make it work?





--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] results Measure Tool vs. length()

2018-05-23 Thread Michel Stuyts
I have tested both functions and as far as I can tell there is no difference 
between length($geometry) and $length. I did the following test:

· I created 3 layers (1 in EPSG:3857, 1 in EPSG:31370 and 1 in 
EPSG:2154)

· In each of the files I added 1 simple line with approximately the 
same length.

· To each layer I added the same label definition: 
concat(length($geometry),'-',$length)

· I measured the approximate length of the lines with the Measure Tool.



I made a print screen image that shows the results and uploaded it to Dropbox: 
https://www.dropbox.com/s/plza9bwkh4wfd29/length_tests.jpg?dl=0



The results:

· As expected there is a big difference between the layer in EPSG:3857 
and the other 2 layers.

· As expected the results of the Measure Tool are very close to the 
results of the layers in EPSG:31370 and in EPSG:2154.

· As expected changing the project CRS, changes the direction of the 
lines and their placement.

· But the labels always stay the same no matter what project CRS I use

· And the results for $length and length($geometry) are in all cases 
the same per line.  So I don’t see a difference between length($geometry) and 
$length.



I tested it both in QGIS 3.0.3 and QGIS 2.18.20 and they gave similar results.



I don’t think using $length solves my problem, or did I do something wrong?





Michel









-Oorspronkelijk bericht-
Van: Goyo [mailto:goyod...@gmail.com]
Verzonden: dinsdag 22 mei 2018 23:37
Aan: Michel Stuyts 
CC: Micha Silver ; qgis-user 
Onderwerp: Re: [Qgis-user] results Measure Tool vs. length()



The measure tool measures elipsoidal distances (configurable in the project 
properties).



The function length(geometry) returns the length of the argument

(linestring) measured in the plane.



The function $length() returns the length of the current geometry

(linestring) measured in the elipsoid and should be consistent with the measure 
tool (same configuration).



You do not want to use length(geometry) unless you are using a local projection.





2018-05-22 11:57 GMT+02:00 Michel Stuyts 
mailto:michel.stu...@edegem.be>>:

> I understand that every projection has a distortion, but I was wondering how 
> the QGIS Measure Tool manages to give results very close to local projections 
> anywhere in the world no matter what project CRS is set, but the length() 
> function can't.

>

> Michel

>

>

> 

> Van: Micha Silver [tsvi...@gmail.com]

> Verzonden: vrijdag 18 mei 2018 17:41

> Aan: Michel Stuyts; qgis-user

> Onderwerp: Re: [Qgis-user] results Measure Tool vs. length()

>

> Maybe I misunderstood your question, but you *should* expect different 
> length, area and direction calculations when converting from one projection 
> to another. Every projection distorts. Either distance, area, or direction, 
> or some combination. A local projection is designed to minimize distortion 
> for some small section of the planet. So survey measurements in that region 
> will closely match map calculations. But trying to calculate from a layer 
> that's projected to some other projection will always give different results.

>

> (If you already understand the above, I apologize for restating the

> obvious...)

>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS 3 errors after install on macOS 10.13.4

2018-05-23 Thread Reg Maltais
So that worked:
Processing 
/Library/Frameworks/GDAL.framework/Versions/2.2/Resources/GDAL-2.2.4-cp36-none-macosx_10_6_intel.whl
Installing collected packages: GDAL
Successfully installed GDAL-2.2.4

I’m getting different errors when opening QGIS now, I’m assuming due to not 
having run pip install for all of the various bits.

Couldn't load plugin 'processing' 
ModuleNotFoundError: No module named 'psycopg2.extensions'

Traceback (most recent call last):
  File 
"/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
line 311, in loadPlugin
__import__(packageName)
  File 
"/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
line 664, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File 
"/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/__init__.py",
 line 29, in 
from processing.tools.general import *  # NOQA
  File 
"/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
line 664, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File 
"/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/tools/general.py",
 line 39, in 
from processing.core.Processing import Processing
  File 
"/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
line 664, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File 
"/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py",
 line 57, in 
from processing.algs.qgis.QgisAlgorithmProvider import 
QgisAlgorithmProvider  # NOQA
  File 
"/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
line 664, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File 
"/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/algs/qgis/QgisAlgorithmProvider.py",
 line 68, in 
from .FieldsCalculator import FieldsCalculator
  File 
"/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
line 664, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File 
"/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/algs/qgis/FieldsCalculator.py",
 line 45, in 
from .ui.FieldsCalculatorDialog import FieldsCalculatorDialog
  File 
"/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
line 664, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File 
"/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/algs/qgis/ui/FieldsCalculatorDialog.py",
 line 52, in 
from processing.gui.PostgisTableSelector import PostgisTableSelector
  File 
"/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
line 664, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File 
"/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/gui/PostgisTableSelector.py",
 line 34, in 
from processing.tools.postgis import GeoDB
  File 
"/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
line 664, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File 
"/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/processing/tools/postgis.py",
 line 29, in 
import psycopg2.extensions  # For isolation levels
  File 
"/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
line 664, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'psycopg2.extensions'

Python version: 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 05:52:31) [GCC 4.2.1 
Compatible Apple LLVM 6.0 (clang-600.0.57)] 
QGIS version: 3.0.2-Girona Girona, exported 
Python Path:

/Applications/QGIS3.app/Contents/MacOS/../Resources/python
/Users/goatsweater/Library/Application 
Support/QGIS/QGIS3/profiles/default/python
/Users/goatsweater/Library/Application 
Support/QGIS/QGIS3/profiles/default/python/plugins
/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins
/Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
/Users/goatsweater/Library/Application 
Support/QGIS/QGIS3/profiles/default/python
Couldn't load plugin 'MetaSearch' due to an error when calling its 
classFactory() method 
ModuleNotFoundError: No module named 'owslib.csw'

Traceback (most recent call last):
  File 
"/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", 
line 336, in startPlugin
plugins[packageName] = package.classFactory(iface)
  File 
"/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/MetaSea