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 for jinja2 on Python 3.10 #61

Open
M-Davies opened this issue Mar 15, 2023 · 0 comments
Open

ImportError for jinja2 on Python 3.10 #61

M-Davies opened this issue Mar 15, 2023 · 0 comments

Comments

@M-Davies
Copy link

Updog is functional on 3.11 but when trying to run on 3.10.x, I receive the following error

> updog
Traceback (most recent call last):
  File "C:\Users\consultant\.pyenv\pyenv-win\versions\3.10.5\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\consultant\.pyenv\pyenv-win\versions\3.10.5\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\consultant\.pyenv\pyenv-win\versions\3.10.5\Scripts\updog.exe\__main__.py", line 4, in <module>
  File "C:\Users\consultant\.pyenv\pyenv-win\versions\3.10.5\lib\site-packages\updog\__main__.py", line 5, in <module>
    from flask import Flask, render_template, send_file, redirect, request, send_from_directory, url_for, abort
  File "C:\Users\consultant\.pyenv\pyenv-win\versions\3.10.5\lib\site-packages\flask\__init__.py", line 19, in <module>
    from jinja2 import Markup, escape
ImportError: cannot import name 'Markup' from 'jinja2' (C:\Users\consultant\AppData\Roaming\Python\Python310\site-packages\jinja2\__init__.py)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant