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

cmake mises missing Qsci #17429

Closed
qgib opened this issue Sep 27, 2013 · 5 comments
Closed

cmake mises missing Qsci #17429

qgib opened this issue Sep 27, 2013 · 5 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS

Comments

@qgib
Copy link
Contributor

qgib commented Sep 27, 2013

Author Name: marisn - (marisn -)
Original Redmine Issue: 8710
Affected QGIS version: master
Redmine category:build/install


Today's (and already for some time) master spits an error on startup about missing Qsci, but cmake doesn't complain about it. If Qsci is a mandatory dependency, it has to be enforced. If it isn't - parts requiring it shouldn't be compiled.

Gentoo ~AMD64

Couldn't load plugin 'processing' from ['/home/maris/soft/qgis_bin/share/qgis/python', '/home/maris/.qgis2/python', '/home/maris/.qgis2/python/plugins', '/home/maris/soft/qgis_bin/share/qgis/python/plugins', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', '/usr/lib64/python2.7/site-packages/geos', '/usr/lib64/python2.7/site-packages/gst-0.10', '/usr/lib64/python2.7/site-packages/gtk-2.0', '/usr/lib64/python2.7/site-packages/wx-2.9.4-gtk2']

Traceback (most recent call last):
  File "/home/maris/soft/qgis_bin/share/qgis/python/qgis/utils.py", line 182, in loadPlugin
    __import__(packageName)
  File "/home/maris/soft/qgis_bin/share/qgis/python/qgis/utils.py", line 453, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/maris/soft/qgis_bin/share/qgis/python/plugins/processing/__init__.py", line 27, in 
    from processing.tools.general import *
  File "/home/maris/soft/qgis_bin/share/qgis/python/qgis/utils.py", line 453, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/maris/soft/qgis_bin/share/qgis/python/plugins/processing/tools/general.py", line 28, in 
    from processing.core.Processing import Processing
  File "/home/maris/soft/qgis_bin/share/qgis/python/qgis/utils.py", line 453, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/maris/soft/qgis_bin/share/qgis/python/plugins/processing/core/Processing.py", line 49, in 
    from processing.r.RAlgorithmProvider import RAlgorithmProvider
  File "/home/maris/soft/qgis_bin/share/qgis/python/qgis/utils.py", line 453, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/maris/soft/qgis_bin/share/qgis/python/plugins/processing/r/RAlgorithmProvider.py", line 32, in 
    from processing.gui.EditScriptAction import EditScriptAction
  File "/home/maris/soft/qgis_bin/share/qgis/python/qgis/utils.py", line 453, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/maris/soft/qgis_bin/share/qgis/python/plugins/processing/gui/EditScriptAction.py", line 27, in 
    from processing.gui.ScriptEditorDialog import ScriptEditorDialog
  File "/home/maris/soft/qgis_bin/share/qgis/python/qgis/utils.py", line 453, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/maris/soft/qgis_bin/share/qgis/python/plugins/processing/gui/ScriptEditorDialog.py", line 30, in 
    from PyQt4.Qsci import *
  File "/home/maris/soft/qgis_bin/share/qgis/python/qgis/utils.py", line 453, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named Qsci

Python versija:
2.7.5 (default, Aug 19 2013, 12:55:26) 
[GCC 4.7.3]


QGIS versija:
2.1.0-Master Master, c9de713

Python ceļš: ['/home/maris/soft/qgis_bin/share/qgis/python', u'/home/maris/.qgis2/python', u'/home/maris/.qgis2/python/plugins', '/home/maris/soft/qgis_bin/share/qgis/python/plugins', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', '/usr/lib64/python2.7/site-packages/geos', '/usr/lib64/python2.7/site-packages/gst-0.10', '/usr/lib64/python2.7/site-packages/gtk-2.0', '/usr/lib64/python2.7/site-packages/wx-2.9.4-gtk2']

@qgib
Copy link
Contributor Author

qgib commented Sep 27, 2013

Author Name: Jürgen Fischer (@jef-n)


There's nothing to compile - just the python console depends on @QSci@.

@qgib
Copy link
Contributor Author

qgib commented Sep 27, 2013

Author Name: Larry Shaffer (Larry Shaffer)


Hi,

Like Jürgen mentions, you currently only need to ensure the Python module is installed (though the C++ lib may become a CMake dependency with the next QGIS version).

I'm not familiar with Gentoo, but it looks like you would just need to install "qscintilla-python":http://packages.gentoo.org/package/dev-python/qscintilla-python ? The C++ lib should be installed as a dependency of the Python module.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Sep 27, 2013

Author Name: marisn - (marisn -)


Processing is a default plugin, right? If it is so, during compilation time is necessary to check for it's dependencies as it doesn't pass the normal plugin installation routine.

Current situation is not OK, as QGIS is trying to use a component even during ccmake part necessary components weren't located.

There are three options:

  1. mark QSci as a mandatory dependency;
  2. do not install processing and other parts depending on QSci if it's missing;
  3. install but disable per default.

I don't know what for QSci is used and how deep is this integration to tell which of the options should be chosen.

@qgib
Copy link
Contributor Author

qgib commented Oct 19, 2013

Author Name: Georg Reutelsterz (Georg Reutelsterz)


Hello, I had the same problem by opening the console from qgis 2.x under OpenSuSE 12.1
The error message was:

 Konnte Python-Konsole nicht öffnen:
 ...

 ImportError: No module named Qsci

Solution:
I installed the package python-qscintilla, nevertheless there was no dependency for this package by installing qgis.

@qgib
Copy link
Contributor Author

qgib commented Jul 28, 2014

Author Name: Matthias Kuhn (@m-kuhn)


This is a distribution issue.
Please open a ticket on your distribution bugtracker.


  • status_id was changed from Feedback to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS labels 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! Build/Install Related to compiling or installing QGIS
Projects
None yet
Development

No branches or pull requests

1 participant