Mock operating system

I spent ~3 days making this, but I’ve always used a smaller version of it to test languages. I have been wanting to make this a real project for a while, and finally got the will power to start working on it. Anyways, here is Doomix:

Language: Python
Link: https://replit.com/@Doomsdaybear/Doomix?v=1
Will it be updated? Yes.

BUG PATCH: To address the login issue, simply create an account and login in to it in the same run.

I’m getting an error :frowning:

Odd. Do you have a screenshot?

Traceback (most recent call last):
  File "main.py", line 10, in <module>
    value = db["user"]
  File "/home/runner/CAVCCQY6C37/venv/lib/python3.8/site-packages/replit/database/database.py", line 439, in __getitem__
    raw_val = self.get_raw(key)
  File "/home/runner/CAVCCQY6C37/venv/lib/python3.8/site-packages/replit/database/database.py", line 479, in get_raw
    raise KeyError(key)
KeyError: 'user'

Ah. It has to do with Repl DB. I’ll look into it and try to patch it.

2 Likes

I’ve deleted the variable db["user"] was stored in, try it now. I don’t get the error and haven’t so far, which is odd.

BTW, if you ever set that variable in the db, no one else can see it as the db is not global, and a db is created for each user.