Python-Markdown/markdown

Help! What wrong with this error?"AttributeError: 'zipimporter' object has no attribute 'exec_module'"

Closed this issue · 4 comments

Sorry I'm new to writing programs and don't know how to fix this error. I'm trying to read and format a document, but I'm running markdown and I'm having this problem.

It is difficult to help as you've given us very little info. This might not even be a problem in a Python Markdown. Can you post a full traceback?

I'm sorry if I said anything wrong.
I create a virtual environment to run my code.
螢幕擷取畫面 2024-10-14 013521

And there is a code to read the data, which contains the code to read the markdown file.
image
image

But when I run the program, I get this error
image

I'm sorry for my stupidity.

This might be a duplicate of #1132. Unfortunately, I don't think progress has been made on that issue.

As explained in #1132, this is a bug in Python's standard library, which was fixed in Python 3.10. It appears that you are using Python 3.9. I would suggest updating to Python 3.10 to avoid the issue.

I am closing this as a duplicate.