У меня была рабочая установка moinmoin на Fedora 28. Затем я обновил через Fedora 29 непосредственно до Fedora 30 и больше не могу запускать moin автономный сервер:
#! /usr/bin/python2
from MoinMoin.script.moin import run
run()
запускается со следующими параметрами: --config-dir = / home / me / PHYS / wiki-сервер
дает:
2019-06-27 12:32:20,935 INFO MoinMoin.log:151 using logging configuration read from built-in fallback in MoinMoin.log module
2019-06-27 12:32:20,935 INFO MoinMoin.log:157 Running MoinMoin 1.9.10 release code from /usr/lib/python2.7/site-packages/MoinMoin
Traceback (most recent call last):
File "/usr/bin/moin", line 6, in <module>
run()
File "/usr/lib/python2.7/site-packages/MoinMoin/script/moin.py", line 15, in run
MoinScript().run(showtime=0)
File "/usr/lib/python2.7/site-packages/MoinMoin/script/__init__.py", line 138, in run
self.mainloop()
File "/usr/lib/python2.7/site-packages/MoinMoin/script/__init__.py", line 251, in mainloop
from MoinMoin import wikiutil
File "/usr/lib/python2.7/site-packages/MoinMoin/wikiutil.py", line 892, in <module>
for name, short, patterns, mime in pygments.lexers.get_all_lexers():
File "/usr/lib/python2.7/site-packages/MoinMoin/support/pygments/lexers/__init__.py", line 53, in get_all_lexers
for lexer in find_plugin_lexers():
File "/usr/lib/python2.7/site-packages/MoinMoin/support/pygments/plugin.py", line 53, in find_plugin_lexers
yield entrypoint.load()
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2411, in load
return self.resolve()
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2417, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
ImportError: No module named IPython.lib.lexers
, когда я запускаю python2 и пытаюсь:
>>> import IPython
Я получаю:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named IPython
однако:
pip2 install IPython
сообщает, что пакет уже установлен:
Requirement already satisfied: IPython in /usr/lib/python2.7/site-packages (5.6.0)
(...)
Requirement already satisfied: pygments in /usr/lib64/python2.7/site-packages (from IPython) (2.2.0)
(...)
Requirement already satisfied: ipython-genutils in /usr/lib/python2.7/site-packages (from traitlets>=4.2->IPython) (0.2.0)
У меня есть python3 на моем ноутбуке с установленным IPython.