Re: [gtk-osx-users] jhbuildrc TypeError issue.





On Aug 23, 2020, at 1:24 AM, Pascal <p p14 orange fr> wrote:


Le 22 août 2020 à 19:17, John Ralls <jralls ceridwen us> a écrit :

On Aug 22, 2020, at 12:38 AM, Pascal <p p14 orange fr> wrote:


...

Then, I've got the following logs with "failed":

% jhbuild bootstrap-gtk-osx                           
...
E: ['pkg-config', '--list-all'] failed
E: ['pkg-config', '--list-all'] failed
*** Checking out xz *** [1/14]
...

Well, if you're starting with a new prefix there won't be any pkg-config to call so it will fail. There's 
no call to pkg-config in gtk-osx itself though of course lots of configure scripts do. Are you trying to 
call it in jhbuildrc-custom?

Yes John it was a new prefix.

Here are the traceback of the two errors:

E: ['pkg-config', '--list-all'] failed
 File "/opt/src-2020/.new_local/libexec/run_jhbuild.py", line 17, in <module>
   jhbuild.main.main(sys.argv[1:])
 File "/opt/src-2020/Source/jhbuild/jhbuild/main.py", line 120, in main
   rc = jhbuild.commands.run(command, config, args, help=lambda: print_help(parser))
 File "/opt/src-2020/Source/jhbuild/jhbuild/commands/__init__.py", line 188, in run
   return cmd.execute(config, args, help)
 File "/opt/src-2020/Source/jhbuild/jhbuild/commands/__init__.py", line 56, in execute
   return self.run(config, options, args, help)
 File "/opt/src-2020/config/jhbuildrc", line 97, in run
   rc = jhbuild.commands.base.cmd_build.run(self, config, options, args)
 File "/opt/src-2020/Source/jhbuild/jhbuild/commands/base.py", line 237, in run
   module_list = module_set.remove_system_modules(full_module_list)
 File "/opt/src-2020/Source/jhbuild/jhbuild/moduleset.py", line 245, in remove_system_modules
   installed_pkgconfig = systeminstall.get_installed_pkgconfigs(self.config)
 File "/opt/src-2020/Source/jhbuild/jhbuild/utils/systeminstall.py", line 44, in get_installed_pkgconfigs
   traceback.print_stack()
E: ['pkg-config', '--list-all'] failed
 File "/opt/src-2020/.new_local/libexec/run_jhbuild.py", line 17, in <module>
   jhbuild.main.main(sys.argv[1:])
 File "/opt/src-2020/Source/jhbuild/jhbuild/main.py", line 120, in main
   rc = jhbuild.commands.run(command, config, args, help=lambda: print_help(parser))
 File "/opt/src-2020/Source/jhbuild/jhbuild/commands/__init__.py", line 188, in run
   return cmd.execute(config, args, help)
 File "/opt/src-2020/Source/jhbuild/jhbuild/commands/__init__.py", line 56, in execute
   return self.run(config, options, args, help)
 File "/opt/src-2020/config/jhbuildrc", line 97, in run
   rc = jhbuild.commands.base.cmd_build.run(self, config, options, args)
 File "/opt/src-2020/Source/jhbuild/jhbuild/commands/base.py", line 252, in run
   module_state = module_set.get_module_state(full_module_list)
 File "/opt/src-2020/Source/jhbuild/jhbuild/moduleset.py", line 206, in get_module_state
   installed_pkgconfig = systeminstall.get_installed_pkgconfigs(self.config)
 File "/opt/src-2020/Source/jhbuild/jhbuild/utils/systeminstall.py", line 44, in get_installed_pkgconfigs
   traceback.print_stack()

It is a handled exception in the code, I don't know why it issues an error logging level.
I reported these errors as I haven't seen them before.

It prints the error because beginning in 3.7 not-captured output is passed on to the usual FD and line 44 
doesn't capture stderror.

It seems otherwise harmless.

Regards,
John Ralls



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]