Thanks a lot for the responses,

The non-matching paths are a result of sloppy anonymization on my part;
/path/to/project = /Users/bnik/trac. I changed the TracEnvParentDir to
TracEnv as Matt suggested and now get a different error in my apache2
logs that has something to do with sqlite3. Currently, I have it
running with tracd which I have set up to be started by launchd at
boot. Is this a decent solution? I think I would prefer to run it
through apache2, but that's assuming I can get it going.

Here's the error I get in apache, which seems to be related to
http://trac.edgewall.org/ticket/2969. I tried relinking the
/usr/lib/sqlite3* to the darwinports versions in /opt/local/lib/ (as
the last poster in the thread seems to suggest), but that didn't do
anything for me. All of the lines have [Tue Jan 02 22:49:15 2007]
[error] [client xx.xx.xx.xx] PythonHandler trac.web.modpython_frontend:
at the front, which I cut out for brevity.

Traceback (most recent call last):
 File "/opt/local/lib/python2.4/site-packages/mod_python/apache.py",
line 299, in HandlerDispatch\n    result = object(req)
 File
"/opt/local/lib/python2.4/site-packages/trac/web/modpython_frontend.py",
line 87, in handler\n gateway.run(dispatch_request)
 File "/opt/local/lib/python2.4/site-packages/trac/web/wsgi.py", line
87, in run\n response = application(self.environ, self._start_response)
 File "/opt/local/lib/python2.4/site-packages/trac/web/main.py", line
346, in dispatch_request\n env_name = path_info.pop(0)
 File "/opt/local/lib/python2.4/site-packages/trac/web/main.py", line
57, in _open_environment\n if not env_path in env_cache:
 File "/opt/local/lib/python2.4/site-packages/trac/env.py", line 434,
in open_environment\n env = Environment(env_path)
 File "/opt/local/lib/python2.4/site-packages/trac/env.py", line 312,
in needs_upgrade\n """Return whether the environment needs to be
upgraded."""
 File "/opt/local/lib/python2.4/site-packages/trac/env.py", line 182,
in get_db_cnx\n return DatabaseManager(self).get_connection()
 File "/opt/local/lib/python2.4/site-packages/trac/db/api.py", line
71, in get_connection\n def get_connection(self):
 File "/opt/local/lib/python2.4/site-packages/trac/db/pool.py", line
83, in get_cnx\n if num == 0: # was pushed back (see _cleanup)
 File "/opt/local/lib/python2.4
site-packages/trac/db/sqlite_backend.py", line 113, in get_connection\n
return SQLiteConnection(path, params)
 File "/opt/local/lib/python2.4
site-packages/trac/db/sqlite_backend.py", line 159, in __init__\n
check_same_thread=sqlite_version < 30301,
ProgrammingError: library routine called out of sequence

Thanks again for any help,

ra


On Jan 2, 7:00 pm, "Matt Good" <[EMAIL PROTECTED]> wrote:
ra wrote:
> I am new to trac and having some difficulty installing it on an os x
> server. I followed the instructions for DarwinPorts at
>http://trac.edgewall.org/wiki/TracOnOsx#UsingDarwinPortsand everything
> seemed to go fine. trac-admin /path/to/project initenv seemed to go
> fine, too. My virtual host for apache2 is set up like this:
...snip...
>                 PythonOption TracEnvParentDir "/path/to/project/"
...snip...
> But when I browse towww.host.com:8081, I get:

> Available Projects

> attachments: Error
> ([Errno 2] No such file or directory:
> '/Users/bnik/trac/attachments/VERSION')...snip...

The "TracEnvParentDir" is used when you have multiple projects in a
single parent directory.  Since you have only one project use the
"TracEnv" setting instead.

-- Matt Good


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to