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

uv managed python fails installing sasl dependency with python 3.9.18 #12283

Open
ignacio-amaya-rovio opened this issue Mar 18, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@ignacio-amaya-rovio
Copy link

Summary

How to reproduce

uvx --python 3.9.18 sasl

Error

Error contains the following:

      [stderr]
      <string>:34: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
      <string>:35: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
      sasl/saslwrapper.cpp:624:10: fatal error: 'ios' file not found
        624 | #include "ios"
            |          ^~~~~
      1 error generated.
      error: command '/usr/bin/c++' failed with exit code 1

      hint: This usually indicates a problem with the package or the build environment.

Impact

Installing the same library with pyenv python 3.9.18 works fine. This prevents me migrating some projects to use uv.

Platform

macOS 15.3.2 arm64

Version

uv 0.6.3 (a0b9f22 2025-02-24)

Python version

Python 3.9.18

@ignacio-amaya-rovio ignacio-amaya-rovio added the bug Something isn't working label Mar 18, 2025
@zanieb
Copy link
Member

zanieb commented Mar 18, 2025

When you use pyenv, I presume the package is still built from source? Can you share logs for that?

@ignacio-amaya-rovio
Copy link
Author

With pyenv I set in ~/.config/uv/uv.toml the following setting so that it would use pyenv python:

python-preference = "only-system"

Then running the same command uvx --python 3.9.18 sasl I get the following:

❯ uvx --python 3.9.18 sasl
      Built sasl==0.3.1
Installed 2 packages in 18ms
The executable `sasl` was not found.
warning: Package `sasl` does not provide any executables.

Package was properly installed and a warning is printed as there is no executable as expected.

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