Mercurial > public > pelican-blog
comparison content/Coding/009-windows-trac-upgrade.rst @ 4:7ce6393e6d30
Adding converted blog posts from old blog.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 30 Jan 2014 21:45:03 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:c3115da3ff73 | 4:7ce6393e6d30 |
---|---|
1 Upgrading Trac on Windows Gotchas | |
2 ################################# | |
3 | |
4 :date: 2011-09-12 22:15 | |
5 :tags: Python, Trac, Subversion, Windows | |
6 :slug: upgrading-trac-on-windows-gotchas | |
7 :author: Brian Neal | |
8 | |
9 At work, we are outfitted with Windows servers. Despite this obstacle, I managed | |
10 to install Trac_ and Subversion_ a few years ago. During a break in the action, | |
11 we decided to update Subversion (SVN) and Trac. Since we are on Windows, this | |
12 means we have to rely on the `kindness of strangers`_ for Subversion binaries. I | |
13 ran into a couple of gotchas I'd like to document here to help anyone else who | |
14 runs into these. | |
15 | |
16 I managed to get Subversion and Trac up and running without any real problems. | |
17 However when Trac needed to access SVN to display changesets or a timeline, for | |
18 example, I got an error: | |
19 | |
20 ``tracerror: unsupported version control system "svn" no module named _fs`` | |
21 | |
22 After some googling, I finally found that this issue is `documented on the Trac | |
23 wiki`_, but it was kind of hard to find. To fix this problem, you have to rename | |
24 the Python SVN binding's DLLs to ``*.pyd``. Specifically, change the | |
25 ``libsvn/*.dll`` files to ``libsvn/*.pyd``, but don't change the name of | |
26 ``libsvn_swig_py-1.dll``. I'd really like to hear an explanation of why one | |
27 needs to do this. Why doesn't the Python-Windows build process do this for you? | |
28 | |
29 The second problem I ran into dealt with mod_wsgi_ on Windows. Originally, a few | |
30 years ago, I setup Trac to run under mod_python_. mod_python has long been | |
31 out of favor, so I decided to cut over to mod_wsgi. On my Linux boxes, I always | |
32 run mod_wsgi in daemon mode. When I tried to configure this on Windows, Apache | |
33 complained about an unknown directive ``WSGIDaemonProcess``. It turns out that | |
34 `this mode is not supported on Windows`_. You'll have to use the embedded mode on | |
35 Windows. | |
36 | |
37 .. _Trac: http://trac.edgewall.org/ | |
38 .. _Subversion: http://subversion.apache.org/ | |
39 .. _kindness of strangers: http://sourceforge.net/projects/win32svn/ | |
40 .. _documented on the Trac wiki: http://trac.edgewall.org/wiki/TracSubversion | |
41 .. _mod_wsgi: http://code.google.com/p/modwsgi/ | |
42 .. _mod_python: http://www.modpython.org/ | |
43 .. _this mode is not supported on Windows: http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIDaemonProcess |