Question:
How do i solve the error: console error: repl process died unexpectedly exit status 1
Current behavior:
Console is frozen.
Desired behavior
I want to install the Python package: pip prybar -python310
Repl link:
https://replit.com/@shortscircuit/Betsy-Webshop?v=1
code snippet
804kn
April 17, 2023, 5:36pm
2
Head over to your repl, press the three dots and enable hidden files, then goto replit.nix
and replace everything in that file with this (Nothing wrong with your code, just a misconfigured replit.nix
, from there python
should work):
{ pkgs }: {
deps = [
pkgs.sqlite.bin
pkgs.python310Full
pkgs.replitPackages.prybar-python310
pkgs.replitPackages.stderred
];
env = {
PYTHON_LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
# Needed for pandas / numpy
pkgs.stdenv.cc.cc.lib
pkgs.zlib
# Needed for pygame
pkgs.glib
# Needed for matplotlib
pkgs.xorg.libX11
];
PYTHONHOME = "${pkgs.python310Full}";
PYTHONBIN = "${pkgs.python310Full}/bin/python3.10";
LANG = "en_US.UTF-8";
STDERREDBIN = "${pkgs.replitPackages.stderred}/bin/stderred";
PRYBAR_PYTHON_BIN = "${pkgs.replitPackages.prybar-python310}/bin/prybar-python310";
};
}
Unless it’s already a python repl, this (AFAIK) won’t work, and will lock the console into a nix error loop.
My console is working again
Python now is running successfully. Thanks for your suggestion to resolve my issue with the misconfiguration.