Bug report #2590

Can't open Python console after new layer creation

Added by Alexander Bruy over 14 years ago. Updated over 14 years ago.

Status:Closed
Priority:Low
Assignee:Martin Dobias
Category:Python plugins
Affected QGIS version: Regression?:No
Operating System:All Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:12650

Description

To reproduce:

1. create new empty shapefile with QGIS (point, polygon or line), add one attribute

2. start editing and add few object to the layer

3. save edits

4. try to open Python console

5. get error "Failed to open Python console: exceptions.NameError: name '_qgis_featureform_220100325194534055' is not defined"

History

#1 Updated by Martin Dobias over 14 years ago

Not reproducible here.

I believe this error is related to the usage of custom form for editing of feature attributes: a form fails to load and the python exception is set, but not handled until the python console is started. Can you confirm?

Or it could be related to one of the plugins...

#2 Updated by Alexander Bruy over 14 years ago

Replying to [comment:1 wonder]:

I believe this error is related to the usage of custom form for editing of feature attributes: a form fails to load and the python exception is set, but not handled until the python console is started. Can you confirm?

I don't use custom form for attributes editing. Also I disable "Open feature form, if a single feature identified" but error remains

Or it could be related to one of the plugins...

All plugins are unloaded and same result - error.

#3 Updated by Borys Jurgiel over 14 years ago

Still the problem occurs? I can't reproduce it and have no idea where's the reason.

#4 Updated by Maxim Dubinin over 14 years ago

I confirm, problem is still here.
No forms, fresh nightly build, new project with only one layer in it.
http://gis-lab.info/images/screenshots/20100617-f69-12kb.jpg

#5 Updated by Alexander Bruy over 14 years ago

Confirmed too. With or without forms, 27e451ce (SVN r13725).

#6 Updated by Martin Dobias over 14 years ago

  • Status changed from Open to Closed
  • Resolution set to fixed

Should be fixed in 52a49c90 (SVN r13752).

#7 Updated by Alexander Bruy over 14 years ago

Yes, it is fixed. Thanks, Martin!

Also available in: Atom PDF