]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/bugs/installing_python-future_causes_non-fatal_error.mdwn
Add ikistrap plugin for ikistrap theme.
[git.ikiwiki.info.git] / doc / bugs / installing_python-future_causes_non-fatal_error.mdwn
1 On Trisquel 8.0, if you have the `python-future` package installed, this causes the wrong module to get loaded by python2.7.
3 In `/usr/lib/ikiwiki/plugins/proxy.py`:
6     try:  # Python 3
7         import xmlrpc.server as _xmlrpc_server
8     except ImportError:  # Python 2
9         import SimpleXMLRPCServer as _xmlrpc_server
11 `xmlrpc.server` gets loaded even though we are using python2.7. This causes the following non-fatal error when pushing to the git repo:
13     remote: Traceback (most recent call last):
14     remote:   File "/usr/lib/ikiwiki/plugins/rst", line 45, in <module>
15     remote:     from proxy import IkiWikiProcedureProxy
16     remote:   File "/usr/lib/ikiwiki/plugins/proxy.py", line 72, in <module>
17     remote:     class _IkiWikiExtPluginXMLRPCDispatcher(_xmlrpc_server.SimpleXMLRPCDispatcher):
18     remote: AttributeError: 'module' object has no attribute 'SimpleXMLRPCDispatcher'