From: Marco Atzeri <marco.atzeri@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Broken dependency: python39-markdown needs python39-importlib-metadata
Date: Sat, 20 May 2023 11:41:03 +0200 [thread overview]
Message-ID: <77d3b8f9-52cc-66d1-3974-8e9953b25fc5@gmail.com> (raw)
In-Reply-To: <vriujzx4818s.fsf@gavenkoa.example.com>
On 19.05.2023 23:22, Oleksandr Gavenko via Cygwin wrote:
> 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.
>
noted
prev parent reply other threads:[~2023-05-20 9:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-19 21:22 Oleksandr Gavenko
2023-05-20 9:41 ` Marco Atzeri [this message]
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=77d3b8f9-52cc-66d1-3974-8e9953b25fc5@gmail.com \
--to=marco.atzeri@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).