[ANNOUNCE] webserve 0.12
Goffredo Baroncelli
kreijack at alice.it
Sat Nov 4 14:59:50 GMT 2006
Hi Bob
On Saturday 04 November 2006 00:25, Bob Tanner wrote:
> Bob Tanner wrote:
>
> > Same code via apache
> >
> > A problem occurred in a Python script. Here is the sequence of function
> > calls leading up to the error, in the order they occurred.
> > /var/www/cgi-bin/webserve-dir.cgi
> > 42 from bzrlib.plugins.webserve import hgweb <--- Error here
> > 44 config = "/etc/bazaar-webserve.conf"
> >
>
> The problem is running python as the www-data user (which is what debian
> uses). Not sure why.
>
I have to document better the installation procedure of the cgi; and you are
right: the examples cgi is old ( too old ) :-)
In the example, it must be added the "import sys" directive
> $ whoami
> www-data
>
> $ python
> Python 2.4.4 (#2, Oct 20 2006, 00:23:25)
> [GCC 4.1.2 20061015 (prerelease) (Debian 4.1.1-16.1)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import os
> >>> import sys
> >>> import bzrlib.plugin
> >>> bzrlib.plugin.load_plugins()
> >>> from bzrlib.plugins.webserve import hgweb
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> ImportError: No module named webserve
Which are the permissions of the directory
/home/tanner/projects/bazaar-ng/bzr.dev/bzrlib/plugins/webserve
?
--
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijack at inwind.it>
Key fingerprint = CE3C 7E01 6782 30A3 5B87 87C0 BB86 505C 6B2A CFF9
More information about the bazaar
mailing list