Skip to content

esptool's espefuse.py doesn't work #82965

@wucke13

Description

@wucke13

Describe the bug

  • Install esptool
  • run espefuse.py
Traceback (most recent call last):
  File "/nix/store/d82aizmfkk3g2ymv5nyirsqvvf62w7lh-esptool-2.7/bin/.espefuse.py-wrapped", line 27, in <module>
    import esptool
  File "/nix/store/d82aizmfkk3g2ymv5nyirsqvvf62w7lh-esptool-2.7/bin/esptool.py", line 2
    export PATH='/nix/store/fara2bdicvvi0p8bmrgcz6s8d6yicijc-python3-3.7.6/bin:/nix/store/d82aizmfkk3g2ymv5nyirsqvvf62w7lh-esptool-2.7/bin:/nix/store/qkn0xsrkx4dwd98rbb1rgh1cp4jhfmwm-python3.7-pyserial-3.4/bin'${PATH:+':'}$PATH
              ^
SyntaxError: invalid syntax

Looks like espefuse.py tries to source the esptool.py wrapper script.

Expected behavior

The usage of the tool gets shown

Additional context
Looks like somebody did not the "all executables in /bin work" test

Metadata

  • system: "x86_64-linux"
  • host os: Linux 5.5.9, NixOS, 20.09pre216896.0729b8c55e0 (Nightingale)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3.3
  • channels(root): "nixos-20.03beta591.99a3d7a86fc"
  • channels(wucke13): "nixos-unstable-20.09pre215947.82b54d49066"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: pythonPython is a high-level, general-purpose programming language.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions