Import db/Problems/Replit what the

Hey, so I have a problem with new db. I used it for a long time, but here is what happened today:

Traceback (most recent call last):
File "/home/runner/Rock-Paper-Scissors-20/main.py", line 10, in <module>
import db File "/home/runner/Rock-Paper-Scissors-28/.pythonlibs/lib/python3.18/site-packages/db/init.py", line 69 print "var", var
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

So, okay, I though it was a project error, so I created new. In new project it was the same… And I hate new console tho.

Okay, I tried to fix it, and I did, but then happened error with urlpass or something like this, I forgot. And everything it in the pythonlibs, not in the main.py. Idk how I need to use db now. Replit FIX IT RIGHT NOW.

That looks like you’re trying to use python2 in python 3. What is that DB? It’s not Replit’s DB.

2 Likes

i just write “import db” isn’t it right?

If you’re trying to use Replit’s DB, no, you’d use:

from replit import db
2 Likes