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

Processing refactor fields: python error after trying to add a new field #20373

Closed
qgib opened this issue Feb 11, 2015 · 2 comments
Closed

Processing refactor fields: python error after trying to add a new field #20373

qgib opened this issue Feb 11, 2015 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@qgib
Copy link
Contributor

qgib commented Feb 11, 2015

Author Name: Filipe Dias (@fsdias)
Original Redmine Issue: 12183
Affected QGIS version: 2.6.0
Redmine category:processing/qgis
Assignee: Victor Olaya


Click "add a new field", set its "precision", "length" and "type"

Select this field and click "delete selected field"

Click "Add a new field" again

Double on "name" and this Python error appears:

An error has occured while executing Python code:

Traceback (most recent call last):
File "/usr/share/qgis/python/plugins/processing/algs/qgis/ui/FieldsMappingPanel.py", line 137, in data
return self.fieldTypes[value]
KeyError: None

Python version:
2.7.6 (default, Mar 22 2014, 23:03:41)
[GCC 4.8.2]

QGIS version:
2.7.0-Master Master, exported

Python path: ['/usr/share/qgis/python/plugins/processing', '/home/fd/.qgis2/python/plugins/processinglwgeomprovider', '/home/fd/.qgis2/python/plugins/LecoS', '/usr/share/qgis/python', u'/home/fd/.qgis2/python', u'/home/fd/.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', '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode', u'/home/fd/.qgis2//python', '/usr/share/qgis/python/plugins/fTools/tools', '/home/fd/.qgis2/python/plugins/MetaSearch/ext-libs']


@qgib
Copy link
Contributor Author

qgib commented Feb 11, 2015

Author Name: Arnaud Morvan (@arnaud-morvan)


After edit on field type, if none selected, set model data to QtCore.QVariant.Invalid which is correctly handled in model.data method.
Pull request: #1897

@qgib
Copy link
Contributor Author

qgib commented Feb 11, 2015

Author Name: Arnaud Morvan (@arnaud-morvan)


Fixed in changeset "ed94aff17d2ddd65c98c5a67f2196da4fa45bbf6".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms labels May 25, 2019
@qgib qgib closed this as completed May 25, 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! Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

1 participant