aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/autosetup_python_warnings.mdwn
diff options
context:
space:
mode:
authorAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2014-09-19 08:40:30 -0400
committerAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2014-09-19 08:40:30 -0400
commit7092dd78663a8b79bec977e70891bedafc71ad9c (patch)
tree9c74d1131de975ee83beb3e856a6a48a2db3269e /doc/bugs/autosetup_python_warnings.mdwn
parent053de5489bb2a00855f46b131fe676cc3bc94579 (diff)
downloadikiwiki-7092dd78663a8b79bec977e70891bedafc71ad9c.tar
ikiwiki-7092dd78663a8b79bec977e70891bedafc71ad9c.tar.gz
document proxy.py warnings seen on auto.setup
Diffstat (limited to 'doc/bugs/autosetup_python_warnings.mdwn')
-rw-r--r--doc/bugs/autosetup_python_warnings.mdwn52
1 files changed, 52 insertions, 0 deletions
diff --git a/doc/bugs/autosetup_python_warnings.mdwn b/doc/bugs/autosetup_python_warnings.mdwn
new file mode 100644
index 000000000..f17c8658e
--- /dev/null
+++ b/doc/bugs/autosetup_python_warnings.mdwn
@@ -0,0 +1,52 @@
+## What I did
+
+A friend reported this, and I'm seeing it too. With 3.20140916, on
+a system with Python 2.7 and 3.4 (and little else) installed, I
+tried to run the auto.setup:
+
+ :; ikiwiki --setup /etc/pkg/ikiwiki/auto.setup
+ What will the wiki be named? Import Errors
+ What revision control system to use? git
+ Which user (wiki account or openid) will be admin? schmonz
+
+
+ Setting up Import Errors ...
+ Importing /Users/schmonz/ImportErrors into git
+ Initialized empty shared Git repository in /Users/schmonz/ImportErrors.git/
+ Initialized empty Git repository in /Users/schmonz/ImportErrors/.git/
+ [master (root-commit) 20b1128] initial commit
+ 1 file changed, 1 insertion(+)
+ create mode 100644 .gitignore
+ Counting objects: 3, done.
+ Writing objects: 100% (3/3), 230 bytes | 0 bytes/s, done.
+ Total 3 (delta 0), reused 0 (delta 0)
+ To /Users/schmonz/ImportErrors.git
+ * [new branch] master -> master
+ Directory /Users/schmonz/ImportErrors is now a clone of git repository /Users/schmonz/ImportErrors.git
+ Traceback (most recent call last):
+ File "/usr/pkg/lib/ikiwiki/plugins/rst", line 45, in <module>
+ from proxy import IkiWikiProcedureProxy
+ File "/usr/pkg/lib/ikiwiki/plugins/proxy.py", line 41, in <module>
+ import xml.parsers.expat
+ File "/usr/pkg/lib/python3.4/xml/parsers/expat.py", line 4, in <module>
+ from pyexpat import *
+ ImportError: No module named 'pyexpat'
+
+
+ Creating wiki admin schmonz ...
+ Choose a password:
+ [...]
+
+## What I expected
+
+I expected to get a basic site.
+
+## What happened instead
+
+I got a basic site with some Python error messages.
+
+## Likely fix
+
+Looks like `proxy.py` needs the trick from [[!debbug 637604]] so
+that it can defer a few imports (at least `xml.parsers.expat` and
+the XML-RPC libs) until the methods using them are called. --[[schmonz]]