From: Oleksandr Gavenko <gavenkoa@gmail.com>
To: cygwin@cygwin.com
Subject: Broken dependency: python39-markdown needs python39-importlib-metadata
Date: Sat, 20 May 2023 00:22:59 +0300 [thread overview]
Message-ID: <vriujzx4818s.fsf@gavenkoa.example.com> (raw)
I installed python39-markdown and wanted to:
import markdown
That fails with:
File "/home/user/my/blog_md.py", line 5, in <module>
import markdown
File "/usr/lib/python3.9/site-packages/markdown/__init__.py", line 29, in <module>
from .core import Markdown, markdown, markdownFromFile # noqa: E402
File "/usr/lib/python3.9/site-packages/markdown/core.py", line 26, in <module>
from . import util
File "/usr/lib/python3.9/site-packages/markdown/util.py", line 36, in <module>
import importlib_metadata as metadata
ModuleNotFoundError: No module named 'importlib_metadata'
In markdown/util.py:
if sys.version_info >= (3, 10):
from importlib import metadata
else:
# <PY310 use backport
import importlib_metadata as metadata
In setup.ini:
@ python39-markdown
depends2: python39
After installing python39-importlib-metadata the problem disappeared.
--
http://defun.work/
next reply other threads:[~2023-05-19 21:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-19 21:22 Oleksandr Gavenko [this message]
2023-05-20 9:41 ` Marco Atzeri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=vriujzx4818s.fsf@gavenkoa.example.com \
--to=gavenkoa@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).