Project

General

Profile

Actions

Bug #6615

closed

ncf_rudder.py is not valid when using python 2.6

Added by Nicolas CHARLES over 9 years ago. Updated over 2 years ago.

Status:
Released
Priority:
1 (highest)
Category:
Generic methods
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

When saving a technique, I get the following error

An Error occured! Could not write technique 'dsqfqsf' from path /var/rudder/configuration-repository/ncf, cause is: Error while running post-hook command [u'/var/rudder/configuration-repository/ncf/ncf-hooks.d/post.write_technique.rudderify.sh', u'/var/rudder/configuration-repository/ncf', u'dsqfqsf']
Details: INFO: Alternative source path added: /var/rudder/configuration-repository/ncf Error: Unable to create Rudder Technique files related to ncf Technique dsqfqsf (sub() got an unexpected keyword argument 'flags') Traceback (most recent call last): File "/usr/share/ncf/tools/ncf_rudder.py", line 46, in write_one_technique_for_rudder write_technique_for_rudder(destination_path, metadata) File "/usr/share/ncf/tools/ncf_rudder.py", line 125, in write_technique_for_rudder write_rudder_reporting_file(path,technique) File "/usr/share/ncf/tools/ncf_rudder.py", line 147, in write_rudder_reporting_file content = generate_rudder_reporting(technique) File "/usr/share/ncf/tools/ncf_rudder.py", line 302, in generate_rudder_reporting key_value_canonified = re.sub("[^\$\{\}\w](?![^{}]+})|\$(?!{)", "_", key_value, flags=re.UNICODE) TypeError: sub() got an unexpected keyword argument 'flags' 


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #6531: Interface ncf builder can't read the created techniquesReleasedBenoît PECCATTEActions
Actions

Also available in: Atom PDF