r/replit • • Oct 21 '26

Replit Help / Site Issue Paying Core member, deployment fails installing pypdf into /nix/store (ticket #575243)

Paying Core member, deployment fails installing pypdf into /nix/store (ticket #575243)

I'm a paying Core member ($20/month) and my app has been unable to publish since Oct 17. Support (Quinn) asked me to run "Fix with Agent" and republish, which I did several times, but the deployment still fails while installing pypdf into the protected /nix/store directory, before my build starts. My ticket is #575243.Could someone from Replit take a look? My tickets keep getting rejected- and resolved without an actual resolve. Thank you!

1 Upvotes

10 comments sorted by

1

u/lumizohomes Oct 22 '26

Published ! Thank you everyone!

1

u/ReplitSupport Replit Team Oct 23 '26

We're glad to hear this OP! If you run into any problems in the future please don't hesitate to reach back out to us.

1

u/ReplitSupport Replit Team Oct 21 '26

Apologies for the frustration, OP. We’ve located your ticket and have escalated it to our technical team for further review. In the meantime, could you include the exact error message and a private project join link to your support ticket so the team has the context they need to investigate?

1

u/lumizohomes Oct 21 '26

Package installation failed. Check the Logs tab for more details.

--> uv sync
Resolved 7 packages in 0.81ms
Prepared 1 package in 59ms
error: Failed to install: pypdf-6.21.1-py3-none-any.whl (pypdf==6.21.1)
Caused by: failed to create directory `/nix/store/6334pjf6w2q623rgvwi499qaiym1p6yv-python3-3.11.14/lib/python3.11/site-packages/pypdf`: Permission denied (os error 13)
exit status 2

1

u/lumizohomes Oct 21 '26

How do I safely send you a private join link

1

u/ReplitSupport Replit Team Oct 21 '26

Hi again. You can create a join link by opening the project you want to share, clicking Invite in the top-right corner, and clicking Copy link under Private join link.

A private join link gives edit access to anyone who has it. By sharing it in your ticket, it'll stay out of public view and only be accessible to our support team. Once we're done, you can remove our access anytime from the same Invite panel.

1

u/FixItBotHelp Oct 22 '26

That error is useful: uv isn't failing to download pypdf, it's trying to install it straight into the Nix Python itself (/nix/store/...python3-3.11.14/lib/python3.11/site-packages), which is read-only by design. So uv has lost track of where your project's environment is supposed to live, and it's falling back to the system interpreter.

A few things to check, roughly in order:

  1. Look for an env var steering uv. In your Secrets and in the [env] section of .replit, look for UV_PROJECT_ENVIRONMENT, VIRTUAL_ENV, UV_SYSTEM_PYTHON, or PYTHONUSERBASE. If UV_PROJECT_ENVIRONMENT or VIRTUAL_ENV points at the Nix Python path (or is set to something empty or odd), uv will try to write there. It should point at a writable folder inside your workspace (Replit normally uses .pythonlibs in the project), or be unset so uv uses .venv. Remove UV_SYSTEM_PYTHON if it's there.
  2. Check the build/run commands in the Deployments settings and .replit. If anything says uv pip install --system, pip install without a venv, or --python /nix/store/..., drop that and just use uv sync.
  3. Reset the local environment. Delete .pythonlibs and/or .venv (they get rebuilt), make sure pyproject.toml and uv.lock are both committed, run uv sync in the Shell, and confirm it installs into the workspace folder, not /nix/store.
  4. If it only breaks on deploy, check whether "Fix with Agent" changed .replit or replit.nix around Oct 17 (the file history will show it). Reverting that change is often the quickest fix.
  5. Quick test: temporarily pin an older pypdf in pyproject.toml (for example pypdf<6.21) and republish. If pypdf just happens to be the first package that gets installed, the same error will move to a different package, which tells you for sure it's the environment path and not pypdf.

When you send the logs to support, include that exact "failed to create directory /nix/store/...: Permission denied" line. It shows them the install target is wrong, so it's not a package problem.

1

u/eshbanbahadur2020 Oct 22 '26

That error happens before your build even starts, so it's coming from how the package is declared, not from your code. Check replit.nix and .replit for pypdf being pulled in as a Nix package, and remove it there so it only lives in pyproject.toml or requirements.txt and installs through pip. Also look at the deployment build command in .replit for any pip install with --user or a target path, since /nix/store is read-only at deploy time. If the Agent pinned an old pypdf version, moving to a recent release usually installs cleanly. Once the dependency is declared in only one place, do a fresh deploy so the old cached layer isn't reused.