diff options
author | sudoman <sudoman@web> | 2018-05-15 16:46:45 -0400 |
---|---|---|
committer | admin <admin@branchable.com> | 2018-05-15 16:46:45 -0400 |
commit | e64bb52e5b83350e467b0a12994c5590f33558ab (patch) | |
tree | 84a0e4987f0ff3b6bf1dc5716ca2c1999cb9e541 /doc/bugs/installing_python-future_causes_non-fatal_error.mdwn | |
parent | fb47d4a9d5466ab3c781b193e57f1ceb9b5e5bfa (diff) | |
download | ikiwiki-e64bb52e5b83350e467b0a12994c5590f33558ab.tar ikiwiki-e64bb52e5b83350e467b0a12994c5590f33558ab.tar.gz |
bug report for error when python-future is installed
Diffstat (limited to 'doc/bugs/installing_python-future_causes_non-fatal_error.mdwn')
-rw-r--r-- | doc/bugs/installing_python-future_causes_non-fatal_error.mdwn | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/bugs/installing_python-future_causes_non-fatal_error.mdwn b/doc/bugs/installing_python-future_causes_non-fatal_error.mdwn new file mode 100644 index 000000000..d9b0dcbf9 --- /dev/null +++ b/doc/bugs/installing_python-future_causes_non-fatal_error.mdwn @@ -0,0 +1,18 @@ +On Trisquel 8.0, if you have the `python-future` package installed, this causes the wrong module to get loaded by python2.7. + +In `/usr/lib/ikiwiki/plugins/proxy.py`: + + + try: # Python 3 + import xmlrpc.server as _xmlrpc_server + except ImportError: # Python 2 + import SimpleXMLRPCServer as _xmlrpc_server + +`xmlrpc.server` gets loaded even though we are using python2.7. This causes the following non-fatal error when pushing to the git repo: + + remote: Traceback (most recent call last): + remote: File "/usr/lib/ikiwiki/plugins/rst", line 45, in <module> + remote: from proxy import IkiWikiProcedureProxy + remote: File "/usr/lib/ikiwiki/plugins/proxy.py", line 72, in <module> + remote: class _IkiWikiExtPluginXMLRPCDispatcher(_xmlrpc_server.SimpleXMLRPCDispatcher): + remote: AttributeError: 'module' object has no attribute 'SimpleXMLRPCDispatcher' |