V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
crella
V2EX  ›  问与答

有人在用基于 python2.7 的 moinmoinwiki 吗?

  •  
  •   crella · 2020-04-14 16:58:31 +08:00 · 2081 次点击
    这是一个创建于 1479 天前的主题,其中的信息可能已经有所发展或是发生改变。

    在用 dokuwiki,总是觉得有点不方便,于是使用 dokuwiki 。

    用 python3.7 运行 moin/wikiserver.py , 报错:

    py2.jpg

    看这个语法问题,应该是要用 python2 运行而不能用 python3 。在 http://www.moinmo.in/HelpOnUpdatingPython 里提到 The default installation process (setup.py) installed the MoinMoin files into the site-packages directory of the current Python installation (for example /usr/lib/python2.4/site-packages).

    隔壁 dokuwiki 用 php7,页面顶部有报错误信息,好像除了偶尔丢失编辑工具栏的图标之外没有大的 bug 。最新版本是 2018 年发布的。而 moinmoinwiki 也是 2018 年发布。看网上好像没什么人推荐用 python2.X 了,好奇我还应该转用 moinmoinwiki 吗?

    3 条回复    2020-04-14 20:01:18 +08:00
    julyclyde
        1
    julyclyde  
       2020-04-14 18:37:50 +08:00
    julyclyde
        2
    julyclyde  
       2020-04-14 18:38:38 +08:00
    except ValueError, e: was the syntax used for what is normally written as except ValueError as e: in modern Python (described below). The old syntax is still supported for backwards compatibility
    crella
        3
    crella  
    OP
       2020-04-14 20:01:18 +08:00 via Android
    更新一下:

    1 、“在用 dokuwiki,总是觉得有点不方便,于是使用 dokuwiki 。”改为:于是试用 moinwiki 。

    2 、dokuwiki 运行在 php7.3 上,目前没发现任何问题。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2270 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 785ms · UTC 08:04 · PVG 16:04 · LAX 01:04 · JFK 04:04
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.