[ANNOUNCE] webserve 0.12
Bob Tanner
tanner at real-time.com
Fri Nov 3 23:25:26 GMT 2006
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.
$ 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
--
Bob Tanner <tanner at real-time.com> | Phone : (952)943-8700
http://www.real-time.com, Minnesota, Linux | Fax : (952)943-8500
Key fingerprint = AB15 0BDF BCDE 4369 5B42 1973 7CF1 A709 2CC1 B288
More information about the bazaar
mailing list