From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6737967958157426688 X-Received: by 2002:a2e:819a:: with SMTP id e26mr1883622ljg.197.1568807222596; Wed, 18 Sep 2019 04:47:02 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ac2:42d1:: with SMTP id n17ls659616lfl.5.gmail; Wed, 18 Sep 2019 04:47:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHDBrPcXXfp5bc7ZDdRcMtptUgAxc3brMi1Z75xCtxLh3NG06tHxF9UlvUVTvsWrgazDCX X-Received: by 2002:a05:6512:251:: with SMTP id b17mr2032727lfo.35.1568807222133; Wed, 18 Sep 2019 04:47:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568807222; cv=none; d=google.com; s=arc-20160816; b=XQZWcylCiTQ8Fh4izjYMMNTLHKqBxtkGAR3ezNR27fp72cZcG0PFVS3dwmtzKxcC3y NccXwQBQM5D3s76nq1Q1G85tKGG6O2fvokCVWxNhiXtFjpRMDxlLrKGga69VW1dExfxa OVxV0D8QS32m3vQb8LUlxCjYQMXCZz4eVxgYhCxDyFTboIM1KiYwzcJVmLg4SLv/KM1a DSlr872RkAZoimCR5/1rDjAYdobuUvkfYjwKX1VtFY627oMO3cUaGEa19g/pNglKeF0z VzC/dH5bNu1+LfUfyV+QnAq4r1k3MZqEL70hZKJesooUc5GQ61/hjOWR2TH+fhv8lBk6 EP9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject; bh=0cJGUNA019gSnAEGGTLX2f8vFq7vnIbBeWDMDSEqwwI=; b=y7ZKepY4tdUH4qkU8SM9pPIcIHFNnDrcVCqOW/W/E1W+5hQhfLKwWq2EbWcLKVu6FQ VmC8YlgMO/BBcn+c5+oUSfHpr55iksQleDWddTtV/K1sdhR7b8vIz5hZiECLAP7Ayiwc 8NK2H474lX2dvqfQDPZCNKIiKgsavtMFG7CeEvIIQ4OCjW8AoYX9vxtb04KmYYSLrPZz pSYSbxGpHRHlSS3ucX/mIw8wVK8MEujizweQoeQj1O+fSD5isbx+tf3/ml7mErSvf91z Gh82tg33j77kySPlbOlXSsxoQ30wzJFa2sjKXj20x3sT7ULCTkMDOYORBVWjlCh7t5Xc yrIw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of quirin.gylstorff@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=quirin.gylstorff@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id a9si245475lfk.5.2019.09.18.04.47.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Sep 2019 04:47:02 -0700 (PDT) Received-SPF: pass (google.com: domain of quirin.gylstorff@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of quirin.gylstorff@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=quirin.gylstorff@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id x8IBl18D025772 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 18 Sep 2019 13:47:01 +0200 Received: from [139.25.69.120] ([139.25.69.120]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id x8IBl11c003667 for ; Wed, 18 Sep 2019 13:47:01 +0200 Subject: Re: Exception in do_transform_template() To: isar-users@googlegroups.com References: <20190918111653.is6ugty7h6tw6qrt@yssyq.m.ilbers.de> From: Quirin Gylstorff Message-ID: <377a12a6-3289-1226-5b1e-c4e0eacb06e2@siemens.com> Date: Wed, 18 Sep 2019 13:46:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190918111653.is6ugty7h6tw6qrt@yssyq.m.ilbers.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: GW+IXnmYsPJy On 9/18/19 1:16 PM, Baurzhan Ismagulov wrote: > Hello, > > I occasionally get the exception below. The full log can be seen e.g. in > http://zhanghyz.ilbers.de:8080/job/isar_claudius_ilbers-ci/9/consoleFull. Any > ideas what could be causing that? > > ERROR: mc:rpi-jessie:example-module-rpi-rpfv-1.0-r0 do_transform_template: Error executing a python function in exec_python_func() autogenerated: > > The stack trace of python calls that resulted in this exception/failure was: > File: 'exec_python_func() autogenerated', lineno: 2, function: > 0001: > *** 0002:do_transform_template(d) > 0003: > File: '/workspace/build/isar_claudius_ilbers-ci/9/meta/classes/template.bbclass', lineno: 58, function: do_transform_template > 0054: with contextlib.ExitStack() as stack: > 0055: input = stack.enter_context(open(template_file, 'rb')) > 0056: output = stack.enter_context(open(output_file, 'wb')) > 0057: process = subprocess.Popen([cmd, args], stdin=input, > *** 0058: stdout=output, env=env) > 0059: if process.wait() != 0: > 0060: bb.fatal("processing of template failed") > 0061:} > 0062:addtask do_transform_template after do_unpack before do_build > File: '/usr/lib/python3.5/subprocess.py', lineno: 676, function: __init__ > 0672: startupinfo, creationflags, shell, > 0673: p2cread, p2cwrite, > 0674: c2pread, c2pwrite, > 0675: errread, errwrite, > *** 0676: restore_signals, start_new_session) > 0677: except: > 0678: # Cleanup if the child failed starting. > 0679: for f in filter(None, (self.stdin, self.stdout, self.stderr)): > 0680: try: > File: '/usr/lib/python3.5/subprocess.py', lineno: 1282, function: _execute_child > 1278: # The error must be from chdir(cwd). > 1279: err_msg += ': ' + repr(cwd) > 1280: else: > 1281: err_msg += ': ' + repr(orig_executable) > *** 1282: raise child_exception_type(errno_num, err_msg) > 1283: raise child_exception_type(err_msg) > 1284: > 1285: > 1286: def _handle_exitstatus(self, sts, _WIFSIGNALED=os.WIFSIGNALED, > Exception: FileNotFoundError: [Errno 2] No such file or directory: 'envsubst' > Hi, He did not find the envsubst command. envsubst is part of gettext-base. Do you have gettext-base installed on the system? > ERROR: mc:rpi-jessie:example-module-rpi-rpfv-1.0-r0 do_transform_template: Function failed: do_transform_template > > With kind regards, > Quirin