Many errors at shell using python

Question: Is a way to reset my Shell / Nix at Repl using Python?

Current behavior: Many errors message at Shell

Desired behavior just run the code and show the results at shell.

Repl link: https://replit.com/@celsomalachias/Meu-primeiro-projeto-em-Python

my code is very simple… I think the problem is at the Nix file.

also it (shell) puts the following

python: command not installed. Multiple versions of this command were found in Nix.
Select one to run (or press Ctrl-C to cancel):
> 
qtile.out
python39Full.out
python38Full.out
python3Minimal.out
python310.out
python37Full.out
python37.out
python38.out
sourcehut.python.out

But when I run a code it come back the same errors and messages…

I would like to clean the shell environment

error message at Shell

nix error: building nix env: exit status 1
Output has been trimmed to the last 20 lines
copied source '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/pkgs/development/libraries/glibc/fix-x64-abi.patch' -> '/nix/store/7kw224hdyxd7115lrqh9a4dv2x8msq2s-fix-x64-abi.patch'
copied source '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/pkgs/development/libraries/glibc/nix-nss-open-files.patch' -> '/nix/store/001gp43bjqzx60cg345n2slzg7131za8-nix-nss-open-files.patch'
copied source '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/pkgs/development/libraries/glibc/0001-Revert-Remove-all-usage-of-BASH-or-BASH-in-installed.patch' -> '/nix/store/k06glk8f3dxj3k0m9b9y7ph2nbnd1ns0-0001-Revert-Remove-all-usage-of-BASH-or-BASH-in-installed.patch'
copied source '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/pkgs/development/libraries/glibc/reenable_DT_HASH.patch' -> '/nix/store/rwnpifhbiky8wmzsfyzah2qpah1z1mzk-reenable_DT_HASH.patch'
evaluating file '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/pkgs/development/libraries/libidn2/default.nix'
evaluating file '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/pkgs/development/libraries/libunistring/default.nix'
instantiated 'libunistring-1.1.tar.gz' -> '/nix/store/x026yqw2ch0lhcyd548qra2i6gxi2whp-libunistring-1.1.tar.gz.drv'
instantiated 'libunistring-1.1' -> '/nix/store/xvn3anp019d0mcx0hagacyfc0cslh5ih-libunistring-1.1.drv'
instantiated 'libidn2-2.3.4.tar.gz' -> '/nix/store/21xd2nc05x1zyb6q071q0iddsi8075m9-libidn2-2.3.4.tar.gz.drv'
instantiated 'libidn2-2.3.4' -> '/nix/store/x6pncslc93zbdfs4mnga7clbcfadlm0m-libidn2-2.3.4.drv'
instantiated 'glibc-2.37.tar.xz' -> '/nix/store/h635jjqzf1g34hbb87lwki2z56zmvnwb-glibc-2.37.tar.xz.drv'
instantiated 'glibc-2.37-8' -> '/nix/store/018d2v7fy5b3h188cq2ppridpq6hhz7c-glibc-2.37-8.drv'
evaluating file '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/pkgs/tools/misc/coreutils/default.nix'
evaluating file '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/pkgs/development/libraries/acl/default.nix'
evaluating file '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/pkgs/tools/text/gnugrep/default.nix'
evaluating file '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/pkgs/tools/text/gawk/default.nix'
evaluating file '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/pkgs/build-support/mkshell/default.nix'
evaluating file '/home/runner/Meu-primeiro-projeto-em-Python/replit.nix'
error: syntax error, unexpected end of file, at /home/runner/Meu-primeiro-projeto-em-Python/replit.nix:4:4

Create a new tab to open the replit.nix file, then click “History” in the bottom right and use the timeline to select and revert to a previous revision of the file.

Hi, thanks, @UMARismyname . Should the new file (replit.nix) be created empty? Or, what should be assigned at the file as initial parameters/ conditions? Thanks!

The file should already exist. If you can’t see it, toggle hidden files.

Images

Dots

Show hidden files

Thanks all, I found the problem: at the replit.nix was missing a symbol " } " at the end. It was broken. I fixed it adding the } symbol and it worked again!! Thanks All.

2 Likes