You are not logged in.
I am using the package mkdocs, but I found that this error
Traceback (most recent call last):
File "/usr/bin/mkdocs", line 33, in <module>
sys.exit(load_entry_point('mkdocs==1.2.3', 'console_scripts', 'mkdocs')())
File "/usr/bin/mkdocs", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/usr/lib/python3.9/site-packages/mkdocs/__main__.py", line 13, in <module>
from mkdocs.commands import build, gh_deploy, new, serve
File "/usr/lib/python3.9/site-packages/mkdocs/commands/build.py", line 12, in <module>
from mkdocs.structure.nav import get_navigation
File "/usr/lib/python3.9/site-packages/mkdocs/structure/nav.py", line 4, in <module>
from mkdocs.structure.pages import Page
File "/usr/lib/python3.9/site-packages/mkdocs/structure/pages.py", line 6, in <module>
import markdown
ModuleNotFoundError: No module named 'markdown'
but actually, python-markdown is in the depends. Is it an issue related to python 3.9 and python 3.10?
Last edited by malacology (2021-11-09 14:45:47)
Don't speak to silly man. Keep Minimalism.
Offline
What version of python-markdown do you have installed?
Offline
What version of python-markdown do you have installed?
Just from Arch repository
https://archlinux.org/packages/communit … -markdown/
Don't speak to silly man. Keep Minimalism.
Offline
pacman -Qikk python python-markdown
type python
Is it an issue related to python 3.9 and python 3.10?
What drives that speculation? Is there any python 3.10 / dependency on your system?
Offline
$ pacman -Qkk python-markdown
$ which python
$ type python
$ python -c "import markdown"
Inofficial first vice preseident of the Rust Evangelism Strike Force
Offline
$ pacman -Qkk python-markdown $ which python $ type python $ python -c "import markdown"
sudo pacman -Qkk python-markdown ░▒▓ ✔ 14:28:15 ▓▒░
warning: python-markdown: /usr/bin/markdown_py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/Markdown-3.3.4-py3.9.egg-info (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/Markdown-3.3.4-py3.9.egg-info/PKG-INFO (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/Markdown-3.3.4-py3.9.egg-info/SOURCES.txt (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/Markdown-3.3.4-py3.9.egg-info/dependency_links.txt (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/Markdown-3.3.4-py3.9.egg-info/entry_points.txt (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/Markdown-3.3.4-py3.9.egg-info/requires.txt (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/Markdown-3.3.4-py3.9.egg-info/top_level.txt (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/__init__.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/__main__.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/__meta__.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/blockparser.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/blockprocessors.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/core.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/htmlparser.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/inlinepatterns.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/pep562.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/postprocessors.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/preprocessors.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/serializers.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/test_tools.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/treeprocessors.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/util.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/__pycache__ (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/__pycache__/__init__.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/__pycache__/__main__.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/__pycache__/__meta__.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/__pycache__/blockparser.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/__pycache__/blockprocessors.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/__pycache__/core.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/__pycache__/htmlparser.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/__pycache__/inlinepatterns.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/__pycache__/pep562.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/__pycache__/postprocessors.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/__pycache__/preprocessors.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/__pycache__/serializers.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/__pycache__/test_tools.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/__pycache__/treeprocessors.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/__pycache__/util.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/__init__.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/abbr.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/admonition.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/attr_list.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/codehilite.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/def_list.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/extra.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/fenced_code.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/footnotes.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/legacy_attrs.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/legacy_em.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/md_in_html.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/meta.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/nl2br.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/sane_lists.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/smarty.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/tables.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/toc.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/wikilinks.py (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/__pycache__ (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/__init__.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/abbr.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/admonition.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/attr_list.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/codehilite.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/def_list.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/extra.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/fenced_code.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/footnotes.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/legacy_attrs.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/legacy_em.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/md_in_html.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/meta.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/nl2br.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/sane_lists.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/smarty.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/tables.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/toc.cpython-39.pyc (No such file or directory)
warning: python-markdown: /usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/wikilinks.cpython-39.pyc (No such file or directory)
python-markdown: 89 total files, 80 altered files
version
python --version ░▒▓ 1 ✘ 14:28:30 ▓▒░
Python 3.9.7
output
python ░▒▓ ✔ 14:29:27 ▓▒░
Python 3.9.7 (default, Oct 10 2021, 15:13:22)
[GCC 11.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> python -c "import markdown"
File "<stdin>", line 1
python -c "import markdown"
^
SyntaxError: invalid syntax
Don't speak to silly man. Keep Minimalism.
Offline
pacman -Qikk python python-markdown type python
Is it an issue related to python 3.9 and python 3.10?
What drives that speculation? Is there any python 3.10 / dependency on your system?
Because I see the RH distribution package mkdocs depends on python3.10
Don't speak to silly man. Keep Minimalism.
Offline
python-markdown: 89 total files, 80 altered files
The package installation is completely broken. Re-install it and pay attention to the pacman errors (if any) - though likely this is just the result of some PIP intervention…
Offline
Yeah, your python-markdown package is screwed up.
And the "python -c" command was meant to be run from the shell, but this is definitely not the issue.
Fix your broken python-markdown installation.
# pacman -Syu python-markdown
Inofficial first vice preseident of the Rust Evangelism Strike Force
Offline
So sadly
:: Synchronising package databases...
core is up to date
extra is up to date
BioArchLinux is up to date
community is up to date
multilib is up to date
warning: python-markdown-3.3.4-1 is up to date -- reinstalling
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
Packages (1) python-markdown-3.3.4-1
Total Download Size: 0.13 MiB
Total Installed Size: 0.50 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
python-markdown-... 129.3 KiB 3.16 MiB/s 00:00 [---------------------] 100%
(1/1) checking keys in keyring [---------------------] 100%
(1/1) checking package integrity [---------------------] 100%
(1/1) loading package files [---------------------] 100%
(1/1) checking for file conflicts [---------------------] 100%
(1/1) checking available disk space [---------------------] 100%
warning: could not get file information for usr/bin/markdown_py
warning: could not get file information for usr/lib/python3.9/site-packages/Markdown-3.3.4-py3.9.egg-info/
warning: could not get file information for usr/lib/python3.9/site-packages/Markdown-3.3.4-py3.9.egg-info/PKG-INFO
warning: could not get file information for usr/lib/python3.9/site-packages/Markdown-3.3.4-py3.9.egg-info/SOURCES.txt
warning: could not get file information for usr/lib/python3.9/site-packages/Markdown-3.3.4-py3.9.egg-info/dependency_links.txt
warning: could not get file information for usr/lib/python3.9/site-packages/Markdown-3.3.4-py3.9.egg-info/entry_points.txt
warning: could not get file information for usr/lib/python3.9/site-packages/Markdown-3.3.4-py3.9.egg-info/requires.txt
warning: could not get file information for usr/lib/python3.9/site-packages/Markdown-3.3.4-py3.9.egg-info/top_level.txt
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/__init__.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/__main__.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/__meta__.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/__pycache__/
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/__pycache__/__init__.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/__pycache__/__main__.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/__pycache__/__meta__.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/__pycache__/blockparser.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/__pycache__/blockprocessors.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/__pycache__/core.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/__pycache__/htmlparser.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/__pycache__/inlinepatterns.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/__pycache__/pep562.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/__pycache__/postprocessors.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/__pycache__/preprocessors.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/__pycache__/serializers.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/__pycache__/test_tools.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/__pycache__/treeprocessors.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/__pycache__/util.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/blockparser.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/blockprocessors.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/core.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/__init__.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/__init__.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/abbr.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/admonition.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/attr_list.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/codehilite.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/def_list.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/extra.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/fenced_code.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/footnotes.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/legacy_attrs.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/legacy_em.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/md_in_html.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/meta.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/nl2br.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/sane_lists.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/smarty.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/tables.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/toc.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/__pycache__/wikilinks.cpython-39.pyc
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/abbr.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/admonition.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/attr_list.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/codehilite.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/def_list.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/extra.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/fenced_code.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/footnotes.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/legacy_attrs.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/legacy_em.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/md_in_html.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/meta.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/nl2br.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/sane_lists.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/smarty.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/tables.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/toc.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/extensions/wikilinks.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/htmlparser.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/inlinepatterns.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/pep562.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/postprocessors.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/preprocessors.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/serializers.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/test_tools.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/treeprocessors.py
warning: could not get file information for usr/lib/python3.9/site-packages/markdown/util.py
:: Processing package changes...
(1/1) reinstalling python-markdown [---------------------] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
I reinstall it, sucess
Last edited by malacology (2021-11-09 14:46:08)
Don't speak to silly man. Keep Minimalism.
Offline
Thanks, it sloved
Don't speak to silly man. Keep Minimalism.
Offline
Why are you sad?
The re-installation worked fine and pacman, again, notified you about missing files beforehand.
Does the mkdocs stuff run now?
Ninja'd
Last edited by schard (2021-11-09 14:47:01)
Inofficial first vice preseident of the Rust Evangelism Strike Force
Offline
Why are you sad?
The re-installation worked fine and pacman, again, notified you about missing files beforehand.
Does the mkdocs stuff run now?
Ninja'd
It works, thank you.
Don't speak to silly man. Keep Minimalism.
Offline