Hi All,
SELinux is disabled:
[EMAIL PROTECTED] ~]# sestatus
SELinux status: disabled
Someone else suggested running the command as python
/usr/local/bin/trac-admin /usr/local/trac/ initenv
So here is what happens, looks good up to the end where there is some
errors about sqlite:
[EMAIL PROTECTED] local]# python /usr/local/bin/trac-admin
/usr/local/trac/ initenv
Creating a new Trac environment at /usr/local/trac
Trac will first ask a few questions about your environment
in order to initalize and prepare the project database.
Please enter the name of your project.
This name will be used in page titles and descriptions.
Project Name [My Project]> NRC
Please specify the connection string for the database to use.
By default, a local SQLite database is created in the environment
directory. It is also possible to use an already existing
PostgreSQL database (check the Trac documentation for the exact
connection string syntax).
Database connection string [sqlite:db/trac.db]>
Please specify the type of version control system,
By default, it will be svn.
If you don't want to use Trac with version control integration,
choose the default here and don't specify a repository directory.
in the next question.
Repository type [svn]>
Please specify the absolute path to the version control
repository, or leave it blank to use Trac without a repository.
You can also set the repository location later.
Path to repository [/path/to/repos]> /usr/local/repos
Please enter location of Trac page templates.
Default is the location of the site-wide templates installed with Trac.
Templates directory [/usr/local/share/trac/templates]>
Creating and Initializing Project
Failed to create environment. global name 'sqlite' is not defined
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/trac/admin/console.py",
line 560, in do_initenv
options=options)
File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 160,
in __init__
self.create(options)
File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 270,
in create
DatabaseManager(self).init_db()
File "/usr/local/lib/python2.4/site-packages/trac/db/api.py", line 69,
in init_db
connector.init_db(**args)
File
"/usr/local/lib/python2.4/site-packages/trac/db/sqlite_backend.py", line
133, in init_db
cnx = sqlite.connect(path, timeout=int(params.get('timeout',
10000)))
NameError: global name 'sqlite' is not defined
Failed to initialize environment. 1
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/trac/admin/console.py",
line 564, in do_initenv
sys.exit(1)
SystemExit: 1
========================================================================
==================
Any Ideas?
Thanks,
Joe
<Original Message Below>
From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of Noah Kantrowitz
Sent: Monday, February 26, 2007 5:13 PM
To: [email protected]
Subject: [Trac] Re: No such file or directory.
White, Joseph wrote:
> Hi All,
>
> RHEL 4
Check SELinux.
--Noah
======================================================================
Hi All,
RHEL 4 / Apache 2.0.52 / subversion-1.2.1 / Kerberos Authentication
(This all works fine)
TRAC .11 from source
python 2.4 from source installed to /usr/local/bin
There is also Python 2.3 on this system, I don't know if there is a
issue between Python2.4 and 2.3.
[EMAIL PROTECTED] share]# python -V
Python 2.4.4
[EMAIL PROTECTED] share]# which python
/usr/local/bin/python
======================================================
I install TRAC and all the dependencies from source, all seemed to go
well.
During the install the directory /usr/local/share/trac was created.
Next the directions say to run trac-admin /path/to/projectenv initenv
, now is that the /usr/local/share/trac directory?
I have tried many different things here but always the same output:
=============================================
trac-admin /usr/local/share/trac initenv
I get : No such file or directory.
=============================================
[EMAIL PROTECTED] bin]# pwd
/usr/local/bin
[EMAIL PROTECTED] bin]# ls -al trac-admin
-rwxrwxr-x 1 root root 905 Feb 22 09:33 trac-admin
[EMAIL PROTECTED] bin]#
[EMAIL PROTECTED] bin]# ./trac-admin /usr/local/trac initenv
: No such file or directory
[EMAIL PROTECTED] bin]# trac-admin /usr/local/trac initenv
: No such file or directory
[EMAIL PROTECTED] bin]# which trac-admin
/usr/local/bin/trac-admin
Any Ideas What I Have Forgot To Do, Or What I'm Doing Wrong?
Thanks,
Joe
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---