public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* Exception in do_transform_template()
@ 2019-09-18 11:16 Baurzhan Ismagulov
  2019-09-18 11:27 ` Baurzhan Ismagulov
  2019-09-18 11:46 ` Quirin Gylstorff
  0 siblings, 2 replies; 4+ messages in thread
From: Baurzhan Ismagulov @ 2019-09-18 11:16 UTC (permalink / raw)
  To: isar-users

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: <module>
     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'

ERROR: mc:rpi-jessie:example-module-rpi-rpfv-1.0-r0 do_transform_template: Function failed: do_transform_template

With kind regards,
-- 
Baurzhan Ismagulov
ilbers GmbH
Maria-Merian-Str. 8
D-85521 Ottobrunn
+49 (89) 122 67 24-0
ibr@ilbers.de
http://ilbers.de/
Amtsgericht M�nchen, HRB 214197
Gesch�ftsf�hrer: Baurzhan Ismagulov

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Exception in do_transform_template()
  2019-09-18 11:16 Exception in do_transform_template() Baurzhan Ismagulov
@ 2019-09-18 11:27 ` Baurzhan Ismagulov
  2019-09-18 11:46 ` Quirin Gylstorff
  1 sibling, 0 replies; 4+ messages in thread
From: Baurzhan Ismagulov @ 2019-09-18 11:27 UTC (permalink / raw)
  To: isar-users

On Wed, Sep 18, 2019 at 01:16:53PM +0200, Baurzhan Ismagulov wrote:
> Exception: FileNotFoundError: [Errno 2] No such file or directory: 'envsubst'

Seems I don't have gettext-base installed. Will try.

With kind regards,
Baurzhan.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Exception in do_transform_template()
  2019-09-18 11:16 Exception in do_transform_template() Baurzhan Ismagulov
  2019-09-18 11:27 ` Baurzhan Ismagulov
@ 2019-09-18 11:46 ` Quirin Gylstorff
  2019-09-18 12:38   ` Baurzhan Ismagulov
  1 sibling, 1 reply; 4+ messages in thread
From: Quirin Gylstorff @ 2019-09-18 11:46 UTC (permalink / raw)
  To: isar-users



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: <module>
>       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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Exception in do_transform_template()
  2019-09-18 11:46 ` Quirin Gylstorff
@ 2019-09-18 12:38   ` Baurzhan Ismagulov
  0 siblings, 0 replies; 4+ messages in thread
From: Baurzhan Ismagulov @ 2019-09-18 12:38 UTC (permalink / raw)
  To: isar-users

On Wed, Sep 18, 2019 at 01:46:19PM +0200, Quirin Gylstorff wrote:
> He did not find the envsubst command.
> envsubst is part of gettext-base. Do you have gettext-base installed on the
> system?

Yes, thanks, that helped. I've accidentally used an older copy of a host rootfs
that didn't have it installed.

With kind regards,
Baurzhan.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-09-18 12:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-18 11:16 Exception in do_transform_template() Baurzhan Ismagulov
2019-09-18 11:27 ` Baurzhan Ismagulov
2019-09-18 11:46 ` Quirin Gylstorff
2019-09-18 12:38   ` Baurzhan Ismagulov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox