[Qgis-user] Issue with QGIS code responsabile of launching plugins and launching Python console

Tudorache, Marian Marian.Tudorache at navcanada.ca
Wed Jun 17 11:09:43 PDT 2015


Hi again,
I have sent an email which was rejected because of the size. I removed the attachments and send it back.
Please let me know if you need that attachments.

Thank you,
Marian


From: Tudorache, Marian
Sent: June-17-15 1:38 PM
To: qgis-user at lists.osgeo.org
Cc: Dave Johansen (davejohansen at gmail.com); Kluew, Vlad
Subject: Issue with QGIS code responsabile of launching plugins and launching Python console

Hi everyone,


I just want to mention the community group that I had to do some changes to 5 python scripts from QGIS.

Problem Definition:
When QGIS 2.8 Wien was launched on Red Hat 7 a Python Error popup window shows up.
I had attach the screenshot ErrorLaunch.png and Error.txt with the complete error message.
Hitting Close allows QGIS to start and it seems the main features of the application were affected except Python Console and Plugins.
When I tried to activate Python console I got another  error (see ErroLaunchPython.png). The same error was when I tried to launch any Plugin.


Initially I thought the issue is from an installation mistake but I was wrong. In reality was some problematic python code.

The script: ui_console_compile_apis.py had at the end an import statement like this: from Qsci.qscisciscintilla import QsciScintilla.

I checked with PyQt4 and I found that QsciScintilla is part of PyQt4.Qsci there is no qscisciscintilla class inside Qsci. So I replaced the importing statement with from PtQt4. Qsci import QsciScintilla.



The scripts: ui_DlgGetScriptsAndModels.py, ui_DlgHelpEdition.py, ui_DlgAlgorithmBase.py, ui_DlgResults.py had at the end an import statement like this: from QtWebKit.QtWebView import QWebView.

I checked with PyQt4 and I found that QWebView is part of PyQt4. QtWebKit. So I replaced the importing statement with PtQt4.QtWebKit import QWebView.



I recompiled those files and replace them in QGIS application and the errors were gone. Now I am able to use QGIS, Python and all plugins without any problem.



So I would like to advise me what is the procedure if I had to change QGIS source code.



NB.
The source that I used to install QGIS and I found those issues is: FEDORA-EPEL-2015-6639

qgis-2.8.2-1.el7<https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-6639/qgis-2.8.2-1.el7?_csrf_token=e4be1107678b48ddd258829378af126dc23700a0>

Fedora EPEL 7<https://admin.fedoraproject.org/updates/EPEL-7?_csrf_token=e4be1107678b48ddd258829378af126dc23700a0>

.














Thanks,

Marian













________________________________
This electronic message, as well as any transmitted files included in the electronic message, may contain privileged or confidential information and is intended solely for the use of the individual(s) or entity to which it is addressed. If you have received this electronic message in error please notify the sender immediately and delete the electronic message. Any unauthorized copying, disclosure or distribution of the electronic message is strictly forbidden. NAV CANADA accepts no liability for any damage caused by any virus and/or other malicious code transmitted by this electronic communication.

Le pr?sent message ?lectronique et tout fichier qui peut y ?tre joint peuvent contenir des renseignements privil?gi?s ou confidentiels destin?s ? l'usage exclusif des personnes ou des organismes ? qui ils s'adressent. Si vous avez re?u ce message ?lectronique par erreur, veuillez en informer l'exp?diteur imm?diatement et supprimez le. Toute reproduction, divulgation ou distribution du pr?sent message ?lectronique est strictement interdite. NAV CANADA n'assume aucune responsabilit? en cas de dommage caus? par tout virus ou autre programme malveillant transmis par ce message ?lectronique.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150617/7cefdb2c/attachment.html>


More information about the Qgis-user mailing list