Open nagisa opened 1 year ago
This appears to be at least in part related to the fact that my project directory is not under /home
…, if I move the direcotry to $HOME
, it works…
If it fails somewhere in or around bwrap, that is due to our platformio packaging, not esphome.
Tried reproducing below /tmp, wizard and compile worked fine, I don't have any ESP I could reflash right now.
For me compile
fails as well, but it does work under /tmp
, just like it works under /home
. What I have is a separate disk mounted directly under root (/sb
) and then within that directory I have my projects folder (/sb/d
), so for reproduction it might help to create a disk image (or tmpfs) and mount that under /
as well.
(I wouldn’t be surprised if there's a bug not in packaging but in platformio directly, but I’m not familiar enough with any of the involved projects to tell)
Deferring to platformio maintainers @mogorman @makefu.
Any known workaround?
Describe the bug
I’m trying to follow ESP-home’s getting started guide. Having noticed that
nix-shell -p esphome
exists, I was hopeful for a straightforward experience.Instead, the
esphome run
command fails with the following error:Steps To Reproduce
Steps to reproduce the behavior:
esphome wizard nixrepro.yaml
esphome run nixrepro.yaml
oresphome compile nixrepro.yaml
with the yaml file you created with the wizard.Expected behavior
The ESP-home firmware builds/gets uploaded.
Screenshots
N/A
Additional context
M/A
Notify maintainers
@globin @mweinelt
Metadata
"x86_64-linux"
Linux 6.1.33, NixOS, 23.11 (Tapir), 23.11.20230614.ba1a6ec
yes
yes
nix-env (Nix) 2.15.1
""
""
/run/current-system/nixpkgs