Bug report #10659

Processing : the "add script from file" tool generates an error

Added by Harrissou Santanna over 10 years ago. Updated over 9 years ago.

Status:Closed
Priority:High
Assignee:Victor Olaya
Category:Processing/Core
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:19058

Description

In the Processing ToolBox, when adding a script from a file, you get an error message:

Traceback (most recent call last):
  File "C:/Users/pclocal/.qgis2/python/plugins\\processing\\gui\\ProcessingToolbox.py", line 210, in executeAlgorithm
    action.execute()
  File "C:/Users/pclocal/.qgis2/python/plugins\\processing\\script\\AddScriptFromFileAction.py", line 55, in execute
    f.write(script.script)
IOError: File not open for writing

Version de Python :
2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]

Version de QGIS :
2.3.0-Master Master, 7aa93c0

Then, the script you wanted to add won't be imported till you close and reopen QGIS.

Associated revisions

Revision 5a1d24dd
Added by Victor Olaya over 10 years ago

[processing] fix #10659

History

#1 Updated by Victor Olaya over 10 years ago

  • Status changed from Open to Closed

#2 Updated by Giovanni Manghi over 9 years ago

  • Category changed from 94 to Processing/Core

Also available in: Atom PDF