Traceback (most recent call last):


 "web.py", line 1, in <module>

from views.view import app


 "/root/xunfeng-master/views/__init__.py", line 3, in <module>

from flask import Flask
ImportError: No module named flask

Traceback (most recent call last):


 "/usr/bin/bpython", line 33, in <module>

sys.exit(load_entry_point('bpython==0.21', 'console_scripts', 'bpython')())


 "/usr/bin/bpython", line 25, in importlib_load_entry_point

return next(matches).load()


 "/usr/lib/python3.9/importlib/metadata.py", line 77, in load

module = import_module(match.group('module'))


 "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module

return _bootstrap._gcd_import(name[level:], package, level)


 "<frozen importlib._bootstrap>", line 1030, in _gcd_import


 "<frozen importlib._bootstrap>", line 1007, in _find_and_load


 "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked


 "<frozen importlib._bootstrap>", line 680, in _load_unlocked


 "<frozen importlib._bootstrap_external>", line 790, in exec_module


 "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed


 "/usr/lib/python3.9/site-packages/bpython/curtsies.py", line 10, in <module>

from .curtsiesfrontend.repl import BaseRepl


 "/usr/lib/python3.9/site-packages/bpython/curtsiesfrontend/repl.py", line 34, in <module>

from bpython.repl import (


 "/usr/lib/python3.9/site-packages/bpython/repl.py", line 45, in <module>

from .config import getpreferredencoding


 "/usr/lib/python3.9/site-packages/bpython/config.py", line 31, in <module>

from xdg import BaseDirectory
ImportError: cannot import name 'BaseDirectory' from 'xdg' (/home/ari/.local/lib/python3.9/site-packages/xdg/__init__.py)
