Fixed: "Failed to build pyarrow==20.0.0" When You Run uv add mlflow
I made a project for some MLflow tracing examples, named it after what it was for, mlflow-tracing, and ran uv add mlflow. Instead of installing MLflow, uv tried to build pyarrow 20.0.0 from source and failed, after about 900 lines of build log. Nothing was wrong with pyarrow or my computer: the project's name was the problem. Here's the whole story, with real output from uv 0.13.10 and Python 3.15.2.
What I Was Doing
I wanted a small project to try MLflow's tracing decorator in. I made a folder named after that, created a bare uv project in it and added MLflow:
mkdir mlflow-tracing
cd mlflow-tracing
uv init --bare --python 3.15
uv add mlflow
uv init printed Initialized project followed by the name mlflow-tracing, and wrote this pyproject.toml:
[project]
name = "mlflow-tracing"
version = "0.1.0"
requires-python = ">=3.15"
dependencies = []
I never typed a project name: uv took the folder's. Its help for uv init --name says: "Defaults to the name of the directory."
What I Expected
MLflow 3.18.0, the newest release, installed in a few seconds from ready-made wheels.
What I Got
Using CPython 3.15.2 interpreter at: /Library/Frameworks/Python.framework/Versions/3.15/bin/python3
Creating virtual environment at: .venv
Resolved 76 packages in 27ms
error: Failed to add dependencies
cause: Failed to build `pyarrow==20.0.0`
cause: The build backend returned an error
cause: Call to `setuptools.build_meta.build_wheel` failed (exit status: 1)
[... about 900 lines of the pyarrow build log ...]
error: command 'cmake' failed with exit code 1
hint: `pyarrow` (v20.0.0) was included because `mlflow-tracing` (v0.1.0) depends on `mlflow` (v3.1.4) which depends on `pyarrow`
hint: Build failures usually indicate a problem with the package or the build environment
hint: If you want to add the package regardless of the failed resolution, provide the `--frozen` flag to skip locking and syncing

The middle of the build log is CMake looking for Apache Arrow's C++ libraries and not finding them: it says it "did not find" a package configuration file provided by "Arrow". uv was compiling pyarrow from its source code, and that needs those libraries installed.
What I Checked
1. The first hint. It names two surprising things. mlflow (v3.1.4): uv had picked MLflow 3.1.4, not 3.18.0. And mlflow-tracing (v0.1.0): that's my own project, version 0.1.0 from the pyproject.toml above.
2. What uv says when I insist on a recent MLflow.
uv add 'mlflow>=3.18'
error: Failed to add dependencies
cause: No solution found when resolving dependencies
cause: Because mlflow>=3.18.0 depends on your project and your project depends on mlflow>=3.18, we can conclude that your project's requirements are unsatisfiable.
hint: The package `mlflow` depends on the package `mlflow-tracing` but the name is shadowed by your project. Consider changing the name of the project.
hint: If you want to add the package regardless of the failed resolution, provide the `--frozen` flag to skip locking and syncing

That's the cause, in uv's own words: MLflow needs a package called mlflow-tracing, and my project has that name.
3. The packages on PyPI. MLflow 3.18.0 lists mlflow-tracing==3.18.0 among its requirements. MLflow 3.1.4 doesn't depend on mlflow-tracing at all, and it asks for pyarrow<21. The newest pyarrow below 21 is 20.0.0, released in April 2025, and its files on PyPI hold wheels for Python 3.9 to 3.13 only. On Python 3.15 there's no wheel to download, so uv has to build pyarrow from source.
4. uv's issue tracker. The same thing happened to someone whose project was named dagster in astral-sh/uv#7329. uv's maintainers agreed that failing is correct, and astral-sh/uv#7505 added the "shadowed by your project" hint I saw in step 2.
Why It Happens
uv treats your project as a package, under the name in pyproject.toml. Inside a project called mlflow-tracing, the name mlflow-tracing means your project, at version 0.1.0. Every MLflow release from 3.2 on needs the real mlflow-tracing package at exactly its own version, which can't be satisfied. So uv kept going back through MLflow's releases until it found one that doesn't need mlflow-tracing: 3.1.4. That release caps pyarrow below 21, the newest such pyarrow has no wheel for Python 3.15, and the build from source failed.
The first error message says nothing about the name, because resolving dependencies worked: it found an old MLflow. Only the build failed.
The Fix
Give the project a name that isn't the name of any package it uses. I renamed it to tracing-examples in pyproject.toml:
[project]
name = "tracing-examples"
version = "0.1.0"
requires-python = ">=3.15"
dependencies = []

For a new project, pass the name up front instead of letting uv take the folder's: uv init --bare --python 3.15 --name tracing-examples.
After the Fix
uv add mlflow
uv run python -c "import mlflow; print(mlflow.__version__)"
Resolved 92 packages in 37ms
Prepared 2 packages in 328ms
Installed 88 packages in 3.39s
[...]
+ mlflow==3.18.0
+ mlflow-skinny==3.18.0
+ mlflow-tracing==3.18.0
[...]
+ pyarrow==26.0.1
[...]
3.18.0

The [...] lines stand for the other packages in the list. uv installed MLflow 3.18.0 with the real mlflow-tracing package, and pyarrow 26.0.1 came as a ready-made wheel: nothing was built.
Common Mistakes
| Mistake | What happens | Do this instead |
|---|---|---|
Naming the project mlflow, mlflow-tracing or mlflow-skinny | uv picks an old MLflow or finds no solution | Name it after your own work, such as tracing-examples |
| Installing CMake or Apache Arrow to make the build pass | You'd build an old pyarrow for MLflow 3.1.4, far behind 3.18.0 | Rename the project |
| Creating the project in a folder named after a package | uv init gives the project the folder's name | Pass --name to uv init |
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
A hint says a package depends on your project | Your project's name is the name of a package that one of your dependencies needs | Change name in pyproject.toml |
uv add builds a package from source when you expected a wheel | uv picked an old release of something; the hint's was included because line shows which | Check that line for an unexpectedly old version |
FAQ
Why didn't uv mention the name the first time?
Because it found an answer: MLflow 3.1.4 doesn't need mlflow-tracing, so resolving dependencies succeeded and only the build failed. The "shadowed by your project" hint appears when resolving fails, which is why asking for mlflow>=3.18 brought it out.
Which names should I avoid?
The name of any package your project uses, directly or through its dependencies. For MLflow that includes mlflow, mlflow-skinny and mlflow-tracing.
Does the folder's name matter after the project exists?
No. uv reads the name from pyproject.toml; the folder only supplies the default when uv init runs without --name.
Conclusion
A project named mlflow-tracing hid MLflow's own mlflow-tracing dependency, so uv fell back to MLflow 3.1.4 and tried to build pyarrow 20.0.0 from source, which failed. Renaming the project to tracing-examples let uv install MLflow 3.18.0 and pyarrow 26.0.1 from wheels.
Additional Resources
- astral-sh/uv#7329 — a project's name interfering with resolution.
- astral-sh/uv#7505 — the hint for possible local name conflicts.
- mlflow on PyPI — MLflow's releases and requirements.
- pyarrow 20.0.0 on PyPI — the wheels it ships.
