Question:
I want to create a chatbot that is trained through inputs and I want it to make it so that replit db syncs with everyone. But I just can’t do anything… it keeps giving me errors.
Traceback (most recent call last):
File "main.py", line 1, in <module>
from idkwhttph import db
File "/home/runner/QuickScaryGlitch/venv/lib/python3.10/site-packages/replit/__init__.py", line 5, in <module>
from . import web
File "/home/runner/QuickScaryGlitch/venv/lib/python3.10/site-packages/replit/web/__init__.py", line 9, in <module>
from .app import ReplitApp
File "/home/runner/QuickScaryGlitch/venv/lib/python3.10/site-packages/replit/web/app.py", line 90, in <module>
class JSONEncoder(flask.json.JSONEncoder):
AttributeError: module 'flask.json' has no attribute 'JSONEncoder'
from idkwhttph import db
from idkwhttph import *
from time import sleep
import os
os.environ['REPLIT_DB_URL'] = "https://replit-database-proxy.idkwhttph.repl.co"
Well, then what are the alternatives? Or the fast alternative ways that I can turn to? I want to sync the data with everyone… But I can’t seem to do anything to the code without solving the error. Sorry for the inconvenience caused! ( or if there is any )
I didn’t even throw any of the main code in, and then this happens.
Okay maybe its the exact same error… But this time the error is pointing at from replit import db
Fixed it! I made modifications to the db again and boom its done! Sorry for the inconvenience caused! Thank you everyone!
the chatbot is here: Go and train the chatbot!