[ANNOUNCE] webserve 0.12

Bob Tanner tanner at real-time.com
Fri Nov 3 22:55:36 GMT 2006

Bob Tanner wrote:

> Couple problems.
Little work on irc, here is where I'm at now:


$ 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
>>> sys.path.insert(0, '/home/tanner/projects/bazaar-ng/bzr.dev')
>>> import bzrlib.plugin
>>> bzrlib.plugin.load_plugins()
>>> from bzrlib.plugins.webserve import hgweb

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.
     42 from bzrlib.plugins.webserve import hgweb <--- Error here
     44 config = "/etc/bazaar-webserve.conf"
bzrlib = <module 'bzrlib'
from '/home/tanner/projects/bazaar-ng/bzr.dev/bzrlib/__init__.pyc'>,
bzrlib.plugins = <module 'bzrlib.plugins'
from '/home/tanner/projects/bazaar-ng/bzr.dev/bzrlib/plugins/__init__.pyc'>,
bzrlib.plugins.webserve undefined, hgweb undefined

  ImportError: No module named webserve 
      args = ('No module named webserve',)

Doing some debug I see my sys.path inside the cgi as:

['/home/tanner/projects/bazaar-ng/bzr.dev', '/var/www/cgi-bin', '/home/tanner/projects/bazaar-ng/bzr.dev', '/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/local/lib/python2.4/site-packages', '/usr/lib/python2.4/site-packages', '/usr/lib/python2.4/site-packages/TurboGears-0.8a4-py2.4.egg', '/usr/lib/python2.4/site-packages/TestGears-0.2-py2.4.egg', '/usr/lib/python2.4/site-packages/setuptools-0.6a7-py2.4.egg', '/usr/lib/python2.4/site-packages/FormEncode-0.2.3dev_r1104-py2.4.egg', '/var/lib/python-support/python2.4']
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