Skip to content

Error with Binding.Exec and script=True #153

@rmcgibbo

Description

@rmcgibbo

I'm seeing an error like this when I try to build a package with binding=Binding.Exec, script=True

  File "/home/mcgibbon/projects/execgraph/setup.py", line 4, in <module>
    setup(
  File "/nix/store/5v7jxy46vg7jlj7hiz34dlkbk74xvzvp-python3.9-setuptools-54.2.0/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/nix/store/ph6hpbx4pr31146wpb72yrk3f3yy0xcs-python3-3.9.4/lib/python3.9/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/nix/store/ph6hpbx4pr31146wpb72yrk3f3yy0xcs-python3-3.9.4/lib/python3.9/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/nix/store/ph6hpbx4pr31146wpb72yrk3f3yy0xcs-python3-3.9.4/lib/python3.9/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/nix/store/ph6hpbx4pr31146wpb72yrk3f3yy0xcs-python3-3.9.4/lib/python3.9/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/nix/store/ph6hpbx4pr31146wpb72yrk3f3yy0xcs-python3-3.9.4/lib/python3.9/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/nix/store/ph6hpbx4pr31146wpb72yrk3f3yy0xcs-python3-3.9.4/lib/python3.9/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/nix/store/9zcyinf104z2fwdh2q760llzpv6phzzv-python3.9-setuptools-rust-0.12.1/lib/python3.9/site-packages/setuptools_rust/setuptools_ext.py", line 103, in run
    build_rust.run()
  File "/nix/store/9zcyinf104z2fwdh2q760llzpv6phzzv-python3.9-setuptools-rust-0.12.1/lib/python3.9/site-packages/setuptools_rust/command.py", line 52, in run
    self.run_for_extension(ext)
  File "/nix/store/9zcyinf104z2fwdh2q760llzpv6phzzv-python3.9-setuptools-rust-0.12.1/lib/python3.9/site-packages/setuptools_rust/build.py", line 93, in run_for_extension
    self.install_extension(ext, dylib_paths)
  File "/nix/store/9zcyinf104z2fwdh2q760llzpv6phzzv-python3.9-setuptools-rust-0.12.1/lib/python3.9/site-packages/setuptools_rust/build.py", line 309, in install_extension
    ext.install_script(ext_path)
  File "/nix/store/9zcyinf104z2fwdh2q760llzpv6phzzv-python3.9-setuptools-rust-0.12.1/lib/python3.9/site-packages/setuptools_rust/extension.py", line 173, in install_script
    f.write(TMPL.format({"name": name}))
KeyError: 'name'

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions