-
Notifications
You must be signed in to change notification settings - Fork 146
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
QGIS2web keeps failing with python errors #1053
Comments
Can you attach your data in a zip? Another user told me that qgis2web doesn't work with the latest version of QGIS, but I still have to investigate. |
I can verify that it does not work in the LTR 3.34 as that was one of the versions that I tried the current release of qgis2web and a previous release.
Shapefile of the 2 layers I tried it with is attached.
On Monday, March 11, 2024 at 02:08:59 PM MST, Andrea Ordonselli ***@***.***> wrote:
Can you attach your data in a zip?
Another user told me that qgis2web doesn't work with the latest version of QGIS, but I still have to investigate.
It certainly works with the LTR 3.34 version.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Attaching files via email doesn't work. you should create a zip file and upload it to the github discussion. Thank you. |
@andreaordonselli, the symbollayer color property value in QGIS 3.36 is something like Lines 632 to 633 in b7dc3d9
See https://api.qgis.org/api/qgsfillsymbollayer_8cpp_source.html#l00355, https://api.qgis.org/api/qgscolorutils_8cpp_source.html#l00192 |
The 2 shp files were in one zip file |
something is happening that doesn't allow you to attach, I still don't see the zip you upload. send it to me by email info@opengis.it |
Is this a QGIS breaking API change, @agiudiceandrea? |
@tomchadwin, see: qgis/QGIS#55718 (comment) and subsequent comments. |
@tomchadwin |
@andreaordonselli Wrap new code to try to parse the new format in a |
Thanks for your advice, I solved it by acquiring only the first 4 values and this will work with the old and new qgis. def getRGBAColor(color, alpha):
r, g, b, a = color.split(",")[:4]
a = (float(a) / 255) * alpha
return "'rgba(%s)'" % ",".join([r, g, b, str(a)]) |
Looks good to me. Thanks! |
Qgis2web will not return anything, it fails without generating any type of output. I have tried ti with some maps I have use it on previously without any issue and they are now failing. I have also used it with other computers, all with QGIS 3.36.0 and they all failed. I have tried it with older versions on QGIS and versions of qgis2web and it would work just find.
The information below was using a single feature map one with a polygon and another with just a line layer.
QGIS 3.36.0
![stack trace qgis2web](https://private-user-images.githubusercontent.com/498477/311861831-aae7f4c7-1297-4d46-a74c-ee4273a4fc0e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk2MTk0OTQsIm5iZiI6MTcxOTYxOTE5NCwicGF0aCI6Ii80OTg0NzcvMzExODYxODMxLWFhZTdmNGM3LTEyOTctNGQ0Ni1hNzRjLWVlNDI3M2E0ZmMwZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyOFQyMzU5NTRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iYWE1YTEyYzlmODU3YTAwOTQzNjg5MWY5NjU0OGFlYmE2ZWZmMWZkYTBiN2M0MzJjMmY2NGY5M2E4ZGZiMWZiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.bhMzW4otKfbYn2Gg-38FPdtXgKu0sr2Q1mc6g6JXWoA)
qgis2web 3.18.2
python error tab.txt
The text was updated successfully, but these errors were encountered: