1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] "cannot import name 'EVENT_TYPE_OPENED' from 'watchdog.events' "

Discussão em 'Python' iniciado por Stack, Outubro 2, 2024 às 16:22.

  1. Stack

    Stack Membro Participativo

    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

    Continue reading...

Compartilhe esta Página