I know there’s a lot of topics on this, but none of them work for me. I’ve just been infinitely getting this nix error:
nix error: building nix env: os.Readlink() channel: readlink /home/runner/.nix-defexpr/channels/nixpkgs-stable-22_10: no such file or directory
Error: prybar-python310 not found in $PATH
repl process died unexpectedly: exit status 1
Maybe python3.10 should be python3.11. Although iirc, these folders are ‘hardcoded’, you can’t actually make them yourself, they have to pre-exist. Maybe setting everything to 3.11 but then having the folders as 3.10 will fix it.
nix error: building nix env: exit status 1
Error: prybar-python310 not found in $PATH
repl process died unexpectedly: exit status 1
nix error: building nix env: exit status 1
Output has been trimmed to the last 20 lines
evaluating file '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/stdenv/linux/default.nix'
evaluating file '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/top-level/stage.nix'
evaluating file '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/stdenv/adapters.nix'
evaluating file '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/build-support/trivial-builders.nix'
evaluating file '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/top-level/splice.nix'
evaluating file '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/top-level/all-packages.nix'
evaluating file '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/top-level/aliases.nix'
evaluating file '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/stdenv/generic/default.nix'
evaluating file '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/lib/customisation.nix'
evaluating file '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/tools/text/gawk/default.nix'
evaluating file '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/servers/x11/xorg/default.nix'
evaluating file '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/servers/x11/xorg/overrides.nix'
evaluating file '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/stdenv/generic/make-derivation.nix'
evaluating file '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/build-support/mkshell/default.nix'
evaluating file '/home/runner/Forum-Template/replit.nix'
evaluating file '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/stdenv/generic/check-meta.nix'
evaluating file '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/lib/systems/doubles.nix'
error: attribute 'prybar-python311' missing, at /home/runner/Forum-Template/replit.nix:21:28
(use '--show-trace' to show detailed location information)
Error: prybar-python310 not found in $PATH
repl process died unexpectedly: exit status 1
For anyone too impatient to wait for a 3.11 template, here’s some steps for
converting a repl to python 3.11(.3), including a working packages tab:
In replit.nix file
From deps, remove:
pkgs.replitPackages.prybar-python310,
pkgs.replitPackages.stderred
From env, remove:
PRYBAR_PYTHON_BIN
STDERREDBIN
Then, update all 4 occurrences of python versions (11 instead of 10)
In .replit file
Delete the entire [interpreter] block, possibly lines 15-27
Change channel, possibly on line 13, from "stable-22_11" to "stable-23_05"
In PYTHONPATH, possibly on line 18, update the 2 occurrences of 3.10 to 3.11
In venv folder
In venv/lib folder, rename folder python3.10 to python3.11. This may take a while
In venv/include, if there is one, rename folder python3.10 to python3.11
Refresh
Refresh, or reload the shell, and now your repl runs python 3.11, with a working packages tab
Python 3.11 works with all IDE features except Debugger, which gives debugpy-1.6.7 not supported for interpreter python3.11 (btw Packager search doesn’t seem to work on a normal (non-beta) python repl at the moment). See the description for setting 3.11 (or 3.12!) up on your own repl