You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On MacOS Sequoia 15.2, managed by nix-darwin I'm trying to create a devbox shell for a multi-language code repo where I need sasl.h to compile some python packages.
In order to do that I'm adding the openldap dependency to my devbox config but when computing the environment I get the following error:
$ devbox shell
Info: Ensuring packages are installed.
✓ Computed the Devbox environment.
Error: error installing packages in nix profile [/nix/store/a2wwllk1ikq2afd7p2mkfzb0ckhb4yfv-openldap-2.6.8 /nix/store/i91nkxcl4fd8al9vccgnaypcj50ld4ml-openldap-2.6.8-man /nix/store/qwlbs0xdxda0rx7z0yrx0bkwdxhm31g0-cyrus-sasl-2.1.28-bin /nix/store/vy9rkv8vkci8b2kxfaw810nb2k6gwp3g-cyrus-sasl-2.1.28-man]: nix: command error: nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' profile install --profile /Users/pedro/dev/acryl/datahub-fork/.devbox/nix/profile/default --offline --impure --priority 9 /nix/store/a2wwllk1ikq2afd7p2mkfzb0ckhb4yfv-openldap-2.6.8 /nix/store/i91nkxcl4fd8al9vccgnaypcj50ld4ml-openldap-2.6.8-man /nix/store/qwlbs0xdxda0rx7z0yrx0bkwdxhm31g0-cyrus-sasl-2.1.28-bin /nix/store/vy9rkv8vkci8b2kxfaw810nb2k6gwp3g-cyrus-sasl-2.1.28-man: exit code 1
Error: There was an internal error. Run with DEVBOX_DEBUG=1 for a detailed error message, and consider reporting it at https://github.com/jetify-com/devbox/issues
I was able to progress beyond Error: error installing packages in nix profile [/nix/store/a2wwllk1ikq2afd7p2mkfzb0ckhb4yfv-openldap-2.6.8 /nix/store/i91nkxcl4fd8al9vccgnaypcj50ld4ml-openldap-2.6.8-man /nix/store/qwlbs0xdxda0rx7z0yrx0bkwdxhm31g0-cyrus-sasl-2.1.28-bin /nix/store/vy9rkv8vkci8b2kxfaw810nb2k6gwp3g-cyrus-sasl-2.1.28-man]: nix: command error: nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' profile install --profile /Users/pedro/dev/acryl/datahub-fork/.devbox/nix/profile/default --offline --impure --priority 9 /nix/store/a2wwllk1ikq2afd7p2mkfzb0ckhb4yfv-openldap-2.6.8 /nix/store/i91nkxcl4fd8al9vccgnaypcj50ld4ml-openldap-2.6.8-man /nix/store/qwlbs0xdxda0rx7z0yrx0bkwdxhm31g0-cyrus-sasl-2.1.28-bin /nix/store/vy9rkv8vkci8b2kxfaw810nb2k6gwp3g-cyrus-sasl-2.1.28-man: exit code 1
By removing the "cyrus_sasl@latest" package.
Now the devbox shell loads but when running uv pip install python-ldap I get the following:
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/nix/store/aizjnx3sf3zagnzvfidppr5vhn7xz03z-libxcrypt-4.4.36/include -DHAVE_SASL -DHAVE_TLS -DLDAPMODULE_VERSION=3.4.4 "-DLDAPMODULE_AUTHOR=python-ldap project""-DLDAPMODULE_LICENSE=Python style" -IModules -I/Users/pedro/Library/Caches/uv/builds-v0/.tmp6r07d0/include -I/nix/store/ak3zf631ws2rwsl5qq0x3v7j18h0c2jj-python3-3.10.13/include/python3.10 -c Modules/LDAPObject.c -o build/temp.macosx-11.0-arm64-cpython-310/Modules/LDAPObject.o
[stderr]
/Users/pedro/Library/Caches/uv/builds-v0/.tmp6r07d0/lib/python3.10/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite'
warnings.warn(msg)
no previously-included directories found matching 'Doc/.build'
Modules/LDAPObject.c:16:10: fatal error: 'sasl/sasl.h' file not found
#include <sasl/sasl.h>
^~~~~~~~~~~~~
1 error generated.
error: command'/nix/store/sa6hywsm1mqfyd1xakyzv4ljjsb3hawh-clang-wrapper-11.1.0/bin/clang' failed with exit code 1
Caused by: This error likely indicates that you need to install a library that provides "sasl/sasl.h"for[email protected]
This tells me that C libraries are not getting accessed in devbox, is there a way to fix this?
The header file exists in: ls /Library/Developer/CommandLineTools/SDKs/MacOSX15.2.sdk/usr/include/sasl
What happened?
On MacOS Sequoia 15.2, managed by
nix-darwin
I'm trying to create a devbox shell for a multi-language code repo where I needsasl.h
to compile some python packages.In order to do that I'm adding the
openldap
dependency to my devbox config but when computing the environment I get the following error:Steps to reproduce
Command
devbox shell
devbox.json
Devbox version
0.13.6
Nix version
2.24.10
What system does this bug occur on?
macOS (Apple Silicon)
Debug logs
The text was updated successfully, but these errors were encountered: