MoinAPI/PageEditorについて、ここに記述してください。

/example

>>> from MoinMoin import PageEditor

2021-04-28 15:30:43,012 INFO MoinMoin.log:151 using logging configuration read from built-in fallback in MoinMoin.log module
2021-04-28 15:30:43,013 INFO MoinMoin.log:157 Running MoinMoin 1.9.11 release code from /usr/local/lib/python2.7/dist-packages/MoinMoin
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/MoinMoin/PageEditor.py", line 22, in <module>
    from MoinMoin import caching, config, wikiutil, error
  File "/usr/local/lib/python2.7/dist-packages/MoinMoin/caching.py", line 19, in <module>
    from MoinMoin.util import filesys, lock, pickle, PICKLE_PROTOCOL
  File "/usr/local/lib/python2.7/dist-packages/MoinMoin/util/filesys.py", line 33, in <module>
    from werkzeug.posixemulation import *
ImportError: No module named werkzeug.posixemulation

werkzeug.posixemulation は window 系を使うときに必要になるとか。-- ToshinoriMaeno 2021-04-28 09:58:22

PYTHONPATHに MoinMoin/supportなどがない。なぜ。-- ToshinoriMaeno 2021-04-28 06:33:16

1. PYTHONPATH

$ export PYTHONPATH="/usr/local/lib/python2.7/dist-packages/MoinMoin/support/"
tmaeno@skr:~$ python2
Python 2.7.17 (default, Feb 27 2021, 15:10:58) 
[GCC 7.5.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from MoinMoin import PageEditor
2021-04-29 19:33:51,163 INFO MoinMoin.log:151 using logging configuration read from built-in fallback in MoinMoin.log module
2021-04-29 19:33:51,163 INFO MoinMoin.log:157 Running MoinMoin 1.9.11 release code from /usr/local/lib/python2.7/dist-packages/MoinMoin
>>> 

MoinQ: MoinAPI/PageEditor (last edited 2021-04-29 10:45:34 by ToshinoriMaeno)