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

Python3.10: Cannot import 'etree' from 'markdown.util' #108

Open
mehrdad-mixtape opened this issue Apr 18, 2023 · 2 comments
Open

Python3.10: Cannot import 'etree' from 'markdown.util' #108

mehrdad-mixtape opened this issue Apr 18, 2023 · 2 comments

Comments

@mehrdad-mixtape
Copy link

mehrdad-mixtape commented Apr 18, 2023

Hi,
I Installed the lasted version of mdv with pip on linux.
but when I ran the mdv on terminal, I saw this error:

Traceback (most recent call last):
  File "/usr/local/bin/mdv", line 5, in <module>
    from mdv import run
  File "/usr/local/lib/python3.10/dist-packages/mdv/__init__.py", line 3, in <module>
    from .markdownviewer import run, main
  File "/usr/local/lib/python3.10/dist-packages/mdv/markdownviewer.py", line 160, in <module>
    from markdown.util import etree
ImportError: cannot import name 'etree' from 'markdown.util' (/usr/local/lib/python3.10/dist-packages/markdown/util.py)
@mgg43err
Copy link

mgg43err commented May 6, 2023

same

@mgg43err
Copy link

mgg43err commented May 6, 2023

Hi, I Installed the lasted version of mdv with pip on linux. but when I runned the mdv on terminal, I saw this error:

Traceback (most recent call last):
  File "/usr/local/bin/mdv", line 5, in <module>
    from mdv import run
  File "/usr/local/lib/python3.10/dist-packages/mdv/__init__.py", line 3, in <module>
    from .markdownviewer import run, main
  File "/usr/local/lib/python3.10/dist-packages/mdv/markdownviewer.py", line 160, in <module>
    from markdown.util import etree
ImportError: cannot import name 'etree' from 'markdown.util' (/usr/local/lib/python3.10/dist-packages/markdown/util.py)

Hello I guess I found a solution from another issue

try this
pip install --upgrade --force-reinstall git+https://github.com/axiros/terminal_markdown_viewer

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

2 participants