Re: [Qgis-user] QGIS 3 Standalone Python Script

2018-08-06 Thread Santiago Higuera
In my linux system I need /usr/lib/python3/dist-packages, taking the 
python from QGIS (QGIS install its own python, it don't use the python 
installed in the system)



El 06/08/18 a las 03:04, Chris B escribió:

Thanks for the tip - nothing odd stands out...

['/Applications/QGIS3.app/Contents/Resources/python/plugins',
  '/Applications/QGIS3.app/Contents/Resources/python/',
  '/Users/cbarnes/scripts',
  '/Users/cbarnes/scripts',
  '/Applications/QGIS3.app/Contents/Resources/python',
  '/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',
  '/Users/cbarnes/Library/Python/3.6/lib/python/site-packages',

'/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages']

Is there one that is obvious is missing?



--
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


___
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 Standalone Python Script

2018-08-05 Thread Santiago Higuera

From python console, inside QGIS, you can see the active path with:

import sys
print(sys.path)


El 05/08/18 a las 21:47, Chris B escribió:

Since I am having the same error as DT, I tried your suggestion but it still
returns the same error.  Is there anything in this bash profile that would
cause problems?

export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/Applications/QGIS3.app/Contents/MacOS/lib/:/Applications/QGIS3.app/Contents/Frameworks/
export
PYTHONPATH=$PYTHONPATH:/Applications/QGIS3.app/Contents/MacOS/../Resources/python
  
export PATH=~$PYTHONPATH:$PATH

export PATH=~/Library/Frameworks/GDAL.framework/Versions/2.2/Programs:$PATH
export PATH=~/Applications/QGIS3.app/Contents/Resources/python:$PATH

export PATH=~/.local/bin:$PATH

source ~/.bashrc

# Setting PATH for Python 3.6
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
export PATH




--
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


___
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