leo wrote:
> Now give it a go, and let us know what happens.

Hm, I tried that too but can't get it to work.  Here are the errors I
get on a freshly created TG project after following your Mini-Howto:

=========================
Mod_python error: "PythonHandler mpcp"

Traceback (most recent call last):
[...]
  File "/var/www/localhost/htdocs/fabian/aptest/aptest_start.py", line
13, in ?
    if len(sys.argv) > 1:

AttributeError: 'module' object has no attribute 'argv'
=========================

This one I "cheated" away with "if False and...".
On the next run it couldn't find "dev.cfg", so I changed this to its
absolute path "/home/fabian/.../dev.cfg". Works.

Then I get 2 errors (first after apache restart, second after reload):

==========================
Mod_python error: "PythonHandler mpcp"

Traceback (most recent call last):
[...very long traceback...]
  File "/usr/lib/python2.4/os.py", line 159, in makedirs
    mkdir(name, mode)

OSError: [Errno 13] Permission denied: '/home/httpd'
==========================

second:

==========================
Mod_python error: "PythonHandler mpcp"

Traceback (most recent call last):

  File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line
299, in HandlerDispatch
    result = object(req)

  File "/usr/lib/python2.4/site-packages/mpcp-1.0-py2.4.egg/mpcp.py",
line 74, in handler
    setup(options)

  File "/usr/lib/python2.4/site-packages/mpcp-1.0-py2.4.egg/mpcp.py",
line 58, in setup
    mod = __import__(modname, globals(), locals(), [fname])

  File "/var/www/localhost/htdocs/fabian/aptest/aptest_start.py", line
20, in ?
    from aptest.controllers import Root

  File "/var/www/localhost/htdocs/fabian/aptest/aptest/controllers.py",
line 1, in ?
    import turbogears

  File "/home/fabian/bin-test/turbogears/turbogears/__init__.py", line
11, in ?
    from turbogears import startup

ImportError: cannot import name startup
==========================

Now I'm a bit frustrated.  Did you run into those errors, too, or am I
totally on the wrong path?

Fabian


Reply via email to