When CUDA is not available, lerf_field.py prints to sys.stderr upon import. However, the file is missing an import to sys, thus causing an exception to be raised and failing the import.
When running ns-install-cli as part of building a Docker container (where CUDA is only available during runtime, not during build), the above error means ns-install-cli fails and prevents installing the lerf code in the Docker container.
When CUDA is not available,
lerf_field.py
prints tosys.stderr
upon import. However, the file is missing an import tosys
, thus causing an exception to be raised and failing the import.When running
ns-install-cli
as part of building a Docker container (where CUDA is only available during runtime, not during build), the above error meansns-install-cli
fails and prevents installing the lerf code in the Docker container.