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
Python bug when creating keywords for hazard layers #2453
Comments
I tested it yesterday on another computer and same 3.2.1 version and got the same blocking issue. But just got the answer when changing the language: it comes from the (my) French translation. I guess something that is a value has been translated. Could you please tell me what it is so that I clean it in Transifex? |
We just register a string that needs to be translated, so all strings in transifex should be safe to be translated.
I need to check it, I will come back to you if I have found something. It should affect the other languages also. Perhaps, there is a string that is "accidentally" registered. Thanks, really help. |
Hi @severinmenard
is translated with double No worries, I have fixed it in transifex. It will be solved when we merged my translations PR. Thanks :) |
Sorry for the typo, and thanks for the fix On Thu, Nov 5, 2015 at 4:46 AM, Ismail Sunni notifications@github.com
|
I will close this since it have been fixed in version 3.2.2 |
Hello, Actually the bug is still present in the French version with the new v3.2.3. On Wed, Nov 11, 2015 at 6:05 AM, Ismail Sunni notifications@github.com
|
Hmm, this is strange. I get the same error again now. I am pretty sure I fix the problem before it's released. I have updated the string that caused the problem: https://www.transifex.com/aifdr/inasafe-apps/translate/#fr/safe/59829406 *you need to login to see this though. See my comment above (#2453 (comment)) about the problem. Anyway, I have checked version 3.2.3 and develop. They are different.
https://github.com/inasafe/inasafe/blob/develop/i18n/inasafe_fr.ts#L3281
For some reason, in version 3.2.3 we didn't manage to update the translation from transifex. Anyway, the problem is already fixed, but it's not in 3.2.3 yet. We only need to release 3.2.4 from develop (whose updated translation). What do you think @timlinux , is it possible? |
@severinmenard can you test against 3.2.4 (available in plugin manager) to see if it works for you now? Thanks! |
Tested in my local. I will close this. Free to re-open if still get the error. |
Sorry I thought I had informed it works fine now, but seems I did not. On Mon, Jan 11, 2016 at 2:32 AM, Ismail Sunni notifications@github.com
|
Ah, I miss read your comment. I will close this again now. |
Got this Python error after clicking on next at the Flood or Generic classes step (see below) for a polygon flood layer. The layer does not have a field with classes, only one with the same values for all the objects. I have other hazard layers with the same kind of attributes but I managed to achieve the keywords wizard
Python error:
Traceback (most recent call last):
File "/home/severin/.qgis2/python/plugins/inasafe/safe/gui/tools/wizard_dialog.py", line 3844, in on_pbnNext_released
self.set_widgets_step_kw_field()
File "/home/severin/.qgis2/python/plugins/inasafe/safe/gui/tools/wizard_dialog.py", line 1193, in set_widgets_step_kw_field
subcategory['name'])
TypeError: not enough arguments for format string
Version de Python :
2.7.6 (default, Jun 22 2015, 18:01:27)
[GCC 4.8.2]
Version de QGIS :
2.10.1-Pisa Pisa, exported
Chemin vers Python : ['/home/severin/.qgis2/python/plugins/processing', '/usr/share/qgis/python', u'/home/severin/.qgis2/python', u'/home/severin/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/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/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', u'/home/severin/.qgis2//python', '/home/severin/.qgis2/python/plugins/inasafe', '/home/severin/.qgis2/python/plugins/inasafe/safe_extras/parameters', '/home/severin/.qgis2/python/plugins', '/home/severin/.qgis2/python/plugins/inasafe/safe_extras', '/home/severin/.qgis2/python/plugins', '/usr/share/qgis/python/plugins/fTools/tools', '/home/severin/.qgis2/python/plugins/cadastre/forms', '/media/severin/DATA/Documents/OSM/Malawi/Malawi_GIS/03_PROJECTS/0301_QGIS']
The text was updated successfully, but these errors were encountered: