Oslandia / albion

Migrated to: https://gitlab.com/Oslandia/albion
https://gitlab.com/Oslandia/albion
GNU General Public License v3.0
49 stars 17 forks source link

Installation problem #75

Open MKeromnes opened 6 years ago

MKeromnes commented 6 years ago

Hi everyone, I tried to install Albion on a computer and it doesn't work. (I succeed to install albion on few computers) This is the error message:

Impossible de charger l'extension albion provoque une erreur lors de l'appel de sa méthode classFactory()

IOError: [Errno 2] No such file or directory: 'C:\Users\kouadio.adou\.pglite\pg_data\postgresql.conf' Traceback (most recent call last): File "C:/PrLegacy/OSGEO4~1/apps/qgis-ltr/./python\qgis\utils.py", line 333, in startPlugin plugins[packageName] = package.classFactory(iface) File "C:/PrLegacy/OSGEO4~1/apps/qgis-ltr/./python/plugins\albion__init__.py", line 4, in classFactory from .plugin import Plugin File "C:/PrLegacy/OSGEO4~1/apps/qgis-ltr/./python\qgis\utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:/PrLegacy/OSGEO4~1/apps/qgis-ltr/./python/plugins\albion\plugin.py", line 16, in from .project import ProgressBar, Project, find_in_dir File "C:/PrLegacy/OSGEO4~1/apps/qgis-ltr/./python\qgis\utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:/PrLegacy/OSGEO4~1/apps/qgis-ltr/./python/plugins\albion\project.py", line 16, in init_cluster() File "C:\PrLegacy\OSGEO4~1\apps\Python27\lib\site-packages\pglite\pglite.py", line 98, in init_cluster with open(os.path.join(PGLITE_DB_PGDATA, "postgresql.conf"), "a") as f: IOError: [Errno 2] No such file or directory: 'C:\Users\kouadio.adou\.pglite\pg_data\postgresql.conf'

Version de Python : 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] Version de QGIS : 2.18.18 Las Palmas, b33566195a

Thanks a lot for the support!

vmora commented 6 years ago

@mhugo this is a weird bug with pglite isn't it ?

MKeromnes commented 6 years ago

I tried to install PostGres (the full version) on this computer... and... It didn't work...

vmora commented 6 years ago

Not a good idea, it may be the other postgres install that conflicts with pglite. Normally you shouldn't need anything else that the provided installer.

mhugo commented 6 years ago

Hi @MKeromnes.

  1. Does C:\Users\kouadio.adou\.pglite\pg_data exist ?
  2. If not, could you try to launch the init command manually and give us the output:
    C:\osgeo4w64\bin\pg_ctl.exe initdb -D C:\Users\kouadio.adou\.pglite\pg_data -EUTF8
vmora commented 6 years ago

the command to launch is actually:

C:\PrLegacy\OSGEO4~1\bin\pg_ctl.exe initdb -D C:\Users\kouadio.adou\.pglite\pg_data -EUTF8

@mhugo I suppose the modified path has no effect for pglite. It works on other installs.

cesarcorreo commented 6 years ago

Same problems for the instalation...... ¿Step by step intalation instructions? Thanks in advance

ImportError: No module named pglite Traceback (most recent call last): File "C:/PROGRA~1/QGIS2~1.18/apps/qgis-ltr/./python\qgis\utils.py", line 333, in startPlugin plugins[packageName] = package.classFactory(iface) File "C:/Users/usuario/.qgis2/python/plugins\albion-master__init__.py", line 4, in classFactory from .plugin import Plugin File "C:/PROGRA~1/QGIS2~1.18/apps/qgis-ltr/./python\qgis\utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:/Users/usuario/.qgis2/python/plugins\albion-master\plugin.py", line 16, in from .project import ProgressBar, Project, find_in_dir File "C:/PROGRA~1/QGIS2~1.18/apps/qgis-ltr/./python\qgis\utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:/Users/usuario/.qgis2/python/plugins\albion-master\project.py", line 3, in from pglite import cluster_params File "C:/PROGRA~1/QGIS2~1.18/apps/qgis-ltr/./python\qgis\utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ImportError: No module named pglite

Versión de Python: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] Versión de QGIS: 2.18.20 Las Palmas, e8e15d5b1e

Ruta de Python: C:/PROGRA~1/QGIS2~1.18/apps/qgis-ltr/./python/plugins\processing C:/Users/usuario/.qgis2/python/plugins\postgis_geoprocessing C:\Users\usuario.qgis2\python\plugins\GeoCoding\libs C:/PROGRA~1/QGIS2~1.18/apps/qgis-ltr/./python C:/Users/usuario/.qgis2/python C:/Users/usuario/.qgis2/python/plugins C:/PROGRA~1/QGIS2~1.18/apps/qgis-ltr/./python/plugins C:\PROGRA~1\QGIS2~1.18\bin\python27.zip C:\PROGRA~1\QGIS2~1.18\apps\Python27\DLLs C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\plat-win C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\lib-tk C:\PROGRA~1\QGIS2~1.18\bin C:\Users\usuario\AppData\Roaming\Python\Python27\site-packages C:\PROGRA~1\QGIS2~1.18\apps\Python27 C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win-amd64.egg C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\win32 C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\win32\lib C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\Pythonwin C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win-amd64.egg C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\wx-2.8-msw-unicode C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\xlrd-0.9.2-py2.7.egg C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\xlwt-0.7.5-py2.7.egg C:/Users/usuario/.qgis2//python C:\Users\usuario.qgis2\python\plugins\FeatureGridCreator C:/Users/usuario/.qgis2/python/plugins\gdrive_provider C:\Users\usuario.qgis2\python\plugins\gdrive_provider\extlibs C:/Users/usuario/.qgis2/python/plugins\go2streetview C:\Users\usuario.qgis2\python\plugins\mmqgis/forms C:/Users/usuario/.qgis2/python/plugins\MultiDistanceBuffer . C:\Users\usuario.qgis2\python\plugins C:\Users\usuario.qgis2\python\plugins C:/Users/usuario/.qgis2/python/plugins\qgis_resource_sharing C:\Users\usuario.qgis2\python\plugins\qgis_resource_sharing C:\Users\usuario.qgis2\python\plugins\qgis_resource_sharing\ext_libs C:\Users\usuario.qgis2\python\plugins\QuickMultiAttributeEdit/forms C:/Users/usuario/.qgis2/python/plugins\shpsync\xlrd-0.9.4-py2.7.egg C:/Users/usuario/.qgis2/python/plugins\shpsync\xlwt-1.0.0-py2.7.egg D:\eclipse\plugins\org.python.pydev_6.2.0.201711281614\pysrc C:\Users\usuario.qgis2\python\plugins\GeoTrace\tools C:\Users\usuario.qgis2\python\plugins\GeoTrace\tools

cesarcorreo commented 5 years ago

Could you give us a bit more information about the plugin? I'm really interested on it but I'm having a lot of problems to install it. When it will be released definitively? Thanks

vpicavet commented 5 years ago

Hello Cesar, Albion is still being worked on, and we agree that installation is not as easy as it could be. If you have trouble installing or using it, Oslandia provides full support for this software package. Please contact Oslandia directly for more information.

If you have specific technical problems, please create a new issue for each.

mikesbots commented 5 years ago

I'm very excited at the possibilities that Albion offers, it is a breakthrough indeed. I would gladly be a part of a contributing community. Sadly though it remains beyond my reach and possibly beyond the reach of ordinary geologists everywhere who do not have the computing/programming/scripting knowledge to navigate through the complicated installation in the absence of a user-friendly guide to do so to get it working in QGIS. I've pretty much given up but will check back occasionally to see if the whole thing has been demystified and explained.

KoalaGeo commented 5 years ago

Hi Vincent,

I'm working in Linux, with QGIS 2.18. I've managed the install however I have the message "This Plugin is broken - No module named pglite"

I've installed pglite but I'm still getting the same message. Do you have any suggestions?

Kind regards,

Edd

vmora commented 5 years ago

@KoalaGeo this looks like a python issue, have you installed pglite with python2 or python3 ?

KoalaGeo commented 5 years ago

I'm running Python 2.7. I installed pglite using the "Example" instructions @ https://github.com/Oslandia/pglite

vmora commented 5 years ago

Did you play around with python like in the example ? Did you install it in the vurtualenv or systemwide ? If you installed in virtualenv, the error is to be expected because qgis has no access to it.

KoalaGeo commented 5 years ago

Ah that was it, hadn't installed systemwide, although now I've got "ImportError: No module named QtOpenGL"

Think I'll just wait for now until Albion hopefully finds its way to the plugin manager.

djcronkw commented 4 years ago

I'm having trouble trying to install albion. It looks quite promising and could add a lot of utility to QGIS. I am a geologist with hardly any coding background so I think that is my main problem!

