devenv
devenv copied to clipboard
`devenv container run processes` fails with
Describe the bug
I just followed the https://devenv.sh/containers/ docs to try to build and run a container for (essentially a "hello world") Python webapp using devenv for the first time. After picking up the fix for #1083, I can now build a container, but trying to run it fails with an I/O error during the copy step, and doesn't tell me what to do to fix it.
❯ devenv container run processes
• Building processes container ...
• Failed to get cachix caches due to evaluation error
/nix/store/879ki17gj9ki3im0bmlrlmip01xl9a53-image-processes.json
✔ Building processes container in 44.9s.
• Copying processes container ...• Failed to get cachix caches due to evaluation error
• Running /nix/store/7xni5x8sln4nhrbkx4lhc60k5n87yxj4-copy-container /nix/store/879ki17gj9ki3im0bmlrlmip01xl9a53-image-processes.json docker-daemon:
Copying container /nix/store/879ki17gj9ki3im0bmlrlmip01xl9a53-image-processes.json to docker-daemon:processes:latest
Getting image source signatures
Copying blob eacd0e38112a done |
Copying blob a73ae743743e done |
FATA[0196] writing blob: io: read/write on closed pipe
✔ Copying processes container in 306.9s.
Error: × Failed to copy container
I checked and it's not a matter of running out of space on the disk:
❯ df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 398M 0 398M 0% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 2.0G 3.6M 2.0G 1% /run
tmpfs 3.9G 960K 3.9G 1% /run/wrappers
/dev/disk/by-label/nixos 25G 17G 7.2G 70% /
tmpfs 795M 4.0K 795M 1% /run/user/0
To reproduce
The repo I reproduced this in is here: https://github.com/jab/hello-nix-image-py-webapp
I reproduced this in an x86_64 NixOS environment running recently-updated nixos-unstable:
❯ uname -a
Linux jabdev 6.6.22 #1-NixOS SMP PREEMPT_DYNAMIC Fri Mar 15 18:25:07 UTC 2024 x86_64 GNU/Linux
Version
devenv 1.0.1 (x86_64-linux)
Holy crap! I've been trying to solve this but no success. Same error. Some places say that that class Mapping, it's in collections.abc, not collections alone. How did you solve it? Any suggestions? I need this tool. Thanks for anything.
i have the same issue , i have tried everything but all in vain , i think last solution to this is changing to older versions of python , i have not tested it , but i think it will work
i have the same issue , i have tried everything but all in vain , i think last solution to this is changing to older versions of python , i have not tested it , but i think it will work
I installed python3.7 and it's working fine. I had to compile it. Took a short time to build, so it's a good thing to install it that way. It's because python3.7 is the last version where you can find this import. Best luck! Try it.