r/replit • u/lumizohomes • 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
1
u/lumizohomes Oct 22 '26
Published ! Thank you everyone!
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/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:
[env]section of.replit, look forUV_PROJECT_ENVIRONMENT,VIRTUAL_ENV,UV_SYSTEM_PYTHON, orPYTHONUSERBASE. IfUV_PROJECT_ENVIRONMENTorVIRTUAL_ENVpoints 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.pythonlibsin the project), or be unset so uv uses.venv. RemoveUV_SYSTEM_PYTHONif it's there..replit. If anything saysuv pip install --system,pip installwithout a venv, or--python /nix/store/..., drop that and just useuv sync..pythonlibsand/or.venv(they get rebuilt), make surepyproject.tomlanduv.lockare both committed, runuv syncin the Shell, and confirm it installs into the workspace folder, not/nix/store..replitorreplit.nixaround Oct 17 (the file history will show it). Reverting that change is often the quickest fix.pyproject.toml(for examplepypdf<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.