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

ImportError: cannot import name QgsCodeEditorHTML #55

Closed
lionelbargeot opened this issue Apr 26, 2016 · 12 comments
Closed

ImportError: cannot import name QgsCodeEditorHTML #55

lionelbargeot opened this issue Apr 26, 2016 · 12 comments

Comments

@lionelbargeot
Copy link

Hi

I don't know if it's a lizmap plugin issue or a Qgis issue or a python issue. When I use the demo project (montpellier) and try to configure/change popup template, I-ve got the following message :
ImportError: cannot import name QgsCodeEditorHTML
I'm working on an ubuntu package : 1:2.14.1+20trusty on Linux Mint 17.2

Thanks for help
Lionel

@mdouchin
Copy link
Contributor

@slarosa Do you know what can cause this bug ? Is QScintilla2 installed in all platforms ?

@slarosa
Copy link
Contributor

slarosa commented Apr 26, 2016

no idea, @lionelbargeot Do you get any error by running from qgis.gui import QgsCodeEditorHTML within the python console?

@lionelbargeot
Copy link
Author

I've got the same error in the python console.
I use this package from my distrib :
python-qscintilla2 2.8.1-2ubuntu1

@lionelbargeot
Copy link
Author

I downloaded nightly build deb package for qgis and python-qgis and the problem is still here

@lionelbargeot
Copy link
Author

It works fine on a Xenial ubuntu with python-qscintilla2 2.9.1

@carminemassarelli
Copy link

it does not work with ubuntu 14.04 with qscintilla2 2.8.1 and qgis 2.18 ltr

@pcav
Copy link
Collaborator

pcav commented Jun 28, 2018

Confirmed here: #106
Sorry for the duplication.

@pcav pcav reopened this Jun 28, 2018
@pcav
Copy link
Collaborator

pcav commented Jun 28, 2018

Not exactly a duplicate though: in my case it happens at startup of the application.

@pcav
Copy link
Collaborator

pcav commented Jun 29, 2018

Please note: in the compiled standard package the error does not pop up

@mdouchin
Copy link
Contributor

mdouchin commented Jul 4, 2018

@pcav it is not a lizmap plugin issue, but more a package/configuration. Please ask the qgis-dev list, to gather more help. You should focus of the bug which happens when trying
from qgis.gui import QgsCodeEditorHTML in QGIS Python console

@pcav
Copy link
Collaborator

pcav commented Jul 4, 2018 via email

@Gustry
Copy link
Member

Gustry commented Aug 26, 2019

As @mdouchin this is not a Lizmap issue.

from qgis.gui import QgsCodeEditorHTML works well for me.

@Gustry Gustry closed this as completed Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants