Ticket #7648 (closed: duplicate)

Opened 7 years ago

Last modified 5 years ago

RunPythonScript.py algorithm line ending issue

Reported by: Owen Arnold Owned by: Martyn Gigg
Priority: critical Milestone: Release 3.0
Component: Framework Keywords:
Cc: Blocked By:
Blocking: Tester: Michael Reuter

Description

The algorithm does not convert the input code to unix line endings before executing the code. python exec, seems to require that the line endings are unix style. A quick attempt of replacing

code = self.getPropertyValue("Code")

with

code = self.getPropertyValue("Code")
code = code.replace('\r', '')

fixed the issue on my mac.

Change History

comment:1 Changed 7 years ago by Martyn Gigg

  • Status changed from new to verify
  • Resolution set to duplicate

Trac seems to have created 3 copies of the same ticket. Duplicate of #7646

comment:2 Changed 7 years ago by Michael Reuter

  • Status changed from verify to verifying
  • Tester set to Michael Reuter

comment:3 Changed 7 years ago by Michael Reuter

  • Status changed from verifying to closed

I hate it when Trac does that.

comment:4 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 8493

Note: See TracTickets for help on using tickets.