Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'once' is an invalid keyword argument for print() #8002

Closed
Neumann-A opened this issue Nov 19, 2020 · 0 comments · Fixed by #8003
Closed

'once' is an invalid keyword argument for print() #8002

Neumann-A opened this issue Nov 19, 2020 · 0 comments · Fixed by #8003
Assignees

Comments

@Neumann-A
Copy link
Contributor

Neumann-A commented Nov 19, 2020

Traceback (most recent call last):
  File "D:\downloads\tools\meson\meson-91876b40316962620c1705ae14075ab46f8dd644\mesonbuild\mesonmain.py", line 132, in run
    return options.run_func(options)
  File "D:\downloads\tools\meson\meson-91876b40316962620c1705ae14075ab46f8dd644\mesonbuild\msetup.py", line 253, in run
    app.generate()
  File "D:\downloads\tools\meson\meson-91876b40316962620c1705ae14075ab46f8dd644\mesonbuild\msetup.py", line 161, in generate
    self._generate(env)
  File "D:\downloads\tools\meson\meson-91876b40316962620c1705ae14075ab46f8dd644\mesonbuild\msetup.py", line 200, in _generate
    intr.run()
  File "D:\downloads\tools\meson\meson-91876b40316962620c1705ae14075ab46f8dd644\mesonbuild\interpreter.py", line 4726, in run
    super().run()
  File "D:\downloads\tools\meson\meson-91876b40316962620c1705ae14075ab46f8dd644\mesonbuild\interpreterbase.py", line 519, in run
    self.evaluate_codeblock(self.ast, start=1)
  File "D:\downloads\tools\meson\meson-91876b40316962620c1705ae14075ab46f8dd644\mesonbuild\interpreterbase.py", line 544, in evaluate_codeblock
    raise e
  File "D:\downloads\tools\meson\meson-91876b40316962620c1705ae14075ab46f8dd644\mesonbuild\interpreterbase.py", line 537, in evaluate_codeblock
    self.evaluate_statement(cur)
  File "D:\downloads\tools\meson\meson-91876b40316962620c1705ae14075ab46f8dd644\mesonbuild\interpreterbase.py", line 552, in evaluate_statement
    self.assignment(cur)
  File "D:\downloads\tools\meson\meson-91876b40316962620c1705ae14075ab46f8dd644\mesonbuild\interpreterbase.py", line 1219, in assignment
    value = self.evaluate_statement(node.value)
  File "D:\downloads\tools\meson\meson-91876b40316962620c1705ae14075ab46f8dd644\mesonbuild\interpreterbase.py", line 554, in evaluate_statement
    return self.method_call(cur)
  File "D:\downloads\tools\meson\meson-91876b40316962620c1705ae14075ab46f8dd644\mesonbuild\interpreterbase.py", line 951, in method_call
    return obj.method_call(method_name, args, kwargs)
  File "D:\downloads\tools\meson\meson-91876b40316962620c1705ae14075ab46f8dd644\mesonbuild\interpreterbase.py", line 56, in method_call
    return method(args, kwargs)
  File "D:\downloads\tools\meson\meson-91876b40316962620c1705ae14075ab46f8dd644\mesonbuild\interpreterbase.py", line 228, in wrapped
    return f(*wrapped_args, **wrapped_kwargs)
  File "D:\downloads\tools\meson\meson-91876b40316962620c1705ae14075ab46f8dd644\mesonbuild\interpreter.py", line 1487, in compiles_method
    result, cached = self.compiler.compiles(code, self.environment,
  File "D:\downloads\tools\meson\meson-91876b40316962620c1705ae14075ab46f8dd644\mesonbuild\compilers\compilers.py", line 1191, in compiles
    with self._build_wrapper(code, env, extra_args, dependencies, mode, disable_cache=disable_cache) as p:
  File "contextlib.py", line 113, in __enter__
  File "D:\downloads\tools\meson\meson-91876b40316962620c1705ae14075ab46f8dd644\mesonbuild\compilers\compilers.py", line 1178, in _build_wrapper
    args = self.build_wrapper_args(env, extra_args, dependencies, CompileCheckMode(mode))
  File "D:\downloads\tools\meson\meson-91876b40316962620c1705ae14075ab46f8dd644\mesonbuild\compilers\mixins\clike.py", line 435, in build_wrapper_args
    extra_args = mesonlib.listify([e(mode.value) if callable(e) else e for e in extra_args])
  File "D:\downloads\tools\meson\meson-91876b40316962620c1705ae14075ab46f8dd644\mesonbuild\compilers\mixins\clike.py", line 435, in <listcomp>
    extra_args = mesonlib.listify([e(mode.value) if callable(e) else e for e in extra_args])
  File "D:\downloads\tools\meson\meson-91876b40316962620c1705ae14075ab46f8dd644\mesonbuild\interpreter.py", line 1159, in determine_args
    args += self.compiler.get_option_compile_args(opts)
  File "D:\downloads\tools\meson\meson-91876b40316962620c1705ae14075ab46f8dd644\mesonbuild\compilers\c.py", line 437, in get_option_compile_args
    mlog.log(
  File "D:\downloads\tools\meson\meson-91876b40316962620c1705ae14075ab46f8dd644\mesonbuild\mlog.py", line 222, in log
    print(*arr, file=log_file, **kwargs)
TypeError: 'once' is an invalid keyword argument for print()

Trying to build glib (windows). The error occours an a cc.compile command
https://github.com/GNOME/glib/blob/30c06eb5fc5c1d6b992c144ebf8ae540d99b2fd2/meson.build#L150

meson version @ commit id 91876b4

related vcpkg PR microsoft/vcpkg#13100

@dcbaker dcbaker self-assigned this Nov 19, 2020
dcbaker added a commit to dcbaker/meson that referenced this issue Nov 19, 2020
We really want to have this in the log method as well.

Fixes: mesonbuild#8002
dcbaker added a commit to dcbaker/meson that referenced this issue Nov 20, 2020
We really want to have this in the log method as well.

Fixes: mesonbuild#8002
jpakkane pushed a commit that referenced this issue Dec 16, 2020
We really want to have this in the log method as well.

Fixes: #8002
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants