Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sextante plugin doesn't load anymore from build tree #16227

Closed
qgib opened this issue Feb 17, 2013 · 19 comments
Closed

sextante plugin doesn't load anymore from build tree #16227

qgib opened this issue Feb 17, 2013 · 19 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@qgib
Copy link
Contributor

qgib commented Feb 17, 2013

Author Name: Sandro Santilli (@strk)
Original Redmine Issue: 7176
Affected QGIS version: master


Couldn't load plugin 'sextante' from ['/home/strk/.qgis//python/plugins/pyarchinit/modules/gui', '/home/strk/.qgis//python/plugins/pyarchinit/modules/gis', '/home/strk/.qgis//python/plugins/pyarchinit/modules/db', '/home/strk/.qgis//python/plugins/pyarchinit/modules/utility', '/home/strk/.qgis//python/plugins/pyarchinit', '/usr/src/qgis/Quantum-GIS/b/output/python', '/home/strk/.qgis//python', '/home/strk/.qgis//python/plugins', '/usr/src/qgis/Quantum-GIS/b/output/python/plugins', '/usr/local/lib/python2.7/dist-packages/pip-1.2.1-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/nik2img-0.8.0-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/GDAL-1.9.2-py2.7-linux-x86_64.egg', '/usr/lib/python2.7/dist-packages/PIL', '/home/src/cartodb/cartodb/cartodb20/src/python-varnish', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode', '/usr/src/qgis/Quantum-GIS/b/output/python/plugins/fTools/tools']

It used to work. The output build tree is /usr/src/qgis/Quantum-GIS/b/output

@qgib
Copy link
Contributor Author

qgib commented Feb 17, 2013

Author Name: Sandro Santilli (@strk)


This error may be an old one: #15819

@qgib
Copy link
Contributor Author

qgib commented Feb 17, 2013

Author Name: Alexander Bruy (@alexbruy)


Works fine here with latest master. Maybe this was related to missed directory in CMakeLists file, I've just fixed this

@qgib
Copy link
Contributor Author

qgib commented Feb 17, 2013

Author Name: Sandro Santilli (@strk)


Fails here with 8f25bcf -- can it be you have sextante installed system-wide ?

@qgib
Copy link
Contributor Author

qgib commented Feb 17, 2013

Author Name: Alexander Bruy (@alexbruy)


Sandro Santilli wrote:

Fails here with 8f25bcf -- can it be you have sextante installed system-wide ?

Hmm... there is also SEXTANTE installed with QGIS in /usr/local/share/qgis/python/plugins. Is this system-wide place?

@qgib
Copy link
Contributor Author

qgib commented Feb 17, 2013

Author Name: Sandro Santilli (@strk)


Yes, /usr/local/share/qgis/python/plugins does look like a system wide location.
Wipe that out if you can.

I guess it would be useful to have a switch to request NOT to use system-wide plugins. I see that as something possibly useful (to determine compatibility of non-core plugins) but also possibly harmful (to test/debug new installs).

Note that as long as you have old stuff in the system directories you would also not detect errors in the install procedure, as things would still work thanks to stale files...

@qgib
Copy link
Contributor Author

qgib commented Feb 17, 2013

Author Name: Alexander Bruy (@alexbruy)


After removing SEXTANTE folder from /usr/local/share/qgis/python/plugins I still can load SEXTANTE when running QGIS from build dir. And I checked, there are no other SEXTANTE copies in home or system-wide directories.

@qgib
Copy link
Contributor Author

qgib commented Feb 18, 2013

Author Name: Sandro Santilli (@strk)


I found and removed ~/.qgis/python/plugins/sextante and rebuilt from scratch (wiping out the whole build directory) but still have the same problem. Can it be you've something left in your build tree ?

@qgib
Copy link
Contributor Author

qgib commented Feb 18, 2013

Author Name: Sandro Santilli (@strk)


Oops, reading the backtrace may be useful... It ends with:

ImportError: No module named matplotlib.pyplot

Do you know how to fix that ?

@qgib
Copy link
Contributor Author

qgib commented Feb 18, 2013

Author Name: Giovanni Manghi (@gioman)


Sandro Santilli wrote:

Oops, reading the backtrace may be useful... It ends with:

ImportError: No module named matplotlib.pyplot

Do you know how to fix that ?

try install python-matplotlib ?

@qgib
Copy link
Contributor Author

qgib commented Feb 18, 2013

Author Name: Alexander Bruy (@alexbruy)


I think this algs should be disabled because this introduces additional dependency from 3rd party Python module

@qgib
Copy link
Contributor Author

qgib commented Feb 18, 2013

Author Name: Sandro Santilli (@strk)


python-matplotlib took me a step forward, but isn't enough: ImportError: No module named tools

Could algs be disabled at runtime when deps aren't found ?

Ideally a user would be informed about the problem and ways to fix it.

@qgib
Copy link
Contributor Author

qgib commented Feb 18, 2013

Author Name: Sandro Santilli (@strk)


Alex: still no dice after d31b838
ImportError: No module named scipy

@qgib
Copy link
Contributor Author

qgib commented Feb 18, 2013

Author Name: Alexander Bruy (@alexbruy)


Should be fixed with 2225690

@qgib
Copy link
Contributor Author

qgib commented Feb 18, 2013

Author Name: Sandro Santilli (@strk)


Confirmed


  • status_id was changed from Open to Closed
  • done_ratio was changed from 0 to 100
  • resolution was changed from to fixed

@qgib
Copy link
Contributor Author

qgib commented Feb 18, 2013

Author Name: Rudi von Staden (@rudivs)


I had a similar bug with ImportError: no module named tools. I updated, and now I'm getting "ImportError: No module named psycopg2". I'm reopening the bug assuming it's the same issue.

@couldn't load plugin 'sextante' from ['/home/rudi/apps/qgis/share/qgis/python', '/home/rudi/.qgis//python', '/home/rudi/.qgis//python/plugins', '/home/rudi/apps/qgis/share/qgis/python/plugins', '/usr/local/lib/python2.7/dist-packages/rst2pdf-0.92-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/Pygments-1.5-py2.7.egg', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-packages/ubuntuone-client', '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel', '/usr/lib/python2.7/dist-packages/ubuntuone-couch', '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol', '/home/rudi/apps/qgis/share/qgis/python/plugins/fTools/tools']

Traceback (most recent call last):
File "/home/rudi/apps/qgis/share/qgis/python/qgis/utils.py", line 182, in loadPlugin
import(packageName)
File "/home/rudi/apps/qgis/share/qgis/python/qgis/utils.py", line 452, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/rudi/apps/qgis/share/qgis/python/plugins/sextante/init.py", line 20, in
from sextante.core.Sextante import runalg, runandload, alghelp, alglist, algoptions, load, loadFromAlg, \
File "/home/rudi/apps/qgis/share/qgis/python/qgis/utils.py", line 452, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/rudi/apps/qgis/share/qgis/python/plugins/sextante/core/Sextante.py", line 53, in
from sextante.admintools.AdminToolsAlgorithmProvider import AdminToolsAlgorithmProvider
File "/home/rudi/apps/qgis/share/qgis/python/qgis/utils.py", line 452, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/rudi/apps/qgis/share/qgis/python/plugins/sextante/admintools/AdminToolsAlgorithmProvider.py", line 19, in
from sextante.admintools.PostGISExecuteSQL import PostGISExecuteSQL
File "/home/rudi/apps/qgis/share/qgis/python/qgis/utils.py", line 452, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/rudi/apps/qgis/share/qgis/python/plugins/sextante/admintools/PostGISExecuteSQL.py", line 32, in
from sextante.admintools import postgis_utils
File "/home/rudi/apps/qgis/share/qgis/python/qgis/utils.py", line 452, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/rudi/apps/qgis/share/qgis/python/plugins/sextante/admintools/postgis_utils.py", line 39, in
import psycopg2
File "/home/rudi/apps/qgis/share/qgis/python/qgis/utils.py", line 452, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named psycopg2

Python version:
2.7.3 (default, Sep 26 2012, 21:57:08)
[GCC 4.7.2]

QGIS version:
1.9.0-Master Master, ee96d38

Python path: ['/home/rudi/apps/qgis/share/qgis/python', '/home/rudi/.qgis//python', '/home/rudi/.qgis//python/plugins', '/home/rudi/apps/qgis/share/qgis/python/plugins', '/usr/local/lib/python2.7/dist-packages/rst2pdf-0.92-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/Pygments-1.5-py2.7.egg', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-packages/ubuntuone-client', '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel', '/usr/lib/python2.7/dist-packages/ubuntuone-couch', '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol', '/home/rudi/apps/qgis/share/qgis/python/plugins/fTools/tools']@


  • done_ratio was changed from 100 to 50
  • status_id was changed from Closed to Reopened

@qgib
Copy link
Contributor Author

qgib commented Feb 18, 2013

Author Name: Rudi von Staden (@rudivs)


After '@sudo apt-get install python-psycopg2@', QGIS loaded fine. Not sure whether it's an appropriate dependency so leaving open for now.

@qgib
Copy link
Contributor Author

qgib commented Apr 12, 2013

Author Name: maning sambale (maning sambale)


Proposed for closure.

@qgib
Copy link
Contributor Author

qgib commented May 22, 2013

Author Name: Simon Dedman (@SimonDedman)


Apologies if this is seen as thread-jacking; I have a similar problem which may be related:
Can't install Sextante. Small clip of the fail log (full log available upon request):

"File "C:\OSGeo4W\apps\mapfish_framework-1.0\site-packages\psycopg2\init.py", line 55, in
from psycopg2 import tz
ImportError: cannot import name tz

Python version: 2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]
QGIS version: 1.9.0-Master Master, b805894"

I saw this: http://lethain.com/when-psycopg2-can-t-import-tz/ but I don't think it's exactly the same problem, despite being similar...

p.s. I'm using OSGeo4W.

@qgib
Copy link
Contributor Author

qgib commented May 29, 2013

Author Name: Sandro Santilli (@strk)


Loading sextante from build dir works fine for me as of 58266c1
Simon please use a separate ticket for your problem :)


  • status_id was changed from Reopened to Closed

@qgib qgib added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

No branches or pull requests

1 participant