It says "No module named 'pglite'"

ModuleNotFoundError: No module named 'pglite' Traceback (most recent call last): File "C:/OSGEO4~1/apps/qgis-ltr/./python\qgis\utils.py", line 334, in _startPlugin plugins[packageName] = package.classFactory(iface) File "C:/Users/David/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\albion-master__init__.py", line 4, in classFactory from .plugin import Plugin File "C:/OSGEO4~1/apps/qgis-ltr/./python\qgis\utils.py", line 744, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:/Users/David/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\albion-master\plugin.py", line 16, in from .project import ProgressBar, Project, find_in_dir File "C:/OSGEO4~1/apps/qgis-ltr/./python\qgis\utils.py", line 744, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:/Users/David/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\albion-master\project.py", line 5, in from pglite import cluster_params File "C:/OSGEO4~1/apps/qgis-ltr/./python\qgis\utils.py", line 744, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ModuleNotFoundError: No module named 'pglite'

Python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] QGIS version: 3.10.3-A Coruña A Coruña, 0e1f846438

Python Path: • C:/OSGEO4~1/apps/qgis-ltr/./python • C:/Users/David/AppData/Roaming/QGIS/QGIS3\profiles\default/python • C:/Users/David/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins • C:/OSGEO4~1/apps/qgis-ltr/./python/plugins • C:\OSGEO4~1\apps\Python37 • C:\OSGEO4~1\apps\Python37\Scripts • C:\OSGeo4W64\bin\python37.zip • C:\OSGEO4~1\apps\Python37\DLLs • C:\OSGEO4~1\apps\Python37\lib • C:\OSGeo4W64\bin • C:\OSGEO4~1\apps\Python37 • C:\OSGEO4~1\apps\Python37\lib\site-packages • C:\OSGEO4~1\apps\Python37\lib\site-packages • C:\OSGEO4~1\apps\Python37\lib\site-packages\win32 • C:\OSGEO4~1\apps\Python37\lib\site-packages\win32\lib • C:\OSGEO4~1\apps\Python37\lib\site-packages\Pythonwin

Thanks for any tips.

saulogmenezes commented 4 years ago

Hi everyone!

I've been getting such error when trying to run the plugin:

Couldn't load plugin 'albion-master' due to an error when calling its classFactory() method

RuntimeError: Can't find pg_ctl Traceback (most recent call last): File "C:/OSGEO4~1/apps/qgis-dev/./python\qgis\utils.py", line 334, in _startPlugin plugins[packageName] = package.classFactory(iface) File "C:/Users/eu_po/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\albion-master__init__.py", line 4, in classFactory from .plugin import Plugin File "C:/OSGEO4~1/apps/qgis-dev/./python\qgis\utils.py", line 744, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:/Users/eu_po/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\albion-master\plugin.py", line 16, in from .project import ProgressBar, Project, find_in_dir File "C:/OSGEO4~1/apps/qgis-dev/./python\qgis\utils.py", line 744, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:/Users/eu_po/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\albion-master\project.py", line 58, in init_cluster() File "C:\OSGEO4~1\apps\Python37\lib\site-packages\pglite\pglite.py", line 94, in init_cluster pg_ctl_path = find_pg_ctl() or die("Can't find pg_ctl") File "C:\OSGEO4~1\apps\Python37\lib\site-packages\pglite\pglite.py", line 25, in die raise RuntimeError(msg) RuntimeError: Can't find pg_ctl

Python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] QGIS version: 3.13.0-Master Master, 8addbde0a5

Python Path: C:/Users/eu_po/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\network_gt C:/OSGEO4~1/apps/qgis-dev/./python C:/Users/eu_po/AppData/Roaming/QGIS/QGIS3\profiles\default/python C:/Users/eu_po/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins C:/OSGEO4~1/apps/qgis-dev/./python/plugins C:\OSGEO4~1\apps\Python37 C:\OSGEO4~1\apps\Python37\Scripts C:\OSGeo4W64\bin\python37.zip C:\OSGEO4~1\apps\Python37\DLLs C:\OSGEO4~1\apps\Python37\lib C:\OSGeo4W64\bin C:\Users\eu_po\AppData\Roaming\Python\Python37\site-packages C:\OSGEO4~1\apps\Python37\lib\site-packages C:\OSGEO4~1\apps\Python37\lib\site-packages\win32 C:\OSGEO4~1\apps\Python37\lib\site-packages\win32\lib C:\OSGEO4~1\apps\Python37\lib\site-packages\Pythonwin C:/Users/eu_po/AppData/Roaming/QGIS/QGIS3\profiles\default/python C:\Users\eu_po\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\GeoTrace\tools

