Help With resolving the issue on my Repl which I have for almost 3 years

Cannot install a python module

Repl link/Link to where the bug appears:
https://replit.com/@VRtheKing/Cloudy-Bot

I get this error when I try to install a python module in replit Nix.

pip install discord
Fatal Python error: init_sys_streams: can't initialize sys standard streams
Python runtime state: core initialized
Traceback (most recent call last):
  File "/nix/store/zdba9frlxj2ba8ca095win3nphsiiqhb-python3-3.10.8/lib/python3.10/io.py", line 54, in <module>
ImportError: cannot import name 'text_encoding' from 'io' (unknown location)

I had this repl working for 3 years now. The issue started when Replit upgraded to their new Nix environment. I cant get my bot working now. Any help to fix this would be appreciated.

Question: i cant start project

Repl link/Link to where the bug appears: https://replit.com/@LegendAlex1/Bot-Liedzhiendalieksovich#main.py

Screenshots, links, or other helpful context: console of project is need to install python libraries, but its unreal in Replit, and few system Replit files that was important, most likely as a custodian of libraries, but it is gone, I need help from the developers of Replit, please help as soon as possible

  1. Remove python39Packages.pip from replit.nix. Was this automatically added?

  2. looks like you both deleted the venv folder? Or was it not there in the first place? :thinking: Either way, you could just move to the new modules system: copy in the .replit and replit.nix config from https://replit.com/@replit/Python-Beta?lite=1#.replit

2 Likes