Issues with replit config or path files

Problem description:
I forked a replit from a course I’m following. Immediately upon loading the console is full of error messages. I’ve searched around a bit, but nothing I’ve found has matched my issue. One user described the same issue, but when I followed the steps that solved their issue I found that the folders and files indicated in the solution were not present in my own system.

Expected behavior:
A new fork allows me to start typing code, run it, and view the output in the console.

Actual behavior:
The console immediately displays error messages upon loading, and does not allow me to run any code I type.

Steps to reproduce:
Fork this replit:
Error Messages appear

Bug appears at this link:
Here is the error text in full:

Python path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = '/lib/python3.8:/home/runner/higher-lower-start/venv/lib/python3.8/site-packages'
  program name = '/home/runner/higher-lower-start/venv/bin/python'
  isolated = 0
  environment = 1
  user site = 0
  import site = 1
  sys._base_executable = '/home/runner/higher-lower-start/venv/bin/python'
  sys.base_prefix = '/nix/store/5g6y3nzq80fkq54ahan2slc57j6327nj-python3-3.8.15'
  sys.base_exec_prefix = '/nix/store/5g6y3nzq80fkq54ahan2slc57j6327nj-python3-3.8.15'
  sys.executable = '/home/runner/higher-lower-start/venv/bin/python'
  sys.prefix = '/nix/store/5g6y3nzq80fkq54ahan2slc57j6327nj-python3-3.8.15'
  sys.exec_prefix = '/nix/store/5g6y3nzq80fkq54ahan2slc57j6327nj-python3-3.8.15'
  sys.path = [
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1407, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1379, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1510, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1553, in _fill_cache
OSError: [Errno 5] Input/output error: '/home/runner/higher-lower-start/venv/lib/python3.8/site-packages'
repl process died unexpectedly: exit status 1

Giving up. You can try again by clicking Run. You may need to fix the [interpreter] definition in the .replit file first.

Safari 16.6

MacOS Ventura 13.5.2

Device (Android, iOS, NA leave blank):
Intel Macbook Air

Desktop app version (Avatar menu->“Version”) or NA:

Plan (Free, Hacker, Pro Plan):

1 Like

Hi @MichaelMiller59 , welcome to the forums!
Could you copy and paste the .repli file from a blank repl to this? Or move the code to a new repl?

it’s an outdated template, but for some reason the site-packages folder has an error:
readdirent venv/lib/python3.8/site-packages: input/output error
I guess the course needs to be updated

I haven’t had any luck replacing the .repli file. If the issue is with the way the course is set up, I might just do the coding exercises in a local IDE instead. It’s an older course (clearly) and I don’t know that I can expect much support on that end.

Hi @MichaelMiller59 !
I suppose you could copy a new .replit file from another repl.

1 Like

Closing, as this is likely part of this bug