I have already intalled all the dependencies but I am still not using the plugin. Could you help me?

saulogmenezes commented 4 years ago

I followed the tutorial for pglite installation (https://github.com/Oslandia/pglite) hoping that it was the problem but I got the same error:

C:\Windows\System32>ipython Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] Type 'copyright', 'credits' or 'license' for more information IPython 7.13.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import pglite

In [2]: import psycopg2

In [3]: pglite.init_cluster()

RuntimeError Traceback (most recent call last)

in ----> 1 pglite.init_cluster() C:\OSGEO4~1\apps\Python37\lib\site-packages\pglite\pglite.py in init_cluster(pg_ctl_path) 92 return 93 if pg_ctl_path is None: ---> 94 pg_ctl_path = find_pg_ctl() or die("Can't find pg_ctl") 95 subprocess.Popen([os.path.join(os.path.dirname(pg_ctl_path), "initdb"), "-D", PGLITE_DB_PGDATA, "-EUTF8"]).communicate() 96 C:\OSGEO4~1\apps\Python37\lib\site-packages\pglite\pglite.py in die(msg) 23 24 def die(msg): ---> 25 raise RuntimeError(msg) 26 27 def write_config(c_dict): RuntimeError: Can't find pg_ctl
alex4034 commented 4 years ago

Hi All,

Albion looks very promising but I must say I'm struggling a lot to figure out how to get it installed. After solving a few errors, I now struggle with that one, for which I have no idea how to solve it:

Impossible de charger l'extension 'albion-master' provoque une erreur lors de l'appel à sa méthode classFactory()

IndexError: list index out of range Traceback (most recent call last): File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 334, in _startPlugin plugins[packageName] = package.classFactory(iface) File "C:/Users/Alexis/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\albion-master__init__.py", line 4, in classFactory from .plugin import Plugin File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 744, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:/Users/Alexis/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\albion-master\plugin.py", line 16, in from .project import ProgressBar, Project, find_in_dir File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 744, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:/Users/Alexis/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\albion-master\project.py", line 59, in start_cluster() File "C:\OSGEO41\apps\Python37\lib\site-packages\pglite\pglite.py", line 116, in start_cluster if is_started(): File "C:\OSGEO41\apps\Python37\lib\site-packages\pglite\pglite.py", line 150, in is_started universal_newlines=True).communicate() File "C:\OSGEO41\apps\Python37\lib\subprocess.py", line 920, in communicate stdout, stderr = self._communicate(input, endtime, timeout) File "C:\OSGEO41\apps\Python37\lib\subprocess.py", line 1265, in _communicate stdout = stdout[0] IndexError: list index out of range

Version de Python : 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] Version de QGIS : 3.12.2-București București, 8a1fb33634

If someone has a clue about how to get it solved I'd be grateful. Thanks a lot.

mds- commented 4 years ago

yes is a process to install, I managed to get it working on debian 10 QGIS 3.12.3-București postgresql 12 python 3.7 as much as possible (but 2.7 also installed)

alex4034, I had the same problem althought it looks like you are on windows, but I think if you check

C:\OSGEO41\apps\Python37\lib\site-packages\pglite\pglite.py

and have a look to see if your version of postgres is listed (line 74), edit one of the lines to the relevant version.

My notes to install are below, I already had qgis, python and postgres/postgis installed etc. so could be different for others but might still help...

apt install python3-opengl apt install python3-qt5-gl apt install python3-pyqt5.qtopengl apt install python3-shapely apt install python3-sphinx apt install python3-git pip install dxfwrite

apt install libcgal13 apt install libcgal-dev

download and install fourmy from git or pip3 install fourmy apt-get install libboost-python-dev ln -s libboost_python37.so libboost_python-py37.so

apt install python3-mock apt install python3-hypothesis apt install python3-pytest apt install postgresql-plpython apt install postgresql-12 apt install postgresql-contrib apt install python3-stemmer

psql in database create extension plpython3u ; create extension hstore with schema public; create extension hstore_plpython3u with schema public ;

pip install pglite edit /usr/local/bin/pglite to python3.7 -m pglite $@

edit /usr/local/lib/python3.7/dist-packages/pglite/pglite.py to take into account which version of postgres is installed, only up to 10 is listed see line 64