Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'escape' from 'jinja2' when try to import pywhatkit #326

Open
Mr-Machine07 opened this issue Apr 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Mr-Machine07
Copy link

Description

A Clear and Concise Description of the Bug

when try to import pywhatkit face the following error


ImportError Traceback (most recent call last)
in
----> 1 import pywhatkit

~\anaconda3\lib\site-packages\pywhatkit_init_.py in
27
28 if system().lower() == "windows":
---> 29 from pywhatkit.remotekit import start_server

~\anaconda3\lib\site-packages\pywhatkit\remotekit.py in
4
5 import pyautogui as p
----> 6 from flask import Flask, request
7
8 log = logging.getLogger("werkzeug")

~\anaconda3\lib\site-packages\flask_init_.py in
12 # utilities we import from Werkzeug and Jinja2 that are unused
13 # in the module but are exported as public interface.
---> 14 from jinja2 import escape
15 from jinja2 import Markup
16 from werkzeug.exceptions import abort

ImportError: cannot import name 'escape' from 'jinja2' (C:\Users\UserName\AppData\Roaming\Python\Python38\site-packages\jinja2_init_.py)

To Reproduce

Steps to Reproduce the Bug

Screenshots

image
After restarting Kernal
image

If applicable, add Screenshots to help explain your Problem

Version Information

  • OS: Windows 11
  • Browser: Microsoft Edge, Google Chrome
  • Python: Python 3.10.1
  • Jupyter notebook
  • PyWhatKit: 'Version 5.3 (Stable)'

You can Check the PyWhatKit Version using

print(pywhatkit.__VERSION__)
@Mr-Machine07 Mr-Machine07 added the bug Something isn't working label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant