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

Failed to get Nix info: [Errno 2] No such file or directory: 'nix' #671

Open
mguthaus opened this issue Feb 18, 2025 · 1 comment
Open
Labels
🐞 bug Something isn't working

Comments

@mguthaus
Copy link

Description

Using the most recent OpenLane2 (2.3.6), I get an error when I run openlane --dockerized. I do not have Nix installed on my host machine. The error is:

Failed to get Nix info: [Errno 2] No such file or directory: 'nix'

Expected Behavior

I expect it to not produce the error.

Environment report

I used pip install openlane, so i did not clone openlane.

Reproduction material

No material needed. Just run:
openlane --dockerized

Relevant log output

$ openlane --dockerized
Failed to get Nix info: [Errno 2] No such file or directory: 'nix'
[06:54:24] INFO     Running containerized command:                                                                                                                                      container.py:249
docker run --rm --name 576cd69d-3108-49c4-9f22-839975534b96 -i -t --user 1000:1000 -v /home/mrg:/home/mrg -v /home/mrg/.volare:/home/mrg/.volare -e PDK_ROOT=/home/mrg/.volare -w /home/mrg/demo -v /tmp/tmppppcpvwgopenlane_docker:/tmp -e TMPDIR=/tmp -e DISPLAY=:0 -v /tmp/.X11-unix:/tmp/.X11-unix -v /home/mrg/.Xauthority:/.Xauthority --network host --security-opt seccomp=unconfined ghcr.io/efabless/openlane2:2.3.6 zsh
OpenLane Container (2.3.6):/home/mrg/demo%
@donn donn added the 🐞 bug Something isn't working label Feb 18, 2025
@donn
Copy link
Contributor

donn commented Feb 18, 2025

The environment detector code tries to check for Nix's existence as one of the many things it does and it seems we have forgotten to suppress its output. This will not affect operation though- --dockerized will still work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants