I'm trying to make a REST api (begginer) but when i tried to initialize the server from this code:
from flask import Flask
app = Flask(__name__)
if __name__=='__main__':
app.run(debug=True, port=4000)
i get this error in the prompt:
from watchdog.events import EVENT_TYPE_OPENED
ImportError: cannot import name 'EVENT_TYPE_OPENED' from 'watchdog.events'
(C:\ ********* \Python\Python310\lib\site-packages\watchdog\events.py)
I'm expecting something like this (Min 8:27): https://www.youtube.com/watch?v=GMppyAPbLYk&ab_channel=TechWithTim
Try to do the following:
pip install --upgrade watchdog