Nix error when i try to run simple code in main.py

Bug description:
whenever i try to run somethin in main.py i get nix error and a ton of weird text

Expected vs Current Behavior:
i should be running my simple code and it isn’t

Steps to reproduce:
i truly don’t know, this doesn’t seem normal

Bug appears at this link: https://replit.com/@sop3/Semana-3-bonus-TeresaCS#main.py

Screenshot(s)/Screen Recording:

Browser/OS/Device: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15

Replit Profile: https://replit.com/@TeresaCS

1 Like

can you share the link ot the repl

1 Like

nvm im blind sorry i didnt see that you shared it

1 Like

nvm it dont work
the link shows nothing

1 Like

i tried doing this and i don’t get the nix error anymore it seems but i’m still not able to run my code ?

1 Like

Welcome to Ask @TeresaCS!

Since your Repl is private, could you share the contents of your replit.nix file?

i changed it to this:

{ pkgs }: {
	deps = [
		pkgs.clang_12
		pkgs.ccls
		pkgs.gdb
		pkgs.gnumake
	];
}

according to what i saw here.

Can you show the last few lines of that nix error message? If it’s looping in Console, then try checking Shell.

after replacing the contents of the replay.nix with what i saw in the post i linked i no longer get the nix error, but i’m still having issues.

when i try to do a simple comparison i get:

am i being dumb? i don’t get what’s going on

No, you’re not. It’s just that prybar (The thing that runs the interactive Console) is no longer a part of the default tempate. You could either make a new Repl with prybar, or change your Repl’s .replit file to match a Repl with prybar.

i tried making a new Repl, using the template Python (with prybar), but i’m still having the same issue:

this is what’s in the .replit file:

here’s the link: https://replit.com/@TeresaCS/ugh2?v=1

You have to run the repl before you’ll be able to use the console like before.

1 Like

ah i see! thanks sm! it works now! :')

1 Like

sorry to bother u again!
it seemed to be working on that public repl i linked. i then went into my private one, made the same changes, but over there i didn’t get the same result i got at first with the public repl. i clicked Run and it just runs indefinitely, with no end in sight (unless i click Stop). went into my public one again, and now i had that problem over there as well:

any idea what’s happening / what i’m doing wrong? i’m really at a loss.
i should probably mention i’m a newbie :confused:

Try running kill 1 in that Repl’s Shell tab.

still running indefinitely when i click Run after:

repl link: https://replit.com/@TeresaCS/ugh?v=1

If you see that orange prompt, it means your program has ended.
It does still stay “Stop” but that’s because it’s not really running prybar as an interpreter (which is why you have to “Run” before it starts). This is to work around friction with interpreters experienced on modern, multi-language repls, such as this

1 Like

ah i see!


however, once i click Stop, whatever i input into the Console doesn’t work anymore (see the 2nd “a < b” that returns “bash: 2: No such file or directory”, that one was after clicking stop; the previous one was when it was apparently still running ). is that normal?

i’ve been using Replit for a couple of weeks now and never had any issues such as this

they might push a fix for this at some point, but for now you have to work with interpreter and its little quirks:

2 Likes

okay, thank you for the help!